• Post Reply Bookmark Topic Watch Topic
  • New Topic

Message driven bean

 
James J Xu
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After payment, there is email confirmation send to customer. I wonder should we use message driven bean here?

James
 
Parag Doshi
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah..thats one way of doing it. I think the Petstore uses a EmailSender MDB for similar purpose..

Parag
 
roy siju
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another way can be implementing Service Activator pattern ( If u want to stick to ejb 1.1 spec and not want to use MDB )
http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceActivator.html

Thanks
Roy
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!