You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by roEcho <bo...@yahoo.com> on 2014/02/11 16:07:59 UTC

Error creating subscription

Hi

I am running hornetQ with stomp on. I am running the following code:
            Apache.NMS.Stomp.ConnectionFactory factory = new
Apache.NMS.Stomp.ConnectionFactory("tcp://localhost:61613");

            using (IConnection connection =
(IConnection)factory.CreateConnection())
            using (ISession session =
connection.CreateSession(AcknowledgementMode.AutoAcknowledge))
            {

                //IDestination destination =
session.GetQueue("queue://testQ1");
                IDestination destination =
SessionUtil.GetDestination(session, @"queue://testQ");

                *IMessageConsumer consumer1 =
session.CreateConsumer(destination);*
                Console.WriteLine("Using destination: " + destination);

                using (IMessageConsumer consumer =
session.CreateConsumer(destination))
                {
                    // Start the connection so that messages will be
processed.
                    connection.Start();
                    consumer.Listener += new MessageListener(OnMessage);
                    Console.ReadLine();
                }
            }


the bolded line throws an Apache.NMS.Stomp.BrokerException with the
following message HQ339016: Error creating subscription.

does anyone have an idea why ?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Error-creating-subscription-tp4677781.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Error creating subscription

Posted by Harley Blumenfeld <ha...@gmail.com>.
Timothy Bish said that it may have something to do with the destination
lookup and that can be configured via the wireFormat... I have started a new
thread here:

http://activemq.2283324.n4.nabble.com/Need-help-configuring-wireFormat-for-Apache-NMS-Stomp-1-5-4-to-talk-to-HornetQ-td4686002.html



--
View this message in context: http://activemq.2283324.n4.nabble.com/Error-creating-subscription-tp4677781p4686003.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Error creating subscription

Posted by Harley Blumenfeld <ha...@gmail.com>.
I am having a similar issue. Did you ever figure this out or did anyone get
back to you?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Error-creating-subscription-tp4677781p4685988.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.