Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS and real-time

 
Christian Weiss
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there!

I already googled the topic and fliped over the JMS specs, but I didn't find any hint nor an answer yet so I really hope you can help:

I need to implement a software where people can monitor the status of an object in realtime and thus get informed about status updates immediately. It's not really highly critical, but queuing a message and let the consumers fetch it is not an option. It has to be a 'push' mechanism that sends the message to the consumer right away.

Would a JMS publish-subscribe solution fit that needs?

Thanks,
~christian
 
Amit M Tank
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Observer pattern.
 
Christian Weiss
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the quick reply, but the question was not about the design of the application but rather if J2EE servers are required to be implemented that way, that the connection to consumers is kept alive and messages are pushed to them.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic