]
Jeff Mesnil closed JBMESSAGING-1566.
------------------------------------
Resolution: Done
Assignee: Jeff Mesnil (was: Tim Fox)
fixed in the trunk
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 Beta1
Reporter: Howard Gao
Assignee: Jeff Mesnil
Fix For: 2.0.0
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.
So the following test should fail, but currently it passes.
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: