Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

MDB question

 
mark I thomas
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For publisher-subscriber model, once I create a topic, does the publisher have to be a MDB too ? or can it be a standalone java application that publishes to the topic ?
 
Victor Ramen
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mark I thomas wrote:For publisher-subscriber model, once I create a topic, does the publisher have to be a MDB too ? or can it be a standalone java application that publishes to the topic ?

Both publisher and subscriber can be standalone java apps. Using MDB gives you EJB related advantages like transactions, security, life cycle etc.
The downside is you need a j2ee server.
So if transactions, security, life cycle are not needed, standalone pub and sub is good enough.
 
Victor Ramen
Ranch Hand
Posts: 56
 
mark I thomas
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANKS.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!