Re: Connection pooling for VM protocol?

2014-04-23 Thread Gary Tully
the broker maintains some per connection state, connectionId and clientId to enforce the single clientId in use jms requirement, this can be an area of thread contention on heavily loaded systems that open/close many connections. So even for vm connections (where there is no tcp socket) there will

Re: Connection pooling - validation

2011-12-27 Thread Dejan Bosanac
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:

Re: Connection pooling - validation

2011-12-27 Thread Stevo Slavić
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

Re: Connection pooling - validation

2011-12-27 Thread Dejan Bosanac
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 Mo

Re: Connection pooling when use the .NET Messaging API (NMS)

2008-04-17 Thread James Strachan
On 17/04/2008, jimmyfrank <[EMAIL PROTECTED]> wrote: > > The application would be either a webservice or an .aspx page a user would > hit. So a user might enter some info on a page with a form and then I'd > need to create all the activemq resources and send the message. Since it's > stateles

Re: Connection pooling when use the .NET Messaging API (NMS)

2008-04-17 Thread jimmyfrank
The application would be either a webservice or an .aspx page a user would hit. So a user might enter some info on a page with a form and then I'd need to create all the activemq resources and send the message. Since it's stateless I'd need to be able to have the connections pooled like MSMQ con

Re: Connection pooling when use the .NET Messaging API (NMS)

2008-04-17 Thread jimmyfrank
The application would be either a webservice or an .aspx page a user would hit. So a user might enter some info on a page with a form and then I'd need to create all the activemq resources and send the message. Since it's stateless I'd need to be able to have the connections pooled like MSMQ con

Re: Connection pooling when use the .NET Messaging API (NMS)

2008-04-16 Thread James Strachan
On 17/04/2008, jimmyfrank <[EMAIL PROTECTED]> wrote: > > I'm using the .NET Messaging API to send and receive messages from ActiveMQ. > How would I pool connections? Do I need to at all or is it handled somehow > for me by the broker? I can find several forum posts that talk about > connectio

Re: Connection pooling

2007-04-24 Thread James Strachan
On 4/24/07, Daniel Gradecak <[EMAIL PROTECTED]> wrote: > BTW thats really intended for folks who are using the JMS API directly > rather than JmsTemplate > So for better performances it is better to use the API directly ? Yes > No you can't. JmsTemplate creates/closes all the JMS resources

Re: Connection pooling

2007-04-24 Thread Daniel Gradecak
BTW thats really intended for folks who are using the JMS API directly rather than JmsTemplate So for better performances it is better to use the API directly ? No you can't. JmsTemplate creates/closes all the JMS resources each time so you're only hope is to use only sending along with Pool

Re: Connection pooling

2007-04-24 Thread James Strachan
On 4/24/07, Daniel Gradecak <[EMAIL PROTECTED]> wrote: I wonder if if this configuration does the pooling correctly? ${jms.brokerUrl} ${jms.transaction.timeout} ${jms.brokerUrl} ${jms.pool.maxConnections} ${jms.recei

Re: Connection pooling

2007-04-24 Thread Daniel Gradecak
I wonder if if this configuration does the pooling correctly? class="org.apache.activemq.ra.ActiveMQResourceAdapter"> name="serverUrl">${jms.brokerUrl} class="org.jencks.factory.TransactionManagerFactoryBean"> name="defaultTransactionTimeoutSeconds">${jms.transaction.timeou

Re: Connection pooling

2007-04-24 Thread James Strachan
On 4/24/07, Peter Steil <[EMAIL PROTECTED]> wrote: Hi, I am using release 4.1.1 and I am wondering whether or not TopicConnections are pooled automatically somehow. No. I have quite a lot TopicPublisher who publish to different topics. Should I keep one TopicConnection open and use it for

Re: Connection pooling

2007-03-15 Thread Bruce Snyder
On 3/15/07, garima015 <[EMAIL PROTECTED]> wrote: Hi, Can anyone give me some idea on how i can implement the activemq connection pooling. I tried using this code PooledConnectionFactory connectionFactory = new PooledConnectionFactory(ipAddress); and then setting up the number of connections.Bu