• Post Reply Bookmark Topic Watch Topic
  • New Topic

Message Destination  RSS feed

 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I'm little confused about declaring destination of messages where the message listener should read from?
In 'EJB 3 in Action", stays this :


Does -jms/ShippingRequestQueue- represent only logical name of destination, under what I'm gonna looking for a sent message in a message listener like or I need to declare it somewhere in some deployment descriptor???
I also consult Oreilly- Enterprise Java Beans 3-, where I believe, declaration in ejb-jar.xml, represent a substitute for annotation like I declare above



So this portion of deployment descriptor represent equivalent of annotations, right???
If so, still I don not understand does -jms/ShippingRequestQueue"- represent just a logical name?

I've read "JBoss in Action", and there I find that MBeans are declare in *service.xml file, (this is portion) :

where full JNDI name MUST haave either prefix -topic/Notification- here, or if we were use Quesue : -queue/Notification -? But, in either Ejb3 in Action and Enterprise Java Beans, I find examples only in formats : 'jms/SomeName".
Also, I'm cofused, consulting JBoss documentation, where should I declare a datasource provider, if I want to inject 'DataSource' object into ejb :


Should I declare parameters for data source inside persistence.xml file, or in *-ds.xml file of JBoss?
Please, I would appreciate if someone clarify me this confusions :
1)Is the name of destination like -queue/MyName- just logical representation, in order for listener to know where to loot at for message
2)If so, why we need configuration in *-service.xml file (if thera are not just logical representation of addresses, than ok.In that case I suppose we need to declare them somewhere)
3)and what is the difference between prefix "jms" and "queue/topic", at which JBoss in action appoint that only one of this two (queue or topic) may stay, but NOT jms?
Thanks for your cooperations!
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi does anyone could make me at least some reference about my issue? Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!