geronimo-jms-1.1-spec-1.1/0000755000000000000000000000000011142326424013703 5ustar rootrootgeronimo-jms-1.1-spec-1.1/NOTICE.txt0000644000000000000000000000025310533742201015423 0ustar rootrootApache 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.xml0000644000000000000000000000444010540173175015226 0ustar rootroot 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/0000755000000000000000000000000011142326424014472 5ustar rootrootgeronimo-jms-1.1-spec-1.1/src/test/0000755000000000000000000000000011142326421015446 5ustar rootrootgeronimo-jms-1.1-spec-1.1/src/test/java/0000755000000000000000000000000011142326421016367 5ustar rootrootgeronimo-jms-1.1-spec-1.1/src/test/java/javax/0000755000000000000000000000000011142326421017500 5ustar rootrootgeronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/0000755000000000000000000000000011142326423020273 5ustar rootrootgeronimo-jms-1.1-spec-1.1/src/test/java/javax/jms/ResourceAllocationExceptionTest.java0000644000000000000000000000577710517560657027510 0ustar rootroot/* * 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.java0000644000000000000000000000577710517560657027503 0ustar rootroot/* * 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.java0000644000000000000000000000577710517560657027400 0ustar rootroot/* * 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.java0000644000000000000000000001343610517560657025021 0ustar rootroot/* * 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.java0000644000000000000000000000562710517560657025623 0ustar rootroot/* * 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.java0000644000000000000000000000573010517560657026767 0ustar rootroot/* * 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.java0000644000000000000000000000566310517560657026257 0ustar rootroot/* * 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.java0000644000000000000000000000601410517560657027600 0ustar rootroot/* * 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.java0000644000000000000000000000604610517560657030202 0ustar rootroot/* * 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.java0000644000000000000000000000573110517560657026643 0ustar rootroot/* * 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.java0000644000000000000000000000312310517560657025003 0ustar rootroot/* * 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.java0000644000000000000000000000567610517560657026446 0ustar rootroot/* * 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.java0000644000000000000000000000606010517560657024326 0ustar rootroot/* * 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.java0000644000000000000000000000564410517560657026065 0ustar rootroot/* * 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.java0000644000000000000000000000604610517560657030111 0ustar rootroot/* * 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/0000755000000000000000000000000011142326424015436 5ustar rootrootgeronimo-jms-1.1-spec-1.1/src/site/site.xml0000644000000000000000000000213710517560657017144 0ustar rootroot ${parentProject} ${modules} ${reports} geronimo-jms-1.1-spec-1.1/src/main/0000755000000000000000000000000011142326423015415 5ustar rootrootgeronimo-jms-1.1-spec-1.1/src/main/java/0000755000000000000000000000000011142326423016336 5ustar rootrootgeronimo-jms-1.1-spec-1.1/src/main/java/javax/0000755000000000000000000000000011142326423017447 5ustar rootrootgeronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/0000755000000000000000000000000011142326424020241 5ustar rootrootgeronimo-jms-1.1-spec-1.1/src/main/java/javax/jms/TopicPublisher.java0000644000000000000000000000304110517560657024053 0ustar rootroot/* * 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.java0000644000000000000000000000312410517560657024621 0ustar rootroot/* * 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.java0000644000000000000000000000253210517560657025354 0ustar rootroot/* * 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.java0000644000000000000000000000231610517560657023513 0ustar rootroot/* * 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.java0000644000000000000000000000325710517560657024226 0ustar rootroot/* * 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.java0000644000000000000000000000261010517560657022774 0ustar rootroot/* * 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.java0000644000000000000000000000254310517560657025746 0ustar rootroot/* * 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.java0000644000000000000000000000256610517560657026017 0ustar rootroot/* * 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.java0000644000000000000000000000256610517560657026011 0ustar rootroot/* * 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.java0000644000000000000000000000226610517560657024116 0ustar rootroot/* * 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.java0000644000000000000000000000256510517560657027311 0ustar rootroot/* * 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.java0000644000000000000000000000235610517560657023360 0ustar rootroot/* * 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.java0000644000000000000000000000277710517560657024236 0ustar rootroot/* * 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.java0000644000000000000000000000243610517560657023641 0ustar rootroot/* * 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.java0000644000000000000000000000252410517560657024461 0ustar rootroot/* * 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.java0000644000000000000000000000374310517560657023440 0ustar rootroot/* * 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.java0000644000000000000000000000255710517560657026715 0ustar rootroot/* * 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.java0000644000000000000000000000235610517560657024742 0ustar rootroot/* * 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.java0000644000000000000000000000236310517560657024227 0ustar rootroot/* * 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.java0000644000000000000000000000243310517560657024552 0ustar rootroot/* * 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.java0000644000000000000000000000255410517560657026473 0ustar rootroot/* * 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.java0000644000000000000000000000323010517560657023547 0ustar rootroot/* * 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.java0000644000000000000000000000256510517560657027220 0ustar rootroot/* * 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.java0000644000000000000000000000227610517560657024574 0ustar rootroot/* * 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.java0000644000000000000000000000224710517560657024220 0ustar rootroot/* * 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.java0000644000000000000000000000232510517560657023735 0ustar rootroot/* * 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.java0000644000000000000000000000231310517560657023773 0ustar rootroot/* * 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.java0000644000000000000000000000254310517560657026073 0ustar rootroot/* * 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.java0000644000000000000000000000251610517560657025553 0ustar rootroot/* * 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.java0000644000000000000000000000217610517560657023410 0ustar rootroot/* * 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.java0000644000000000000000000000231310517560657024001 0ustar rootroot/* * 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.java0000644000000000000000000000311110517560657023342 0ustar rootroot/* * 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.java0000644000000000000000000000476110517560657023524 0ustar rootroot/* * 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.java0000644000000000000000000000671410517560657022554 0ustar rootroot/* * 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.java0000644000000000000000000000252410517560657024453 0ustar rootroot/* * 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.java0000644000000000000000000000252710517560657025167 0ustar rootroot/* * 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.java0000644000000000000000000000253410517560657023555 0ustar rootroot/* * 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.java0000644000000000000000000000255510517560657026577 0ustar rootroot/* * 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.java0000644000000000000000000000244510517560657025006 0ustar rootroot/* * 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.java0000644000000000000000000000232310517560657022177 0ustar rootroot/* * 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.java0000644000000000000000000000524610517560657023152 0ustar rootroot/* * 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.java0000644000000000000000000000410610517560657023221 0ustar rootroot/* * 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.java0000644000000000000000000000356610517560657023555 0ustar rootroot/* * 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.java0000644000000000000000000000527210517560657024125 0ustar rootroot/* * 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.java0000644000000000000000000000251610517560657025561 0ustar rootroot/* * 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.java0000644000000000000000000000431410517560657024213 0ustar rootroot/* * 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.java0000644000000000000000000000255510517560657026604 0ustar rootroot/* * 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.java0000644000000000000000000000226210517560657024567 0ustar rootroot/* * 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.java0000644000000000000000000000270310517560657024227 0ustar rootroot/* * 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.java0000644000000000000000000000452210517560657023664 0ustar rootroot/* * 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.java0000644000000000000000000000232310517560657022205 0ustar rootroot/* * 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.java0000644000000000000000000000230210517560657023667 0ustar rootroot/* * 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.java0000644000000000000000000001004610517560657022506 0ustar rootroot/* * 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.java0000644000000000000000000000226610517560657024110 0ustar rootroot/* * 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.java0000644000000000000000000000245010517560657023452 0ustar rootroot/* * 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.java0000644000000000000000000000253510517560657025542 0ustar rootroot/* * 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.java0000644000000000000000000000252410517560657024721 0ustar rootroot/* * 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.java0000644000000000000000000000550210517560657024113 0ustar rootroot/* * 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.txt0000644000000000000000000002613710474162255015546 0ustar rootroot 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.