-
1. Re: Connection pool for ClusteredConnectionFactory, how to ?
gaohoward Oct 25, 2009 11:22 PM (in response to roman.mandeleil1)
Q1:
JBM doesn't provide connection pooling. You need to pool the connection yourself or using some 3rd party lib (if any).
Q2:
Because JBM doesn't pool connections, so there is no place for such configurations.
Howard -
2. Re: Connection pool for ClusteredConnectionFactory, how to ?
roman.mandeleil1 Oct 26, 2009 3:05 AM (in response to roman.mandeleil1)"gaohoward" wrote:
Q1:
JBM doesn't provide connection pooling. You need to pool the connection yourself or using some 3rd party lib (if any).
Q2:
Because JBM doesn't pool connections, so there is no place for such configurations.
Howard
Thanks, I think I can implement this with stateless bean which will keep the connection, and will reload it if it is down. -
3. Re: Connection pool for ClusteredConnectionFactory, how to ?
timfox Oct 26, 2009 3:08 AM (in response to roman.mandeleil1)If you're using a stateless session bean that means you're running on a server so you can just use JCA pooling.
There are various wiki pages on this. -
4. Re: Connection pool for ClusteredConnectionFactory, how to ?
roman.mandeleil1 Oct 26, 2009 3:36 AM (in response to roman.mandeleil1)"timfox" wrote:
If you're using a stateless session bean that means you're running on a server so you can just use JCA pooling.
There are various wiki pages on this.
You mean: to pool JMS stub with JCA it interesting , have you tried it ? -
5. Re: Connection pool for ClusteredConnectionFactory, how to ?
timfox Oct 26, 2009 3:53 AM (in response to roman.mandeleil1)This is actually mandated by the JEE spec.
Any JMS connections you create from a SLSB must be created (and pooled) by a JCA managed connection factory. -
6. Re: Connection pool for ClusteredConnectionFactory, how to ?
bershath27 Oct 26, 2009 3:53 AM (in response to roman.mandeleil1)"roman.mandeleil@gmail.com" wrote:
"timfox" wrote:
If you're using a stateless session bean that means you're running on a server so you can just use JCA pooling.
There are various wiki pages on this.
You mean: to pool JMS stub with JCA it interesting , have you tried it ?
Tim is referring to the JMS session pool. In other words, obtaining connections from the factory bound at java:/JmsXA. Like Tim has clearly stated,there are n+1 examples + wiki's on the web..forum references etc etc -
8. Re: Connection pool for ClusteredConnectionFactory, how to ?
atijms Jun 18, 2010 9:18 AM (in response to timfox)Tim Fox wrote:
http://www.jboss.org/community/wiki/ShouldIcacheJMSconnectionsandJMSsessions
Something that is not entirely clear to me from that wiki page is how to use JMS connection pooling in combination with a remote queue.
In some examples I see that the JMS connection factory is obtained from the JNDI of the remote server, after which the topic or queue is also retrieved from that remote JNDI, and then the message is sent. I.e. this example: http://blog.emmanuelbernard.com/2008/08/remotely-send-and-consume-messages-with.html
However, other code snippets I see obtain a connection from the local connection factory, and then use this local connection with the queue obtained from the remote JNDI. That method is used in this post: http://community.jboss.org/thread/49409.
Intuitively it seems awkward to use local connections to reach a remote queue. With this mechanism, does the same pool then contains both local and remote connections? Is it possible at all to create different pools and size these differently? By default there is of course only one java:JmsXA.
Help or pointers would be greatly appreciated.
-
9. Re: Connection pool for ClusteredConnectionFactory, how to ?
atijms Jun 23, 2010 7:39 AM (in response to atijms)Anyone?