Stefan, No, that's fine too! It is exactly the same thing, actually, just another syntax. Have you tried using the JMX console to check if the queue is there? Could you post the Java client code you are looking at?
Regards, Gert stlecho wrote: > > Gert, > > I'm using the following definition for the ConnectionFactory: " <bean > id="connectionFactory" > class="org.apache.activemq.ActiveMQConnectionFactory"><property > name="brokerURL" value="tcp://localhost:61616" /></bean>". Should this be > replaced by the "amq:connectionFactory" definition ? > > When connecting to this queue with a Java client, I'm receiving a queue > not found exception. > > Regards, Stefan. > > Gert Vanthienen wrote: >> >> L.S., >> >> If your the jms:consumer in your xbean.xml file uses a JMS >> ConnectionFactory to establish the connection to the broker. For >> ActiveMQ, you should find something like this in your file: >> <amq:connectionFactory id="connectionFactory" >> brokerURL="tcp://localhost:61616" /> >> >> The queue will be auto-created by ActiveMQ when a connection is being >> made; the best way to check this is by connection to ServiceMix (and the >> embedded ActiveMQ) with a JMX console as explained in >> http://servicemix.apache.org/15-beginner-using-jmx-to-look-inside-the-esb.html >> and looking at the list of queues for ActiveMQ there. >> >> >> P.S. Sorry about the double post, copy-pasted the XML again instead of >> the URL for the JMX connection explanation... >> >> >> stlecho wrote: >>> >>> Hi, >>> >>> I'm deploying the jms:consumer in the standard ServiceMix distribution, >>> so I suppose that ServiceMix uses internally ActiveMQ to host the >>> defined queues. If this supposition is correct, how can I automatically >>> create the required queues when deploying the SA ? >>> >>> Regards, Stefan Lecho. >>> >>> >>> Chris Custine (Apache) wrote: >>>> >>>> Like Guillaume said, if you are using ActiveMQ then by default the >>>> queue >>>> should be created for you. It sounds like you might be using something >>>> other than ActiveMQ and creation of queues would be entirely specific >>>> to the >>>> product and probably require some type of administration tool. If you >>>> are >>>> using ActiveMQ let us know and we can work through it in more detail. >>>> >>>> Chris >>>> >>>> -- >>>> Chris Custine >>>> My Blog :: http://blog.organicelement.com >>>> Apache ServiceMix :: http://servicemix.apache.org >>>> Apache Directory Server :: http://directory.apache.org >>>> >>>> >>>> On Thu, Aug 21, 2008 at 9:44 AM, stlecho <[EMAIL PROTECTED]> wrote: >>>> >>>>> >>>>> I've defined an jms:consumer linked to a specific queue. When >>>>> deploying the >>>>> SA, I've noticed that this queue is not automatically created. How can >>>>> I >>>>> control the automatic creation of queues at deployment time ? >>>>> >>>>> >>>>> gnodet wrote: >>>>> > >>>>> > I guess you are tallkin about JMS queues... >>>>> > ServiceMix does not perform any JMS administration, however if you >>>>> use >>>>> > ActiveMQ, there is no need for that, as queues and topics and >>>>> created >>>>> > dynamically and JNDI is not necessary. >>>>> > >>>>> > Cheers, >>>>> > Guillaume Nodet >>>>> > >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://www.nabble.com/creating-and-using-queue-tp3658202p19091464.html >>>>> Sent from the ServiceMix - User mailing list archive at Nabble.com. >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > ----- --- Gert Vanthienen http://www.anova.be -- View this message in context: http://www.nabble.com/creating-and-using-queue-tp3658202p19096278.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
