Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jms message listener  RSS feed

 
serafino lillo
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've some products and users.
Each product could be related to one or some or all users. When a user interact with a product, all users related to that product should be updated.
My application works in online and offline mode, so I need to send message among users when they come back online.
Products and users should change at any moment.

So I tried jms topics with durable subscriber and request/reply pattern with queues and message selector based on correlation id property.

But nothing seems to work for me. Message listeners pretend static properties for client id, correlation id and message selectors. Using a JMS consumer I have to manually consume messages.

Maybe I'm missing something, but I can't find a working optimal solution.

Substantially I need to implement something that works like an instant messaging system with user grouped in rooms. Users and rooms change dinamically. But instead of exchanging simple text message, interaction of all user with products should trigger long tasks.
Could xmpp be appropriate in this case?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!