Sun One Application Server 7

Could anybody help me to know what namming service is installed by default with IAS 7.
If I try to connect from a client that runs in a diferent machine that IAS 7 runs, I don't know what properties I have to set to init the InitialContext class.
I haven´t this problem when the client is a servlet that runs into the IAS 7, because you can init the InitialContext class without any parameters.

Thanks in advance.
jdiazAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vzilkaCommented:
Use these lines to connect to the S1AS:

Properties env = new Properties();

env.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");

env.put("java.naming.provider.url", url);

initial = new InitialContext(env);
0
jdiazAuthor Commented:
As you told me, I used those lines to connect. I put as URL the following "iiop://10.111.96.174", that is the machine where IAS7 is installed, but the following exception has been thrown:
javax.naming.ComunicationException:Cannot connect to ORB (Root Exception is org.omg.CORBA.COMM_FAILURE: vmcid: Sun minor code:201 completed: No).

I don´t know if I have to do something to get up the Cosnaming service and I don´t also know in which port is this service listening.


0
vzilkaCommented:
Try this link at SUN's site : http://docs.sun.com/source/817-0462-10/dcacc.html#997658

This tells you how to build an application client, using the sun-application-client.xml files.

Another option is to configure your server for IIOP. You can see how this is done here:
http://docs.sun.com/source/816-7156-10/agj2eres.html#51383
0
Firewall Management 201 with Professor Wool

In this whiteboard video, Professor Wool highlights the challenges, benefits and trade-offs of utilizing zero-touch automation for security policy change management. Watch and Learn!

jdiazAuthor Commented:
I have learned that if you want to connect from a client running in a different machine, you must use a Cosnaming Service (or others JNDI providers) in order to download the ejb home class.
But if you only want to connect to an EJB running in the same server that servlet runs, then, the J2EE server provides you of an implementation of JNDI API, that let you to get the ejb home class.

Please, could you confirm that I have properly understood this subject?
0
vzilkaCommented:
yes
0
vzilkaCommented:
Yes, this is how it works...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jdiazAuthor Commented:
Thanks for your help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Application Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.