File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Who creates destination Queueor Topic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Who creates destination Queueor Topic" Watch "Who creates destination Queueor Topic" New topic
Author

Who creates destination Queueor Topic

Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637
3) I have a JMS MDB that is a listener for a destination of type Queue named "ShippingRequestQueue" as shown below.



If you observe in this above code there is a property defined as destination which has "jms/ShippingRequestQueue", this
property indicates that this JMS MDB is listening for messages on Queue named "jms/ShippingRequestQueue". Now my
question is
a) Who created this destination in this case Queue ?
b) Did EJB Container while deploying the MDB creates these Queue/Topic [destination] by reading the above property?


SCJP, SCWCD, SCBCD
Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637
Please take time to respond to this question.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9344
    
    2

Originally posted by Deepak Jain:
Please take time to respond to this question.


You create the Queue and assign it a JNDI name and deploy it to your JMS provider.


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Who creates destination Queueor Topic
 
Similar Threads
setMessageDrivenContext() doubt
ejbRemove() and ejbCreate() are never invoked.
JBoss and MDB (configuration question)
messageListenerInterface doubt
Strange exception while using JBOSS