activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Kazakevich" <>
Subject RE: Connect ApacheMQ with web application using JMS
Date Thu, 16 Jan 2014 19:40:23 GMT

>-----Original Message-----
>From: Jose MarĂ­a Zaragoza []
>Sent: Thursday, January 16, 2014 11:30 PM
>To: users
>Subject: Re: Connect ApacheMQ with web application using JMS
>A Connection is thread safe, but Sessions, MessageProducers, and
>MessageConsumers are not. The recommended strategy is to use one Session
>application thread.

Thank you.
So, I can store session and consumer in HTTP session and synchronize access
to it (to prevent access from several browser tabs), right?
Would not it be too heavy to have 200 sessions and 400 consumers (for 200

Or should I get all messages in one thread and then pass them to user


View raw message