Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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
  • 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:
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  


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

Managing Security Policy in a Changing Environment

The enterprise network environment is evolving rapidly as companies extend their physical data centers to embrace cloud computing and software-defined networking. This new reality means that the challenge of managing the security policy is much more dynamic and complex.

Question has a verified solution.

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

Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack or Above. The following steps a…
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 …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month14 days, 5 hours left to enroll

580 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