geronimo-jms-1.1-spec-1.1/ 0000755 0000000 0000000 00000000000 11142326424 013703 5 ustar root root geronimo-jms-1.1-spec-1.1/NOTICE.txt 0000644 0000000 0000000 00000000253 10533742201 015423 0 ustar root root Apache Geronimo
Copyright 2003-2006 The Apache Software Foundation
This product includes software developed by
The Apache Software Foundation (http://www.apache.org/).
geronimo-jms-1.1-spec-1.1/pom.xml 0000644 0000000 0000000 00000004440 10540173175 015226 0 ustar root root
4.0.0
org.apache.geronimo.specs
specs
1.2
../pom.xml
geronimo-jms_1.1_spec
JMS 1.1
1.1
mockobjects
mockobjects-core
0.09
test
mockobjects
mockobjects-jdk1.4-j2ee1.3
0.09
test
scm:svn:https://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-jms_1.1_spec-1.1
scm:svn:https://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-jms_1.1_spec-1.1
https://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-jms_1.1_spec-1.1
geronimo-jms-1.1-spec-1.1/src/ 0000755 0000000 0000000 00000000000 11142326424 014472 5 ustar root root geronimo-jms-1.1-spec-1.1/src/test/ 0000755 0000000 0000000 00000000000 11142326421 015446 5 ustar root root geronimo-jms-1.1-spec-1.1/src/test/java/ 0000755 0000000 0000000 00000000000 11142326421 016367 5 ustar root root geronimo-jms-1.1-spec-1.1/src/test/java/javax/ 0000755 0000000 0000000 00000000000 11142326421 017500 5 ustar root root geronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/ 0000755 0000000 0000000 00000000000 11142326423 020273 5 ustar root root geronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/ResourceAllocationExceptionTest.java 0000644 0000000 0000000 00000005777 10517560657 027510 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class ResourceAllocationExceptionTest extends TestCase {
public void testConstructorNull() {
ResourceAllocationException ex = new ResourceAllocationException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
ResourceAllocationException ex = new ResourceAllocationException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
ResourceAllocationException ex = new ResourceAllocationException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
ResourceAllocationException ex = new ResourceAllocationException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
ResourceAllocationException ex = new ResourceAllocationException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
ResourceAllocationException ex = new ResourceAllocationException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
geronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/InvalidDestinationExceptionTest.java 0000644 0000000 0000000 00000005777 10517560657 027503 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class InvalidDestinationExceptionTest extends TestCase {
public void testConstructorNull() {
InvalidDestinationException ex = new InvalidDestinationException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
InvalidDestinationException ex = new InvalidDestinationException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
InvalidDestinationException ex = new InvalidDestinationException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
InvalidDestinationException ex = new InvalidDestinationException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
InvalidDestinationException ex = new InvalidDestinationException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
InvalidDestinationException ex = new InvalidDestinationException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
geronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/MessageNotReadableExceptionTest.java 0000644 0000000 0000000 00000005777 10517560657 027400 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class MessageNotReadableExceptionTest extends TestCase {
public void testConstructorNull() {
MessageNotReadableException ex = new MessageNotReadableException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
MessageNotReadableException ex = new MessageNotReadableException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
MessageNotReadableException ex = new MessageNotReadableException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
MessageNotReadableException ex = new MessageNotReadableException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
MessageNotReadableException ex = new MessageNotReadableException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
MessageNotReadableException ex = new MessageNotReadableException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
geronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/QueueRequestorTest.java 0000644 0000000 0000000 00000013436 10517560657 025021 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import com.mockobjects.jms.MockMessage;
import com.mockobjects.jms.MockQueue;
import com.mockobjects.jms.MockQueueReceiver;
import com.mockobjects.jms.MockQueueSender;
import com.mockobjects.jms.MockQueueSession;
import com.mockobjects.jms.MockTemporaryQueue;
import com.mockobjects.jms.MockTextMessage;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class QueueRequestorTest extends TestCase {
public void testConstructorNullQueue() {
MockQueue queue = new MockQueue();
try {
new QueueRequestor(null, queue);
fail();
} catch (JMSException ex) {
fail("JMSException should not have been thrown.");
} catch (NullPointerException ex) {
// success.
}
queue.verify();
}
public void testConstructorSessionNull() {
MockQueueSession session = new MockQueueSession();
try {
new QueueRequestor(session, null);
fail();
} catch (JMSException ex) {
// success
}
session.verify();
}
public void testConstructorSessionQueue() {
MockQueue queue = new MockQueue();
MockQueueReceiver receiver = new MockQueueReceiver();
MockQueueSender sender = new MockQueueSender();
MockQueueSession session = new MockQueueSession();
MockTemporaryQueue tempQueue = new MockTemporaryQueue();
session.setupReceiver(receiver);
session.setupSender(sender);
session.setupTemporaryQueue(tempQueue);
try {
new QueueRequestor(session, queue);
// success
} catch (JMSException ex) {
fail();
}
queue.verify();
receiver.verify();
sender.verify();
session.verify();
tempQueue.verify();
}
public void testRequestNull() {
MockQueue queue = new MockQueue();
MockQueueReceiver receiver = new MockQueueReceiver();
MockQueueSender sender = new MockQueueSender();
MockQueueSession session = new MockQueueSession();
MockTemporaryQueue tempQueue = new MockTemporaryQueue();
session.setupReceiver(receiver);
session.setupSender(sender);
session.setupTemporaryQueue(tempQueue);
try {
QueueRequestor requestor = new QueueRequestor(session, queue);
requestor.request(null);
fail();
} catch (JMSException ex) {
fail("JMSException should not have been thrown.");
} catch (NullPointerException ex) {
// success
}
queue.verify();
receiver.verify();
sender.verify();
session.verify();
tempQueue.verify();
}
public void testRequestMessage() {
MockMessage reply = new MockTextMessage();
MockMessage request = new MockTextMessage();
MockQueue queue = new MockQueue();
MockQueueReceiver receiver = new MockQueueReceiver();
MockQueueSender sender = new MockQueueSender();
MockQueueSession session = new MockQueueSession();
MockTemporaryQueue tempQueue = new MockTemporaryQueue();
request.setExpectedJMSReplyTo(tempQueue);
receiver.setExpectedReceiveCalls(1);
receiver.setupReceivedMessage(reply);
sender.setExpectedSendCalls(1);
session.setupReceiver(receiver);
session.setupSender(sender);
session.setupTemporaryQueue(tempQueue);
try {
QueueRequestor requestor = new QueueRequestor(session, queue);
Message jmsReply = requestor.request(request);
assertEquals(jmsReply, reply);
} catch (JMSException ex) {
fail("JMSException should not have been thrown.");
}
reply.verify();
request.verify();
queue.verify();
receiver.verify();
sender.verify();
session.verify();
tempQueue.verify();
}
public void testClose() {
MockQueue queue = new MockQueue();
MockQueueReceiver receiver = new MockQueueReceiver();
MockQueueSender sender = new MockQueueSender();
MockQueueSession session = new MockQueueSession();
MockTemporaryQueue tempQueue = new MockTemporaryQueue();
session.setExpectedCloseCalls(1);
session.setupReceiver(receiver);
session.setupSender(sender);
session.setupTemporaryQueue(tempQueue);
tempQueue.setExpectedDeleteCalls(1);
try {
QueueRequestor requestor = new QueueRequestor(session, queue);
requestor.close();
} catch (JMSException ex) {
fail();
}
queue.verify();
receiver.verify();
sender.verify();
session.verify();
tempQueue.verify();
}
}
geronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/MessageEOFExceptionTest.java 0000644 0000000 0000000 00000005627 10517560657 025623 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class MessageEOFExceptionTest extends TestCase {
public void testConstructorNull() {
MessageEOFException ex = new MessageEOFException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
MessageEOFException ex = new MessageEOFException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
MessageEOFException ex = new MessageEOFException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
MessageEOFException ex = new MessageEOFException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
MessageEOFException ex = new MessageEOFException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
MessageEOFException ex = new MessageEOFException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
geronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/InvalidSelectorExceptionTest.java 0000644 0000000 0000000 00000005730 10517560657 026767 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class InvalidSelectorExceptionTest extends TestCase {
public void testConstructorNull() {
InvalidSelectorException ex = new InvalidSelectorException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
InvalidSelectorException ex = new InvalidSelectorException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
InvalidSelectorException ex = new InvalidSelectorException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
InvalidSelectorException ex = new InvalidSelectorException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
InvalidSelectorException ex = new InvalidSelectorException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
InvalidSelectorException ex = new InvalidSelectorException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
geronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/IllegalStateExceptionTest.java 0000644 0000000 0000000 00000005663 10517560657 026257 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class IllegalStateExceptionTest extends TestCase {
public void testConstructorNull() {
IllegalStateException ex = new IllegalStateException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
IllegalStateException ex = new IllegalStateException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
IllegalStateException ex = new IllegalStateException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
IllegalStateException ex = new IllegalStateException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
IllegalStateException ex = new IllegalStateException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
IllegalStateException ex = new IllegalStateException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
geronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/MessageNotWriteableExceptionTest.java 0000644 0000000 0000000 00000006014 10517560657 027600 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class MessageNotWriteableExceptionTest extends TestCase {
public void testConstructorNull() {
MessageNotWriteableException ex = new MessageNotWriteableException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
MessageNotWriteableException ex = new MessageNotWriteableException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
MessageNotWriteableException ex = new MessageNotWriteableException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
MessageNotWriteableException ex = new MessageNotWriteableException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
MessageNotWriteableException ex = new MessageNotWriteableException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
MessageNotWriteableException ex = new MessageNotWriteableException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
geronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/TransactionInProgressExceptionTest.java 0000644 0000000 0000000 00000006046 10517560657 030202 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class TransactionInProgressExceptionTest extends TestCase {
public void testConstructorNull() {
TransactionInProgressException ex = new TransactionInProgressException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
TransactionInProgressException ex = new TransactionInProgressException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
TransactionInProgressException ex = new TransactionInProgressException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
TransactionInProgressException ex = new TransactionInProgressException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
TransactionInProgressException ex = new TransactionInProgressException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
TransactionInProgressException ex = new TransactionInProgressException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
geronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/InvalidClientIDExceptionTest.java 0000644 0000000 0000000 00000005731 10517560657 026643 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class InvalidClientIDExceptionTest extends TestCase {
public void testConstructorNull() {
InvalidClientIDException ex = new InvalidClientIDException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
InvalidClientIDException ex = new InvalidClientIDException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
InvalidClientIDException ex = new InvalidClientIDException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
InvalidClientIDException ex = new InvalidClientIDException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
InvalidClientIDException ex = new InvalidClientIDException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
InvalidClientIDException ex = new InvalidClientIDException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
geronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/TopicRequestorTest.java 0000644 0000000 0000000 00000003123 10517560657 025003 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import com.mockobjects.jms.MockTopic;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class TopicRequestorTest extends TestCase {
public void testConstructorNullTopic() {
MockTopic topic = new MockTopic();
try {
new TopicRequestor(null, topic);
fail();
} catch (JMSException ex) {
fail("JMSException should not have been thrown.");
} catch (NullPointerException ex) {
// success.
}
topic.verify();
}
}
geronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/MessageFormatExceptionTest.java 0000644 0000000 0000000 00000005676 10517560657 026446 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class MessageFormatExceptionTest extends TestCase {
public void testConstructorNull() {
MessageFormatException ex = new MessageFormatException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
MessageFormatException ex = new MessageFormatException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
MessageFormatException ex = new MessageFormatException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
MessageFormatException ex = new MessageFormatException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
MessageFormatException ex = new MessageFormatException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
MessageFormatException ex = new MessageFormatException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
geronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/JMSExceptionTest.java 0000644 0000000 0000000 00000006060 10517560657 024326 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class JMSExceptionTest extends TestCase {
public void testConstructorNull() {
JMSException ex = new JMSException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
JMSException ex = new JMSException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
JMSException ex = new JMSException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
JMSException ex = new JMSException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
JMSException ex = new JMSException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
JMSException ex = new JMSException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testSetLinkedException() {
Exception expected = new Exception();
JMSException ex = new JMSException(null);
ex.setLinkedException(expected);
assertEquals(expected, ex.getLinkedException());
}
}
geronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/JMSSecurityExceptionTest.java 0000644 0000000 0000000 00000005644 10517560657 026065 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class JMSSecurityExceptionTest extends TestCase {
public void testConstructorNull() {
JMSSecurityException ex = new JMSSecurityException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
JMSSecurityException ex = new JMSSecurityException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
JMSSecurityException ex = new JMSSecurityException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
JMSSecurityException ex = new JMSSecurityException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
JMSSecurityException ex = new JMSSecurityException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
JMSSecurityException ex = new JMSSecurityException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
geronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/TransactionRolledBackExceptionTest.java 0000644 0000000 0000000 00000006046 10517560657 030111 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class TransactionRolledBackExceptionTest extends TestCase {
public void testConstructorNull() {
TransactionRolledBackException ex = new TransactionRolledBackException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
TransactionRolledBackException ex = new TransactionRolledBackException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
TransactionRolledBackException ex = new TransactionRolledBackException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
TransactionRolledBackException ex = new TransactionRolledBackException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
TransactionRolledBackException ex = new TransactionRolledBackException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
TransactionRolledBackException ex = new TransactionRolledBackException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
geronimo-jms-1.1-spec-1.1/src/site/ 0000755 0000000 0000000 00000000000 11142326424 015436 5 ustar root root geronimo-jms-1.1-spec-1.1/src/site/site.xml 0000644 0000000 0000000 00000002137 10517560657 017144 0 ustar root root
${parentProject}
${modules}
${reports}
geronimo-jms-1.1-spec-1.1/src/main/ 0000755 0000000 0000000 00000000000 11142326423 015415 5 ustar root root geronimo-jms-1.1-spec-1.1/src/main/java/ 0000755 0000000 0000000 00000000000 11142326423 016336 5 ustar root root geronimo-jms-1.1-spec-1.1/src/main/java/javax/ 0000755 0000000 0000000 00000000000 11142326423 017447 5 ustar root root geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/ 0000755 0000000 0000000 00000000000 11142326424 020241 5 ustar root root geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/TopicPublisher.java 0000644 0000000 0000000 00000003041 10517560657 024053 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
public interface TopicPublisher extends MessageProducer {
Topic getTopic() throws JMSException;
void publish(Message message) throws JMSException;
void publish(
Message message,
int deliveryMode,
int priority,
long timeToLive)
throws JMSException;
void publish(Topic topic, Message message) throws JMSException;
void publish(
Topic topic,
Message message,
int deliveryMode,
int priority,
long timeToLive)
throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/ConnectionMetaData.java 0000644 0000000 0000000 00000003124 10517560657 024621 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import java.util.Enumeration;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface ConnectionMetaData {
String getJMSVersion() throws JMSException;
int getJMSMajorVersion() throws JMSException;
int getJMSMinorVersion() throws JMSException;
String getJMSProviderName() throws JMSException;
String getProviderVersion() throws JMSException;
int getProviderMajorVersion() throws JMSException;
int getProviderMinorVersion() throws JMSException;
Enumeration getJMSXPropertyNames() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/IllegalStateException.java 0000644 0000000 0000000 00000002532 10517560657 025354 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class IllegalStateException extends JMSException {
public IllegalStateException(String reason, String errorCode) {
super(reason, errorCode);
}
public IllegalStateException(String reason) {
this(reason, null);
}
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/DeliveryMode.java 0000644 0000000 0000000 00000002316 10517560657 023513 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface DeliveryMode {
static final int NON_PERSISTENT = 1;
static final int PERSISTENT = 2;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/TopicConnection.java 0000644 0000000 0000000 00000003257 10517560657 024226 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface TopicConnection extends Connection {
TopicSession createTopicSession(boolean transacted, int acknowledgeMode)
throws JMSException;
ConnectionConsumer createConnectionConsumer(
Topic topic,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException;
ConnectionConsumer createDurableConnectionConsumer(
Topic topic,
String subscriptionName,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/XASession.java 0000644 0000000 0000000 00000002610 10517560657 022774 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import javax.transaction.xa.XAResource;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface XASession extends Session {
Session getSession() throws JMSException;
XAResource getXAResource();
boolean getTransacted() throws JMSException;
void commit() throws JMSException;
void rollback() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/InvalidClientIDException.java 0000644 0000000 0000000 00000002543 10517560657 025746 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class InvalidClientIDException extends JMSException {
public InvalidClientIDException(String reason, String errorCode) {
super(reason, errorCode);
}
public InvalidClientIDException(String reason) {
this(reason, null);
}
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/XAQueueConnectionFactory.java 0000644 0000000 0000000 00000002566 10517560657 026017 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface XAQueueConnectionFactory
extends XAConnectionFactory, QueueConnectionFactory {
XAQueueConnection createXAQueueConnection() throws JMSException;
XAQueueConnection createXAQueueConnection(String userName, String password)
throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/XATopicConnectionFactory.java 0000644 0000000 0000000 00000002566 10517560657 026011 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface XATopicConnectionFactory
extends XAConnectionFactory, TopicConnectionFactory {
XATopicConnection createXATopicConnection() throws JMSException;
XATopicConnection createXATopicConnection(String userName, String password)
throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/TemporaryQueue.java 0000644 0000000 0000000 00000002266 10517560657 024116 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface TemporaryQueue extends Queue {
void delete() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/TransactionInProgressException.java 0000644 0000000 0000000 00000002565 10517560657 027311 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class TransactionInProgressException extends JMSException {
public TransactionInProgressException(String reason, String errorCode) {
super(reason, errorCode);
}
public TransactionInProgressException(String reason) {
this(reason, null);
}
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/TextMessage.java 0000644 0000000 0000000 00000002356 10517560657 023360 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface TextMessage extends Message {
void setText(String string) throws JMSException;
String getText() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/MessageConsumer.java 0000644 0000000 0000000 00000002777 10517560657 024236 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface MessageConsumer {
String getMessageSelector() throws JMSException;
MessageListener getMessageListener() throws JMSException;
void setMessageListener(MessageListener listener) throws JMSException;
Message receive() throws JMSException;
Message receive(long timeout) throws JMSException;
Message receiveNoWait() throws JMSException;
void close() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/ObjectMessage.java 0000644 0000000 0000000 00000002436 10517560657 023641 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import java.io.Serializable;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface ObjectMessage extends Message {
void setObject(Serializable object) throws JMSException;
Serializable getObject() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/XAQueueConnection.java 0000644 0000000 0000000 00000002524 10517560657 024461 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface XAQueueConnection extends XAConnection, QueueConnection {
XAQueueSession createXAQueueSession() throws JMSException;
QueueSession createQueueSession(boolean transacted, int acknowledgeMode)
throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/JMSException.java 0000644 0000000 0000000 00000003743 10517560657 023440 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class JMSException extends Exception {
private String errorCode;
private Exception linkedException;
public JMSException(String reason, String errorCode) {
super(reason);
this.errorCode = errorCode;
linkedException = null;
}
public JMSException(String reason) {
this(reason, null);
linkedException = null;
}
public String getErrorCode() {
return errorCode;
}
public Exception getLinkedException() {
return linkedException;
}
/*
* Although not specified in the JavaDoc, this method need to be
* declared synchronized to make the serialUID the same as for
* the RI. However, given that the setter is not synchronized
* this may be problematic on some platforms.
*/
public synchronized void setLinkedException(Exception ex) {
linkedException = ex;
}
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/MessageNotWriteableException.java 0000644 0000000 0000000 00000002557 10517560657 026715 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class MessageNotWriteableException extends JMSException {
public MessageNotWriteableException(String reason, String errorCode) {
super(reason, errorCode);
}
public MessageNotWriteableException(String reason) {
this(reason, null);
}
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/ConnectionConsumer.java 0000644 0000000 0000000 00000002356 10517560657 024742 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface ConnectionConsumer {
ServerSessionPool getServerSessionPool() throws JMSException;
void close() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/TopicSubscriber.java 0000644 0000000 0000000 00000002363 10517560657 024227 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface TopicSubscriber extends MessageConsumer {
Topic getTopic() throws JMSException;
boolean getNoLocal() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/ConnectionFactory.java 0000644 0000000 0000000 00000002433 10517560657 024552 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface ConnectionFactory {
Connection createConnection() throws JMSException;
Connection createConnection(String userName, String password)
throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/MessageNotReadableException.java 0000644 0000000 0000000 00000002554 10517560657 026473 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class MessageNotReadableException extends JMSException {
public MessageNotReadableException(String reason, String errorCode) {
super(reason, errorCode);
}
public MessageNotReadableException(String reason) {
this(reason, null);
}
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/QueueSession.java 0000644 0000000 0000000 00000003230 10517560657 023547 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface QueueSession extends Session {
Queue createQueue(String queueName) throws JMSException;
QueueReceiver createReceiver(Queue queue) throws JMSException;
QueueReceiver createReceiver(Queue queue, String messageSelector)
throws JMSException;
QueueSender createSender(Queue queue) throws JMSException;
QueueBrowser createBrowser(Queue queue) throws JMSException;
QueueBrowser createBrowser(Queue queue, String messageSelector)
throws JMSException;
TemporaryQueue createTemporaryQueue() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/TransactionRolledBackException.java 0000644 0000000 0000000 00000002565 10517560657 027220 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class TransactionRolledBackException extends JMSException {
public TransactionRolledBackException(String reason, String errorCode) {
super(reason, errorCode);
}
public TransactionRolledBackException(String reason) {
this(reason, null);
}
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/ServerSessionPool.java 0000644 0000000 0000000 00000002276 10517560657 024574 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface ServerSessionPool {
ServerSession getServerSession() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/MessageListener.java 0000644 0000000 0000000 00000002247 10517560657 024220 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface MessageListener {
void onMessage(Message message);
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/ServerSession.java 0000644 0000000 0000000 00000002325 10517560657 023735 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface ServerSession {
Session getSession() throws JMSException;
void start() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/XATopicSession.java 0000644 0000000 0000000 00000002313 10517560657 023773 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface XATopicSession extends XASession {
TopicSession getTopicSession() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/InvalidSelectorException.java 0000644 0000000 0000000 00000002543 10517560657 026073 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class InvalidSelectorException extends JMSException {
public InvalidSelectorException(String reason, String errorCode) {
super(reason, errorCode);
}
public InvalidSelectorException(String reason) {
this(reason, null);
}
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/TopicConnectionFactory.java 0000644 0000000 0000000 00000002516 10517560657 025553 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface TopicConnectionFactory extends ConnectionFactory {
TopicConnection createTopicConnection() throws JMSException;
TopicConnection createTopicConnection(String userName, String password)
throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/Destination.java 0000644 0000000 0000000 00000002176 10517560657 023410 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface Destination {
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/XAQueueSession.java 0000644 0000000 0000000 00000002313 10517560657 024001 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface XAQueueSession extends XASession {
QueueSession getQueueSession() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/QueueSender.java 0000644 0000000 0000000 00000003111 10517560657 023342 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface QueueSender extends MessageProducer {
Queue getQueue() throws JMSException;
void send(Message message) throws JMSException;
void send(Message message, int deliveryMode, int priority, long timeToLive)
throws JMSException;
void send(Queue queue, Message message) throws JMSException;
void send(
Queue queue,
Message message,
int deliveryMode,
int priority,
long timeToLive)
throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/BytesMessage.java 0000644 0000000 0000000 00000004761 10517560657 023524 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface BytesMessage extends Message {
long getBodyLength() throws JMSException;
boolean readBoolean() throws JMSException;
byte readByte() throws JMSException;
int readUnsignedByte() throws JMSException;
short readShort() throws JMSException;
int readUnsignedShort() throws JMSException;
char readChar() throws JMSException;
int readInt() throws JMSException;
long readLong() throws JMSException;
float readFloat() throws JMSException;
double readDouble() throws JMSException;
String readUTF() throws JMSException;
int readBytes(byte[] value) throws JMSException;
int readBytes(byte[] value, int length) throws JMSException;
void writeBoolean(boolean value) throws JMSException;
void writeByte(byte value) throws JMSException;
void writeShort(short value) throws JMSException;
void writeChar(char value) throws JMSException;
void writeInt(int value) throws JMSException;
void writeLong(long value) throws JMSException;
void writeFloat(float value) throws JMSException;
void writeDouble(double value) throws JMSException;
void writeUTF(String value) throws JMSException;
void writeBytes(byte[] value) throws JMSException;
void writeBytes(byte[] value, int offset, int length) throws JMSException;
void writeObject(Object value) throws JMSException;
void reset() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/Session.java 0000644 0000000 0000000 00000006714 10517560657 022554 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import java.io.Serializable;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface Session extends Runnable {
static final int AUTO_ACKNOWLEDGE = 1;
static final int CLIENT_ACKNOWLEDGE = 2;
static final int DUPS_OK_ACKNOWLEDGE = 3;
static final int SESSION_TRANSACTED = 0;
BytesMessage createBytesMessage() throws JMSException;
MapMessage createMapMessage() throws JMSException;
Message createMessage() throws JMSException;
ObjectMessage createObjectMessage() throws JMSException;
ObjectMessage createObjectMessage(Serializable object) throws JMSException;
StreamMessage createStreamMessage() throws JMSException;
TextMessage createTextMessage() throws JMSException;
TextMessage createTextMessage(String text) throws JMSException;
boolean getTransacted() throws JMSException;
int getAcknowledgeMode() throws JMSException;
void commit() throws JMSException;
void rollback() throws JMSException;
void close() throws JMSException;
void recover() throws JMSException;
MessageListener getMessageListener() throws JMSException;
void setMessageListener(MessageListener listener) throws JMSException;
public void run();
MessageProducer createProducer(Destination destination)
throws JMSException;
MessageConsumer createConsumer(Destination destination)
throws JMSException;
MessageConsumer createConsumer(
Destination destination,
java.lang.String messageSelector)
throws JMSException;
MessageConsumer createConsumer(
Destination destination,
java.lang.String messageSelector,
boolean NoLocal)
throws JMSException;
Queue createQueue(String queueName) throws JMSException;
Topic createTopic(String topicName) throws JMSException;
TopicSubscriber createDurableSubscriber(Topic topic, String name)
throws JMSException;
TopicSubscriber createDurableSubscriber(
Topic topic,
String name,
String messageSelector,
boolean noLocal)
throws JMSException;
QueueBrowser createBrowser(Queue queue) throws JMSException;
QueueBrowser createBrowser(Queue queue, String messageSelector)
throws JMSException;
TemporaryQueue createTemporaryQueue() throws JMSException;
TemporaryTopic createTemporaryTopic() throws JMSException;
void unsubscribe(String name) throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/XATopicConnection.java 0000644 0000000 0000000 00000002524 10517560657 024453 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface XATopicConnection extends XAConnection, TopicConnection {
XATopicSession createXATopicSession() throws JMSException;
TopicSession createTopicSession(boolean transacted, int acknowledgeMode)
throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/JMSSecurityException.java 0000644 0000000 0000000 00000002527 10517560657 025167 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class JMSSecurityException extends JMSException {
public JMSSecurityException(String reason, String errorCode) {
super(reason, errorCode);
}
public JMSSecurityException(String reason) {
this(reason, null);
}
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/QueueBrowser.java 0000644 0000000 0000000 00000002534 10517560657 023555 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import java.util.Enumeration;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface QueueBrowser {
Queue getQueue() throws JMSException;
String getMessageSelector() throws JMSException;
Enumeration getEnumeration() throws JMSException;
void close() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/InvalidDestinationException.java 0000644 0000000 0000000 00000002555 10517560657 026577 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class InvalidDestinationException extends JMSException {
public InvalidDestinationException(String reason, String errorCode) {
super(reason, errorCode);
}
public InvalidDestinationException(String reason) {
this(reason, null);
}
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/XAConnectionFactory.java 0000644 0000000 0000000 00000002445 10517560657 025006 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface XAConnectionFactory {
XAConnection createXAConnection() throws JMSException;
XAConnection createXAConnection(String userName, String password)
throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/Topic.java 0000644 0000000 0000000 00000002323 10517560657 022177 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface Topic extends Destination {
String getTopicName() throws JMSException;
String toString();
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/MapMessage.java 0000644 0000000 0000000 00000005246 10517560657 023152 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import java.util.Enumeration;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface MapMessage extends Message {
boolean getBoolean(String name) throws JMSException;
byte getByte(String name) throws JMSException;
short getShort(String name) throws JMSException;
char getChar(String name) throws JMSException;
int getInt(String name) throws JMSException;
long getLong(String name) throws JMSException;
float getFloat(String name) throws JMSException;
double getDouble(String name) throws JMSException;
String getString(String name) throws JMSException;
byte[] getBytes(String name) throws JMSException;
Object getObject(String name) throws JMSException;
Enumeration getMapNames() throws JMSException;
void setBoolean(String name, boolean value) throws JMSException;
void setByte(String name, byte value) throws JMSException;
void setShort(String name, short value) throws JMSException;
void setChar(String name, char value) throws JMSException;
void setInt(String name, int value) throws JMSException;
void setLong(String name, long value) throws JMSException;
void setFloat(String name, float value) throws JMSException;
void setDouble(String name, double value) throws JMSException;
void setString(String name, String value) throws JMSException;
void setBytes(String name, byte[] value) throws JMSException;
void setBytes(String name, byte[] value, int offset, int length)
throws JMSException;
void setObject(String name, Object value) throws JMSException;
boolean itemExists(String name) throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/Connection.java 0000644 0000000 0000000 00000004106 10517560657 023221 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface Connection {
Session createSession(boolean transacted, int acknowledgeMode)
throws JMSException;
String getClientID() throws JMSException;
void setClientID(String clientID) throws JMSException;
ConnectionMetaData getMetaData() throws JMSException;
ExceptionListener getExceptionListener() throws JMSException;
void setExceptionListener(ExceptionListener listener) throws JMSException;
void start() throws JMSException;
void stop() throws JMSException;
void close() throws JMSException;
ConnectionConsumer createConnectionConsumer(
Destination destination,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException;
ConnectionConsumer createDurableConnectionConsumer(
Topic topic,
String subscriptionName,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/TopicSession.java 0000644 0000000 0000000 00000003566 10517560657 023555 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface TopicSession extends Session {
Topic createTopic(String topicName) throws JMSException;
TopicSubscriber createSubscriber(Topic topic) throws JMSException;
TopicSubscriber createSubscriber(
Topic topic,
String messageSelector,
boolean noLocal)
throws JMSException;
TopicSubscriber createDurableSubscriber(Topic topic, String name)
throws JMSException;
TopicSubscriber createDurableSubscriber(
Topic topic,
String name,
String messageSelector,
boolean noLocal)
throws JMSException;
TopicPublisher createPublisher(Topic topic) throws JMSException;
TemporaryTopic createTemporaryTopic() throws JMSException;
void unsubscribe(String name) throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/QueueRequestor.java 0000644 0000000 0000000 00000005272 10517560657 024125 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class QueueRequestor {
private QueueSession session;
private TemporaryQueue temporaryQueue;
private QueueSender sender;
private QueueReceiver receiver;
public QueueRequestor(QueueSession session, Queue queue)
throws JMSException
{
super();
if(queue == null) {
throw new InvalidDestinationException("Invalid queue");
}
setSession(session);
setTemporaryQueue(session.createTemporaryQueue());
setSender(session.createSender(queue));
setReceiver(session.createReceiver(getTemporaryQueue()));
}
public Message request(Message message) throws JMSException {
message.setJMSReplyTo(getTemporaryQueue());
getSender().send(message);
return getReceiver().receive();
}
public void close() throws JMSException {
getSession().close();
getTemporaryQueue().delete();
}
private void setReceiver(QueueReceiver receiver) {
this.receiver = receiver;
}
private QueueReceiver getReceiver() {
return receiver;
}
private void setSender(QueueSender sender) {
this.sender = sender;
}
private QueueSender getSender() {
return sender;
}
private void setSession(QueueSession session) {
this.session = session;
}
private QueueSession getSession() {
return session;
}
private void setTemporaryQueue(TemporaryQueue temporaryQueue) {
this.temporaryQueue = temporaryQueue;
}
private TemporaryQueue getTemporaryQueue() {
return temporaryQueue;
}
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/QueueConnectionFactory.java 0000644 0000000 0000000 00000002516 10517560657 025561 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface QueueConnectionFactory extends ConnectionFactory {
QueueConnection createQueueConnection() throws JMSException;
QueueConnection createQueueConnection(String userName, String password)
throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/MessageProducer.java 0000644 0000000 0000000 00000004314 10517560657 024213 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface MessageProducer {
void setDisableMessageID(boolean value) throws JMSException;
boolean getDisableMessageID() throws JMSException;
void setDisableMessageTimestamp(boolean value) throws JMSException;
boolean getDisableMessageTimestamp() throws JMSException;
void setDeliveryMode(int deliveryMode) throws JMSException;
int getDeliveryMode() throws JMSException;
void setPriority(int defaultPriority) throws JMSException;
int getPriority() throws JMSException;
void setTimeToLive(long timeToLive) throws JMSException;
long getTimeToLive() throws JMSException;
Destination getDestination() throws JMSException;
void close() throws JMSException;
void send(Message message) throws JMSException;
void send(Message message, int deliveryMode, int priority, long timeToLive)
throws JMSException;
void send(Destination destination, Message message) throws JMSException;
void send(
Destination destination,
Message message,
int deliveryMode,
int priority,
long timeToLive)
throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/ResourceAllocationException.java 0000644 0000000 0000000 00000002555 10517560657 026604 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class ResourceAllocationException extends JMSException {
public ResourceAllocationException(String reason, String errorCode) {
super(reason, errorCode);
}
public ResourceAllocationException(String reason) {
this(reason, null);
}
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/ExceptionListener.java 0000644 0000000 0000000 00000002262 10517560657 024567 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface ExceptionListener {
void onException(JMSException exception);
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/QueueConnection.java 0000644 0000000 0000000 00000002703 10517560657 024227 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface QueueConnection extends Connection {
QueueSession createQueueSession(boolean transacted, int acknowledgeMode)
throws JMSException;
ConnectionConsumer createConnectionConsumer(
Queue queue,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/StreamMessage.java 0000644 0000000 0000000 00000004522 10517560657 023664 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface StreamMessage extends Message {
boolean readBoolean() throws JMSException;
byte readByte() throws JMSException;
short readShort() throws JMSException;
char readChar() throws JMSException;
int readInt() throws JMSException;
long readLong() throws JMSException;
float readFloat() throws JMSException;
double readDouble() throws JMSException;
String readString() throws JMSException;
int readBytes(byte[] value) throws JMSException;
Object readObject() throws JMSException;
void writeBoolean(boolean value) throws JMSException;
void writeByte(byte value) throws JMSException;
void writeShort(short value) throws JMSException;
void writeChar(char value) throws JMSException;
void writeInt(int value) throws JMSException;
void writeLong(long value) throws JMSException;
void writeFloat(float value) throws JMSException;
void writeDouble(double value) throws JMSException;
void writeString(String value) throws JMSException;
void writeBytes(byte[] value) throws JMSException;
void writeBytes(byte[] value, int offset, int length) throws JMSException;
void writeObject(Object value) throws JMSException;
void reset() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/Queue.java 0000644 0000000 0000000 00000002323 10517560657 022205 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface Queue extends Destination {
String getQueueName() throws JMSException;
String toString();
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/QueueReceiver.java 0000644 0000000 0000000 00000002302 10517560657 023667 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface QueueReceiver extends MessageConsumer {
Queue getQueue() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/Message.java 0000644 0000000 0000000 00000010046 10517560657 022506 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import java.util.Enumeration;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface Message {
static final int DEFAULT_DELIVERY_MODE = DeliveryMode.PERSISTENT;
static final int DEFAULT_PRIORITY = 4;
static final long DEFAULT_TIME_TO_LIVE = 0;
String getJMSMessageID() throws JMSException;
void setJMSMessageID(String id) throws JMSException;
long getJMSTimestamp() throws JMSException;
void setJMSTimestamp(long timestamp) throws JMSException;
byte[] getJMSCorrelationIDAsBytes() throws JMSException;
void setJMSCorrelationIDAsBytes(byte[] correlationID) throws JMSException;
void setJMSCorrelationID(String correlationID) throws JMSException;
String getJMSCorrelationID() throws JMSException;
Destination getJMSReplyTo() throws JMSException;
void setJMSReplyTo(Destination replyTo) throws JMSException;
Destination getJMSDestination() throws JMSException;
void setJMSDestination(Destination destination) throws JMSException;
int getJMSDeliveryMode() throws JMSException;
void setJMSDeliveryMode(int deliveryMode) throws JMSException;
boolean getJMSRedelivered() throws JMSException;
void setJMSRedelivered(boolean redelivered) throws JMSException;
String getJMSType() throws JMSException;
void setJMSType(String type) throws JMSException;
long getJMSExpiration() throws JMSException;
void setJMSExpiration(long expiration) throws JMSException;
int getJMSPriority() throws JMSException;
void setJMSPriority(int priority) throws JMSException;
void clearProperties() throws JMSException;
boolean propertyExists(String name) throws JMSException;
boolean getBooleanProperty(String name) throws JMSException;
byte getByteProperty(String name) throws JMSException;
short getShortProperty(String name) throws JMSException;
int getIntProperty(String name) throws JMSException;
long getLongProperty(String name) throws JMSException;
float getFloatProperty(String name) throws JMSException;
double getDoubleProperty(String name) throws JMSException;
String getStringProperty(String name) throws JMSException;
Object getObjectProperty(String name) throws JMSException;
Enumeration getPropertyNames() throws JMSException;
void setBooleanProperty(String name, boolean value) throws JMSException;
void setByteProperty(String name, byte value) throws JMSException;
void setShortProperty(String name, short value) throws JMSException;
void setIntProperty(String name, int value) throws JMSException;
void setLongProperty(String name, long value) throws JMSException;
void setFloatProperty(String name, float value) throws JMSException;
void setDoubleProperty(String name, double value) throws JMSException;
void setStringProperty(String name, String value) throws JMSException;
void setObjectProperty(String name, Object value) throws JMSException;
void acknowledge() throws JMSException;
void clearBody() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/TemporaryTopic.java 0000644 0000000 0000000 00000002266 10517560657 024110 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface TemporaryTopic extends Topic {
void delete() throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/XAConnection.java 0000644 0000000 0000000 00000002450 10517560657 023452 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public interface XAConnection extends Connection {
XASession createXASession() throws JMSException;
Session createSession(boolean transacted, int acknowledgeMode)
throws JMSException;
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/MessageFormatException.java 0000644 0000000 0000000 00000002535 10517560657 025542 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class MessageFormatException extends JMSException {
public MessageFormatException(String reason, String errorCode) {
super(reason, errorCode);
}
public MessageFormatException(String reason) {
this(reason, null);
}
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/MessageEOFException.java 0000644 0000000 0000000 00000002524 10517560657 024721 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class MessageEOFException extends JMSException {
public MessageEOFException(String reason, String errorCode) {
super(reason, errorCode);
}
public MessageEOFException(String reason) {
this(reason, null);
}
}
geronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/TopicRequestor.java 0000644 0000000 0000000 00000005502 10517560657 024113 0 ustar root root /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 04:01:51 +0000 (mer 25 oct 2006) $
*/
public class TopicRequestor {
private TopicSession session;
private Topic topic;
private TemporaryTopic temporaryTopic;
private TopicPublisher publisher;
private TopicSubscriber subscriber;
public TopicRequestor(TopicSession session, Topic topic)
throws JMSException {
super();
setSession(session);
setTopic(topic);
setTemporaryTopic(session.createTemporaryTopic());
setPublisher(session.createPublisher(topic));
setSubscriber(session.createSubscriber(getTemporaryTopic()));
}
public Message request(Message message) throws JMSException {
message.setJMSReplyTo(getTemporaryTopic());
getPublisher().publish(message);
return (getSubscriber().receive());
}
public void close() throws JMSException {
getSession().close();
getTemporaryTopic().delete();
}
private void setPublisher(TopicPublisher publisher) {
this.publisher = publisher;
}
private TopicPublisher getPublisher() {
return publisher;
}
private void setSession(TopicSession session) {
this.session = session;
}
private TopicSession getSession() {
return session;
}
private void setSubscriber(TopicSubscriber subscriber) {
this.subscriber = subscriber;
}
private TopicSubscriber getSubscriber() {
return subscriber;
}
private void setTemporaryTopic(TemporaryTopic temporaryTopic) {
this.temporaryTopic = temporaryTopic;
}
private TemporaryTopic getTemporaryTopic() {
return temporaryTopic;
}
private void setTopic(Topic topic) {
this.topic = topic;
}
private Topic getTopic() {
return topic;
}
}
geronimo-jms-1.1-spec-1.1/LICENSE.txt 0000644 0000000 0000000 00000026137 10474162255 015546 0 ustar root root
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.