*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes MDB question. 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 » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "MDB question." Watch "MDB question." New topic
Author

MDB question.

Steven Colley
Ranch Hand

Joined: Feb 18, 2005
Posts: 290
Hi Folks,

Insn�t the <message-driven-destination> tag in <message-driven> mandatory? if not, what is the default dstination type value? topic or queue???

Tks so much!!!


SCJP | SCWCD | SCBCD | SCWSD 5 | SCEA (I) 1.4 | SCEA 5 | IBM SOA 669
Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643
message-driven-destination is optional
Steven Colley
Ranch Hand

Joined: Feb 18, 2005
Posts: 290
So...what is the default destination type value? topic or queue???

Tks.
Benoît de Chateauvieux
Ranch Hand

Joined: Aug 10, 2007
Posts: 183
Found in the EJB specs:

JSR 220: Enterprise JavaBeansTM,Version 3.0
EJB Core Contracts and Requirements

16.9.1.3 Declaration of Message Destination References in Deployment Descriptor

The message-destination-
type
element specifies the expected type of the referenced destination. For example, in the
case of a JMS Destination, its value might be javax.jms.Queue. The message-destination-
type element is optional if an injection target is specified for the message destination reference;
in this case the message-destination-type defaults to the type of the injection target.

Hope it helps.


SCJP5 | SCBCD5 | SCEA5 Part 1
Steven Colley
Ranch Hand

Joined: Feb 18, 2005
Posts: 290
Hi Benoit, sure it helps a lot tks!!!

But...another question..is it the similar to spec 2.0 ?

I'll be in search of this!!!

Tks!!!;-)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MDB question.
 
Similar Threads
Jboss 6.1.0 hornetq JMS configuration
MDB + DD question.
The dd tag 'message-driven-destination' is optional ?
Message driven beans are not bound into remote jndi
MDB Listening to Multiple Queues