[jboss-jira] [JBoss JIRA] Created: (JBMESSAGING-1566) Temporary Destinations should not allow their consumers to be created on other connections than their own as per JMS spec
Howard Gao (JIRA)
jira-events at lists.jboss.org
Thu Apr 2 10:40:25 EDT 2009
Temporary Destinations should not allow their consumers to be created on other connections than their own as per JMS spec
-------------------------------------------------------------------------------------------------------------------------
Key: JBMESSAGING-1566
URL: https://jira.jboss.org/jira/browse/JBMESSAGING-1566
Project: JBoss Messaging
Issue Type: Bug
Components: JMS Facade
Affects Versions: 2.0.0 Beta
Reporter: Howard Gao
Assignee: Tim Fox
Fix For: 2.0.0.CR1
JMS 1.1 spec Section 4.4.3 2nd paragraph:
Temporary destinations (TemporaryQueue or TemporaryTopic objects) are
destinations that are system-generated uniquely for their connection. Only
their own connection is allowed to create MessageConsumers for them.
public void testTemporaryQueueScope()
{
try
{
senderConnection.stop();
receiverConnection.stop();
tempQueue = receiverSession.createTemporaryQueue();
//create consumer on different connection, should fail!
senderSession.createConsumer(tempQueue);
}
catch (JMSException e)
{
fail(e);
}
}
The same issue exists with temporary topics too.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list