This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes MDB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "MDB" Watch "MDB" New topic
Author

MDB

linuss santoo
Greenhorn

Joined: Aug 08, 2003
Posts: 5
Is it true that only in the case of MDB u require the JMS?
:roll:
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

MDB are consumer of JMS messages.
Yes, you need a JMS to send and receive JMS messages.
A J2EE server provide one implementation of JMS.


Groovy
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

I have a Q
Is it possible for non-JMS client to consume the message sent by a JMS client. I am takning about Messaging servers such as MQ SERIES.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Sure, the message producer might send the message to WebSphereMQ/MQSeries using the JMS API while the message consumer would use MQSeries' proprietary API.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

Thanks Lasse. You are wonderful as usual. Can you please pass me some documents/links suppporting this. It will be helpful.
Originally posted by Lasse Koskela:
Sure, the message producer might send the message to WebSphereMQ/MQSeries using the JMS API while the message consumer would use MQSeries' proprietary API.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Pradeep, here are some IBM RedBooks:
MQSeries + Java
MQSeries + Smalltalk
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Originally posted by linuss santoo:
Is it true that only in the case of MDB u require the JMS?
:roll:

In EJB 2.1 MDBs have been extented to support other messaging types beyond just JMS. However, it is true that in EJB 2.0 MDBs could only listen to JMS messages.
Like it has already been alluded to, with the exception of MSMQ, all major MOM products support JMS. Therefore, it is usually not terribly difficult to get JMS running on top of the various MOM products. The only real difficulty exists in integrating these MOM products with your J2EE Server. However, since J2EE 1.3 requires the inclusion of JMS, it is usually unecessary to use external JMS Providers with today's J2EE Servers (there are still a few cases where external JMS Providers make sense).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: MDB
 
Similar Threads
Issue with jboss tibco integration after tibco EMS restart
system exceptions
is it possible to semd messages from MDB to MDB
[MDB] K&B, What technique is better ?
ejb-jar file 's content