File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "MDB question." Watch "MDB question." New topic

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???

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 Declaration of Message Destination References in Deployment Descriptor

The message-destination-
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 it the similar to spec 2.0 ?

I'll be in search of this!!!

I agree. Here's the link:
subject: MDB question.
It's not a secret anymore!