Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Message Destination

 
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi does anyone could make me at least some reference about my issue? Thanks
 
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic