• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

component informs other component

 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is a requirement in my project that a component needs to inform another component when certain event occurs.

What options do I have in Java EE 5?

I guess I should use JMS queue, Message Driven Bean, and Java Mail API. Client will send message to JMS queue, Message Driven Bean will listen to it and will send a mail through Java Mail API when message arrives in queue.

One more way is, client will directly send mail through Java Mail API when that event occurs. It doesn�t need JMS queue and MDB.

What you suggest?

Thanks!
 
ankur rathi
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It seems like suitable requirement for Observer pattern but in my case, observer is a human.
 
reply
    Bookmark Topic Watch Topic
  • New Topic