activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <jira+amq...@apache.org>
Subject [jira] [Assigned] (AMQNET-334) Sending a message to a nonexistent queue suspends the current thread.
Date Thu, 07 Jul 2011 21:56:16 GMT

     [ https://issues.apache.org/jira/browse/AMQNET-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Timothy Bish reassigned AMQNET-334:
-----------------------------------

    Assignee: Timothy Bish  (was: Jim Gomes)

> Sending a message to a nonexistent queue suspends the current thread.
> ---------------------------------------------------------------------
>
>                 Key: AMQNET-334
>                 URL: https://issues.apache.org/jira/browse/AMQNET-334
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: NMS
>    Affects Versions: 1.5.1
>            Reporter: SÅ‚awomir Siudek
>            Assignee: Timothy Bish
>            Priority: Blocker
>
> Code to reproduce:
>     class Program
>     {
>         static void Main()
>         {
>             var factory = new ConnectionFactory(ConnectionFactory.DEFAULT_BROKER_URL);
>             
>             // This connection represents a client connection. 'clientResponseChannel'
represents 'response' channel in request-response scenario.
>             // The client closes connection before response will be delivered.
>             IDestination clientResponseChannel = null;
>             using (var clientConnection = factory.CreateConnection())
>             using (var session = clientConnection.CreateSession())
>             {
>                 clientConnection.Start();
>                 clientResponseChannel = session.CreateTemporaryTopic();
>             }
>             // This connection represents a service connection. The service tries send
a message to the client
>             using (var con = factory.CreateConnection())
>             using (var session = con.CreateSession())
>             {
>                 con.Start();
>                 var producer = session.CreateProducer(clientResponseChannel);
>                 var msg = producer.CreateTextMessage("1"); // This line generates an
exception on ActiveMQ log.
>                 producer.Send(msg); // This line suspends current thread, or - sometimes
- invokes JMSException.
>             }
>         }
>     }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message