You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Stevo Slavić <ss...@gmail.com> on 2011/12/26 14:32:13 UTC

Connection pooling - validation

Hello ActiveMQ community,

org.apache.activemq.pool.PooledConnectionFactory doesn't seem to support
configuring validation of connections. Or am I missing something?

Regards,
Stevo.

Re: Connection pooling - validation

Posted by Dejan Bosanac <de...@nighttale.net>.
We don't have that implemented (contributions are welcomed :), but the
usual approach is to use failover transport (
http://activemq.apache.org/failover-transport-reference.html) which will
ensure that connection is automatically reconnected when broker restarts.


Regards
-- 
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Tue, Dec 27, 2011 at 11:29 AM, Stevo Slavić <ss...@gmail.com> wrote:

> Hi Dejan,
>
> I'm mostly interested in connection validation, but I see that Session and
> MessageProducer objects are being pooled as well. I'm using Spring's
> JmsTemplate and MessagListenerContainer and would like to make sure that
> they do not get "broken" pooled objects when ActiveMQ is down after it was
> up and objects got pooled. Need also to specify timeouts for obtaining
> objects from pool. I see commons-pool is being used but couldn't find in
> ActiveMQ sources examples for configuring validation.
>
> Regards,
> Stevo.
>
> On Tue, Dec 27, 2011 at 10:22 AM, Dejan Bosanac <de...@nighttale.net>
> wrote:
>
> > Hi Stevo,
> >
> > what kind of validation are you interested in?
> >
> > Regards
> > --
> > Dejan Bosanac - http://twitter.com/dejanb
> > -----------------
> > The experts in open source integration and messaging -
> > http://fusesource.com
> > ActiveMQ in Action - http://www.manning.com/snyder/
> > Blog - http://www.nighttale.net
> >
> >
> > On Mon, Dec 26, 2011 at 2:32 PM, Stevo Slavić <ss...@gmail.com> wrote:
> >
> > > Hello ActiveMQ community,
> > >
> > > org.apache.activemq.pool.PooledConnectionFactory doesn't seem to
> support
> > > configuring validation of connections. Or am I missing something?
> > >
> > > Regards,
> > > Stevo.
> > >
> >
>

Re: Connection pooling - validation

Posted by Stevo Slavić <ss...@gmail.com>.
Hi Dejan,

I'm mostly interested in connection validation, but I see that Session and
MessageProducer objects are being pooled as well. I'm using Spring's
JmsTemplate and MessagListenerContainer and would like to make sure that
they do not get "broken" pooled objects when ActiveMQ is down after it was
up and objects got pooled. Need also to specify timeouts for obtaining
objects from pool. I see commons-pool is being used but couldn't find in
ActiveMQ sources examples for configuring validation.

Regards,
Stevo.

On Tue, Dec 27, 2011 at 10:22 AM, Dejan Bosanac <de...@nighttale.net> wrote:

> Hi Stevo,
>
> what kind of validation are you interested in?
>
> Regards
> --
> Dejan Bosanac - http://twitter.com/dejanb
> -----------------
> The experts in open source integration and messaging -
> http://fusesource.com
> ActiveMQ in Action - http://www.manning.com/snyder/
> Blog - http://www.nighttale.net
>
>
> On Mon, Dec 26, 2011 at 2:32 PM, Stevo Slavić <ss...@gmail.com> wrote:
>
> > Hello ActiveMQ community,
> >
> > org.apache.activemq.pool.PooledConnectionFactory doesn't seem to support
> > configuring validation of connections. Or am I missing something?
> >
> > Regards,
> > Stevo.
> >
>

Re: Connection pooling - validation

Posted by Dejan Bosanac <de...@nighttale.net>.
Hi Stevo,

what kind of validation are you interested in?

Regards
-- 
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Mon, Dec 26, 2011 at 2:32 PM, Stevo Slavić <ss...@gmail.com> wrote:

> Hello ActiveMQ community,
>
> org.apache.activemq.pool.PooledConnectionFactory doesn't seem to support
> configuring validation of connections. Or am I missing something?
>
> Regards,
> Stevo.
>

Reply:Connection pooling - validation

Posted by SuoNayi <su...@163.com>.
Keeping alive works for this under the hood, that will send alive informaction every 30 seconds by default between client and server to keep the connection alive.

--

Wangyin
SuoNayi2006@163.com 
 



At 2011-12-26 21:32:13,"Stevo Slavić" <ss...@gmail.com> wrote:
>Hello ActiveMQ community,
>
>org.apache.activemq.pool.PooledConnectionFactory doesn't seem to support
>configuring validation of connections. Or am I missing something?
>
>Regards,
>Stevo.