NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

JMS Queue remote access

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
thmonkey



Joined: 15 Dec 2010
Posts: 1

PostPosted: Wed Dec 15, 2010 12:18 pm    Post subject: JMS Queue remote access Reply with quote

Greetings to all,

this is my first post here Smile

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo