Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MDB question.

 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!!
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
message-driven-destination is optional
 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So...what is the default destination type value? topic or queue???

Tks.
 
Benoît de Chateauvieux
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!!;-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic