This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Who creates destination Queueor Topic Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply 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: 8795

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, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Who creates destination Queueor Topic
 
Similar Threads
ejbRemove() and ejbCreate() are never invoked.
messageListenerInterface doubt
JBoss and MDB (configuration question)
Strange exception while using JBOSS
setMessageDrivenContext() doubt