Re: large war or several smaller wars

2013-05-13 Thread Christian Posta
Sorry, sent before pasting the link... https://community.jboss.org/wiki/IntegratingActiveMQWithJBoss On Mon, May 13, 2013 at 12:47 PM, Christian Posta wrote: > can you try with the activemq resource adapter? I found this, might be > useful: > > > > On Mon, May 13, 2013 at 11:34 AM, Preben.Asmu

Re: large war or several smaller wars

2013-05-13 Thread Christian Posta
can you try with the activemq resource adapter? I found this, might be useful: On Mon, May 13, 2013 at 11:34 AM, Preben.Asmussen wrote: > have you tried activemq resource adapters > > It should work with jboss > If you run into any trouble wi

Re: large war or several smaller wars

2013-05-13 Thread Preben.Asmussen
have you tried activemq resource adapters It should work with jboss If you run into any trouble with this try the activemq forum they should be able to help with activemq set

Re: large war or several smaller wars

2013-05-13 Thread anoordover
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.AmqJNDIPooledCon

Re: large war or several smaller wars

2013-05-11 Thread anoordover
I think i found a solution (still implementing it). 1. Create a war that uses spring to create a amqjndipooledtransactionfactory 2. Inside this use a jndiexporter that can be found on the internet to export this bean to jndi 3. Inside jboss-web.xml in other wars define a depedency to the war of ste

Re: large war or several smaller wars

2013-05-10 Thread anoordover
Sorry. I didn't realize that the environment would make such a difference. We have jboss 5 as and activemq standalone running. Until now i couldn't find an easy way to register a pooledconnection in jndi inside jboss as i suppose i need to do. -- View this message in context: http://camel.46542

Re: large war or several smaller wars

2013-05-10 Thread Preben.Asmussen
I guess it depends on your runtime environment and appserver. Here are some articles for tomcat http://pragmaticintegrator.wordpress.com/2011/01/17/combining-activemq-tomcat-and-mule-esb/ http://www.tomcatexpert.com/blog/2010/12/16/integrating-activemq-tomcat-using-local-jndi -- View this messa

Re: large war or several smaller wars

2013-05-10 Thread anoordover
I was already looking into using JNDI for registering an AmqJNDIPooledConnectionFactory but I couldn't find out how to register this using an existing ActiveMQConnectionFactory (spring bean). Does anybody have an example? Preben.Asmussen wrote > Seems like it would be nice to have a connection poo

Re: large war or several smaller wars

2013-05-10 Thread Preben.Asmussen
Seems like it would be nice to have a connection pool at jvm or appserver leve so that you can reuse connections between wars, and have a centralized pool. I'm not sure if this is doable with activemq. -- View this message in context: http://camel.465427.n5.nabble.com/large-war-or-several-smal

Re: large war or several smaller wars

2013-05-10 Thread anoordover
Currently we create beans for interacting with activemq in each project. So a lot of poolConnectionFactories get created. This creates a lot of connections to activemq and we also must invest a lot to change this configuration. The pro to this aproach is that change can be implemented standalone wi

Re: large war or several smaller wars

2013-05-10 Thread Bruno Borges
Not sure if this is really a Camel issue, is it? Could you please clarify the problem? *Bruno Borges* (11) 99564-9058 *www.brunoborges.com* On Fri, May 10, 2013 at 12:25 PM, anoordover wrote: > What should we do if we use camel and activemq? > 1. Should we create much small wars (this is what