Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXM Vs JMS

 
Deepa Janakiraman
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to web services and JAX APIs. I couldn't understand the difference between JMS and JAXM. I can see both can send XML doc as messages.
Is that redundant? Please help me understand this.
Thanks.
Deepa
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is that redundant?

That's a good question without a correct answer.
JMS and JAXM are redundant from the point of view that both are messaging APIs. But, the details support the opposite view. JMS does not define a transport protocol and thus isn't as viable for integration - JAXM uses SOAP as a transport. On the other hand, JAXM only supports point-to-point communication (which is the mostly used in EAI).
In general, JMS provides more performance and flexibility while JAXM provides compatibility.
 
Rama Raghavan
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JMS provides reliable asynchronous communication between enterprise components, i.e. There are message producers generating messages, while consumers receive and process messages, asynchronously....Messages exchanged via JMS may be XML, text, bytes etc..
while
JAXM is a convenient (wrappered) API that makes it easy to create and send XML messages over the Internet, without worrying about the protocol.
In an nutshell:
1. JMS is used within an enterprise while JAXM is used to send messages over the internet
2. JMS supports publish/subscribe model, but not sure if JAXM can send messages to multiple recepients..
3. JMS messages can be XML, text, byes, objects while JAXM send XML messages (only)
4. JMS provides a reliable service, i.e. guaranteed delivery, whereas when using JAXM, I think calls will fail if remote host/port is unavailable.
Experts - please share if you disagree..
Rama
[ March 25, 2003: Message edited by: Rama Raghavan ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic