After a servlet is hit, I need to send a JMS message to two separate JMS servers (an ActiveMQ queue and a Weblogic queue). I think I'm running into classloader issues with the two separate jars: weblogic.jar and the Activemq-all-5.0.0.jar.
It seems to be conflicting because both of the contain the javax.jms.* package, in particular the QueueConnectionFactory.
I can send messages to each of them if I remove the other from the equation without a problem, but when I put the both in the war so the servlet can try to do both it fails.
Is there a standard approach to this? Are there standard javax.jms.* jars that come from Sun that I should be using? If they use standard jms.jar how do I handle connecting to weblogic and activemq?
Any help is appreciated, Matt [ February 18, 2008: Message edited by: Matt Zollinhofer ]
We are sending messages to JBoss, Weblogic and ActiveMQ from the same application. In you case, I suppose you should only embed the activeMQ-core.jar in order to avoid the conflicting JMS implementations.
Best of luck,
Your mother is a hamster and your father smells of tiny ads!
Free, earth friendly heat - from the CodeRanch trailboss