ActiveMQ as JMS-Provider in HelloWorld example
lex-raven Jun 27, 2008 5:56 PMHey everyone,
I am new to the community and am currently using the JBoss ESB 4.3 in the JBoss AS 4.2.2. I want to add an ActiveMQ as a JMS-Provider in the HelloWorld example.
I downloaded the ActiveMQ Version 4.1.0 and installed the two JAR files in the following directory:
jboss-4.2.2.GA\server\default\lib
Then I added the following code jboss-esb.xml
<jms-provider name="ActiveMQ" connection-factory="ConnectionFactory" jndi-context-factory="org.apache.activemq.jndi.ActiveMQInitialContextFactory" jndi-URL="tcp://localhost:61616"> <jms-bus busid="AMQ"> <jms-message-filter dest-type="QUEUE" dest-name="AMQ-Test" /> </jms-bus> </jms-provider>
I have also inserted the following code into jbmq-queue-service.xml
<mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.esb.quickstart.destination:service=Queue,name=AMQ"> <depends optional-attribute-name="DestinationManager"> jboss.mq:service=DestinationManager </depends> </mbean>
The running terminal shows:
23:02:06,296 INFO [JBoss4ESBDeployer] create esb service, Quickstart_helloworld.esb 23:02:06,312 INFO [quickstart_helloworld_Request_esb] Bound to JNDI name: queue/quickstart_helloworld_Request_esb 23:02:06,328 INFO [quickstart_helloworld_Request_gw] Bound to JNDI name: queue/quickstart_helloworld_Request_gw 23:02:06,453 INFO [JDBCDataStore] Generated token 'authToken:4CBCBA50-448C-11DD-BA50-F6D2BB1C6B97' for user: 'jbossesb/JBoss ESB User' 23:02:06,625 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started. 23:02:06,625 INFO [AMQ] Bound to JNDI name: queue/AMQ
My problem is that I cannot connect to the ActiveMQ-queue through a small Java-Client.
I am not quite sure how I can use ActiveMQ in the JBoss ESB.
On the ActiveMQ website I found a "HowTo" that shows you how to switch completely from the default JMS to ActiveMQ, but I do not want to completely switch, I only want to provide a second queue in addition to my default queues.
I could not find a configuration solution for my problem by searching the internet that is why it would be great if you guys could help me.
I read the administration guide but unfortunately it could not help me solve my problem at all.
Thanks in advance for your answers.
Best regards,
Lex