• 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

Synchronous Messaging

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for posting the sam topic twice. And I'm not allowed to delete one.
 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic