NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
thmonkey
Joined: 15 Dec 2010 Posts: 1
|
Posted: Wed Dec 15, 2010 12:18 pm Post subject: JMS Queue remote access |
|
|
Greetings to all,
this is my first post here
I have some trouble accessing JMS resources remotely. I have a webpage (jsp), i am using servlets and some ejbs. I want to do the following:
Having 2 different servers, one of the two owns a JMS Queue resource. I want to be able to send messages to it from the other server, but the way I am looking up the resource in the context is not working.
My queue is generated by Netbeans (6.9.1) and my code to lookup the resource is the following:
| Code: |
props.put(Context.PROVIDER_URL, "iiop://localhost:2037");Context context = new InitialContext(props);
QueueConnectionFactory tfactory = (QueueConnectionFactory)
context.lookup("jms/RemoteCF");
|
I have started another domain of glassfish with portbase 2000 (hence the 2037 port for iiop). I have also tried providing an INITIAL_CONTEXT_FACTORY in the props but it is not clear to me why and which one i should use..
Is this the way to do things?Am I missing something in my way of thinking?
Thank you for your help!
Ilias |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|