• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Using JMS in websphere

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
While using JMS with the websphere we need to do two things:
1. do a jndi lookup to get the name of context factory of the destination (queue/topic) from which we obtain the connection and the session
2. do a jndi lookup to get the actual destination of the queue
So assume we have myQueueFactory and myQueue as the 2 aliases bound to jndi which I use in the sender and the receiver.
Now my question is, why do we need to provide the context factory alias, why cannot we use something like a common queue factory alias with which we manage all the queues. Why is this alias name for the factory essential at all, is it not enough if we do all our manipulations using a commonly provided context factory alias and our application specific destination (queue/topic) alias?
I have one more question, can someone point out to where I can find the JMS server implementation. I am interested in knowing the way the JMS server manages the sender sending messages, how it manages delegating these messages to the receivers and how it keeps adding new instances of the receivers to itself. I wanted to know the model used to achieve this, threads or some kind of polling mechanism or soemthing like that? If someone knows this can they let me in on this?
Thanks in advance,
Ananth
 
There is no "i" in denial. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic