Hello, >-----Original Message----- >From: Jose María Zaragoza [mailto:[email protected]] >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 per >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 users)? Or should I get all messages in one thread and then pass them to user threads? Ilya.
