You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by semanticfire <ba...@netage.nl> on 2019/10/31 14:32:53 UTC
Internal ActiveMQ broker without connection pooling
Hi,
I'm using multiple durable subscribers on topics on the internal ActiveMQ
broker.
I run into clientID cannot be set on active connections because the
createconnection returns a connection from the pool.
Is there a way to not have a pool at all so that the connections are
directly obtained from the ActiveMQ broker?
Current config:
Thanks in advance
--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
RE: Internal ActiveMQ broker without connection pooling
Posted by semanticfire <ba...@netage.nl>.
Thanks for the reply,
In the meantime I found a undocumented option which does exactly what I
want.
pooling = false in the resource definition of the connection factory
That does exactly what I need, every connection I obtain is a fresh one from
activeMQ
dimas wrote
> I had the same problem, solved by updating client libs version to the
> recent version (2.10.0) and adding setEnableSharedClientID(true), for ex:
>
> private ConnectionFactory getConnectionFactory() {
> ActiveMQJMSConnectionFactory cf = new
> ActiveMQJMSConnectionFactory(
> connectionUri, jmsUser, jmsPassword);
> cf.setClientID(
> <yourId>
> );
> cf.setEnableSharedClientID(true);
> return cf;
> }
>
> Cheers,
> Dmitry
>
>
>
> -----Original Message-----
> From: semanticfire [mailto:
> bart@
> ]
> Sent: Thursday, October 31, 2019 7:33 AM
> To:
> users@.apache
> Subject: Internal ActiveMQ broker without connection pooling
>
> Hi,
>
> I'm using multiple durable subscribers on topics on the internal ActiveMQ
> broker.
> I run into clientID cannot be set on active connections because the
> createconnection returns a connection from the pool.
> Is there a way to not have a pool at all so that the connections are
> directly obtained from the ActiveMQ broker?
>
> Current config:
>
>
>
> Thanks in advance
>
>
>
> --
> Sent from:
> https://urldefense.com/v3/__http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html__;!LLC3CZw_jFA!OZEZMBmHQjynxh61mSzjfsAVyl15H7RkSKKvtpfdDjPlhkSUc64nWIIS6y5M4tuSly7t$
--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
RE: Internal ActiveMQ broker without connection pooling
Posted by "Shultz, Dmitry" <Dm...@kaltire.com>.
I had the same problem, solved by updating client libs version to the recent version (2.10.0) and adding setEnableSharedClientID(true), for ex:
private ConnectionFactory getConnectionFactory() {
ActiveMQJMSConnectionFactory cf = new ActiveMQJMSConnectionFactory(
connectionUri, jmsUser, jmsPassword);
cf.setClientID(<yourId>);
cf.setEnableSharedClientID(true);
return cf;
}
Cheers,
Dmitry
-----Original Message-----
From: semanticfire [mailto:bart@netage.nl]
Sent: Thursday, October 31, 2019 7:33 AM
To: users@tomee.apache.org
Subject: Internal ActiveMQ broker without connection pooling
Hi,
I'm using multiple durable subscribers on topics on the internal ActiveMQ broker.
I run into clientID cannot be set on active connections because the createconnection returns a connection from the pool.
Is there a way to not have a pool at all so that the connections are directly obtained from the ActiveMQ broker?
Current config:
Thanks in advance
--
Sent from: https://urldefense.com/v3/__http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html__;!LLC3CZw_jFA!OZEZMBmHQjynxh61mSzjfsAVyl15H7RkSKKvtpfdDjPlhkSUc64nWIIS6y5M4tuSly7t$