[jboss-jira] [JBoss JIRA] Updated: (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:42:42 EDT 2009
[ https://jira.jboss.org/jira/browse/JBMESSAGING-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard Gao updated JBMESSAGING-1566:
------------------------------------
Description:
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.
was:
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.
> 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.
> 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: 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