My JNDI solution doesn't seem to work.
It seems as though I get a serialized object from JNDI.
As I start producing messages new connections are created. Instead of
reusing the pooledConnections.
What i did is:
1. created a separate project that registers a
org.apache.activemq.pool.AmqJNDIPooledConnectionFactory in JNDI using the
JNDIExporter from the internet;
2. in the other projects I retreive this object from JNDI.

I think that I get a serialized object because when I undeploy the project
that registers the pool gets another object from the pool when it unbinds
the bound object (hashcode of the retrieved object is different).
Isn't this the correct way to share objects?
Should I use managed beans?



--
View this message in context: 
http://camel.465427.n5.nabble.com/large-war-or-several-smaller-wars-tp5732294p5732433.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to