permaculture playing cards
The moose likes EJB and other Java EE Technologies and the fly likes Difference between JMS & Java Mail API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Difference between JMS & Java Mail API" Watch "Difference between JMS & Java Mail API" New topic

Difference between JMS & Java Mail API

ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403

I want to know the concreate difference between JMS & Java Mail API.


Ujjwal B Soni

Ujjwal B Soni <baroda, gujarat, india> <+918866008962>
"Helping hands are better than praying lips......"
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Have you read about them on Sun's website? (JMS & JavaMail)

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Lars Zinkoff

Joined: Jan 14, 2008
Posts: 2
Q: Is the Java Message Service another mail API?
A: No. The term messaging is broadly defined in computing. It is used for describing various operating system concepts; it is used to describe email and fax systems; and with the JMS API, it is used to describe asynchronous communication between enterprise applications.

JMS messages are asynchronous requests, reports, or events that are consumed by enterprise applications, not humans. They contain vital information needed to coordinate these systems. They contain precisely formatted data that describe specific business actions. Through the exchange of these messages, each application tracks the progress of the enterprise.
In other words, JMS is for sending messages between application components, and the Java Mail API is for sending an actual email.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3381

Howdy Lars Zinkoff,

Welcome to JavaRanch

Yes, thats a good definition and differentiation!

Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
I agree. Here's the link:
subject: Difference between JMS & Java Mail API
It's not a secret anymore!