2008/5/16 carloc <[EMAIL PROTECTED]>:
>
> Hi,
>
> I'm implementing camel request reply based on spring remoting. I took a look
> at the examples included
> in the distribution.
>
> I have a question:
>
> Is the connection opened and closed everytime I make a request or is there a
> connection pool that is implemented.
It depends on the endpoint you're talking to really. Most endpoints
have some kind of pooling.
e.g. if you use the JMS endpoints its using the JmsTemplate /
MessageListenerContainer stuff from Spring to do the pooling
> How are transactions handled here?
We use Spring declarative transactions
> Should I use the ActiveMQPooledConnectionFactory instead of the other one?
> I'm gonna use activemq 5.1
I'd recommend using the activemq component that comes with ActiveMQ
5.1 which is all setup to do the right thing. If the broker is on your
localhost:61616 then you don't need to configure anything at all.
from("activemq:foo").to("activemq:bar");
will just work.
If you need to change the connection URL just configure the brokerURL property.
http://activemq.apache.org/camel/activemq.html
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com