Re: Connect ApacheMQ with web application using JMS

2014-01-16 Thread Howard W. Smith, Jr.
On Thu, Jan 16, 2014 at 12:30 PM, Ilya Kazakevich < ilya.kazakev...@jetbrains.com> wrote: > > There is a servlet container with many concurrent users. Each user request > works in its own thread from pool (tomcat is used) > There is also ApacheMQ server that routes messages for users via JMS. > T

Re: Connect ApacheMQ with web application using JMS

2014-01-16 Thread artnaseef
o), and (b) that only durable subscriptions ever persist messages. In other words, non-durable Topic subscriptions will lose messages on broker restarts. -- View this message in context: http://activemq.2283324.n4.nabble.com/Connect-ApacheMQ-with-web-application-using-JMS-tp4676387p4676418.html

Re: Connect ApacheMQ with web application using JMS

2014-01-16 Thread Jose María Zaragoza
2014/1/16 Ilya Kazakevich : > Hello, > >>-Original Message- >>From: Jose María Zaragoza [mailto:demablo...@gmail.com] >>Sent: Thursday, January 16, 2014 11:30 PM >>To: users >>Subject: Re: Connect ApacheMQ with web application using JMS > >

RE: Connect ApacheMQ with web application using JMS

2014-01-16 Thread Ilya Kazakevich
Hello, >-Original Message- >From: Jose María Zaragoza [mailto:demablo...@gmail.com] >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

Re: Connect ApacheMQ with web application using JMS

2014-01-16 Thread Jose María Zaragoza
2014/1/16 Ilya Kazakevich : > We have 2 ideas: > > * Use one Connection and one Session for the whole web-app, create consumer > for each user and store it in user session. Each time user opens page we do > receiveNoWait and obtain all messages she got. > > * Fetch all messages from all consumers o

Connect ApacheMQ with web application using JMS

2014-01-16 Thread Ilya Kazakevich
Hello, There is a servlet container with many concurrent users. Each user request works in its own thread from pool (tomcat is used) There is also ApacheMQ server that routes messages for users via JMS. To send message to user Mary you need to use topic "users.Mary". So, web server subscribes to