Sun One Application Server 7

Posted on 2003-03-28
Medium Priority
Last Modified: 2010-03-17
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.
Question by:jdiaz
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3

Expert Comment

ID: 8233526
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);

Author Comment

ID: 8237159
As you told me, I used those lines to connect. I put as URL the following "iiop://", 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.


Expert Comment

ID: 8237355
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:
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.


Author Comment

ID: 8246090
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?

Expert Comment

ID: 8246176

Accepted Solution

vzilka earned 750 total points
ID: 8246184
Yes, this is how it works...

Author Comment

ID: 8246546
Thanks for your help.

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question