aspose file tools
The moose likes Websphere and the fly likes Using JMS in websphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Using JMS in websphere" Watch "Using JMS in websphere" New topic

Using JMS in websphere

ananthakrishnan krishnan

Joined: Jun 10, 2002
Posts: 9
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,
I agree. Here's the link:
subject: Using JMS in websphere