Configuring connection factory class in standalone client
Hi all, Our setup is: - ActiveMQ 5.3 running standalone - Web app under Tomcat 6.0.20 as producer. - A separate thread acts as a consumer. - Producer & consumer configured by attached JNDI props file. - Java 6 First we had a problem with ActiveMQ+Tomcat freezing that we solved by turning of producer workflow control in the broker's activemq.xml. Then we lost messages due to jvm bind errors when threads were concurrently sending messages. We could solve this, too, by using PooledConnectionFactory. However, we did this in the code which is bad because the app ist distributed to users who run it in app servers and want to use different JMS implementations, so we must avoid dependencies on any JMS implementation. We'd be very grateful for a hint on how to configure the use of PooledConnectionFactory. Can this be done per jndi.properties or do we need an activemq.xml file instead? We've been looking for a solution quite a while but are a bit at a loss now. Thanks in advance for any help, Michael http://old.nabble.com/file/p27847333/jndi.properties jndi.properties -- View this message in context: http://old.nabble.com/Configuring-connection-factory-class-in-standalone-client-tp27847333p27847333.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: tomcat+jndi+activemq namingexception cannot create resource instance
Looking for a way to make ActiveMQ use PooledConnectionFactory through JNDI I came across your post and http://www.mail-archive.com/us...@tomcat.apache.org/msg66249.html that one which may not help solve your issue but possibly delivers an explanation. Michael stevegula wrote: > > I have spent roughly 10 hours on this now. I have searched all of Google, > Nabble, activemq/tomcat.apache.org ... all I can find is people more or > less asking "what have I done wrong" but I have not found anyone offering > a solution. The best documentation I can find on apache.org contains the > phrase "This is completely untested but should work" ... and it does not. > At one point I thought I was nearing success by doing the "Look Inside > this Book" on Amazon.com looking at "Tomcat: The Definitive Guide > (Paperback)" but ultimately that did not work either. My Junit tests (in > Eclipse using jndi.properties) all work with no problem. When I try doing > this within tomcat w/ web.xml and context.xml it fails horribly. > > Any input would be desperately appreciated. > -- View this message in context: http://old.nabble.com/tomcat%2Bjndi%2Bactivemq--namingexception-cannot-create-resource-instance-tp27788969p27944216.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.