Google Answers Logo
View Question
 
Q: J2EE: JNDI Lookup on Remote Sun J2EE App Server ( No Answer,   0 Comments )
Question  
Subject: J2EE: JNDI Lookup on Remote Sun J2EE App Server
Category: Computers > Programming
Asked by: andiv-ga
List Price: $15.00
Posted: 03 Jul 2003 10:45 PDT
Expires: 02 Aug 2003 10:45 PDT
Question ID: 224785
I am new to J2EE so this may be a very simple question to answer.
Nevertheless, any help would be greatly appreciated!

I have installed the J2EE Application server 1.4 beta 2 on a Windows
2000 system. I would like to use it as a Java Message Queue provider.
I have JMS working and I am able to run simple applications on the
J2EE server to enqueue and dequeue messages from a queue that I have
set up.

I would like to have the client application, the message producing
app, to run on a remote machine, with nothing but jvm installed. My
problem is getting the client to connect with the JNDI namespace
provided by the J2EE app server. I have not found a way to do this.
Could anyone provide an example of the properties required to connect
to the JNDI context of a remote Sun J2EE application server? The code
should look something like...

static String INITIAL_CONTEXT_FACTORY =
"weblogic.jndi.WLInitialContextFactory";
static String CONNECTION_FACTORY = "QueueConnectionFactory";
String url = "http://www.someurl.com";
Hashtable env = new Hashtable();
env.put (Context.INITIAL_CONTEXT_FACTORY, INITIAL_CONTEXT_FACTORY);
env.put (Context.PROVIDER_URL, url);

However, I don't know how the Sun J2EE app server needs these
properties set up....does anybody know how to do this, or know of a
good reference for this?

Thanks, Andreas
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy