Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Synchronous Messaging

 
Henrique Ordine
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,

I'm a bit confused about what is considered messaging in J2EE. Is it just the P2P and Publish/Subscribe communication modes used by JMS or is Remote Procedure Calls, like EJBs and JCA adapters, also considered messaging?

Thanks very much.
 
Henrique Ordine
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for posting the sam topic twice. And I'm not allowed to delete one.
 
jay roy
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I feel its just JMS(Java Messaging Service)
http://java.sun.com/products/jms/
 
Henrique Ordine
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, thanks.
So, can anyone tell me a scenario in which it would be better to implement a synchronized point-to-point messaging then it would be to simply make a RPC, like an EJB call or a JCA Adapter call?
 
ManojKumar Unnikrishnan
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all JMS is used for asynchronous messaging i.e. the data messages can be posted on to a queue, and can be picked up at any time.
Messaging is required in a scenario where data from different location needs to be merged in a single place.It could be the multiple branches of a financial company generating a log in xml format.
The xml data can then be passed across as JMS messages, to be picked up at the central location using message driven beans and an XML parser.
 
Henrique Ordine
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry guys for bringing this up again, but I'm still confused. I've been taking many mock exams and when the question is what you would use to implement a transaction for which you need an instant response, sometimes the answer is "Synchronized messaging" and sometimes its "You wouldn't use messaging".
So, if there is such a question in the exam, which is the best answer?
Thanks again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic