wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Looking up EJBs on Sun Application Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Looking up EJBs on Sun Application Server" Watch "Looking up EJBs on Sun Application Server" New topic
Author

Looking up EJBs on Sun Application Server

Rik Sweeney
Ranch Hand

Joined: Sep 04, 2001
Posts: 36
Hi,

I've deployed my EJB to the Sun Application Server but I don't know what I need to provide as my Context.INITIAL_CONTEXT_FACTORY and my Context.PROVIDER_URL. I've had a hunt around Google but haven't had any luck.

Can anyone suggest what I need to use? Currently I'm using

properties.put(Context.PROVIDER_URL, "iiop://localhost:4848");

and

properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.enterprise.naming.SerialInitContextFactory");

Which times out with javax.naming.CommunicationException: Cannot connect to ORB

Thanks

Richard
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Looking up EJBs on Sun Application Server
 
Similar Threads
javax.naming.Reference cannot be cast to org.omg.CORBA.Object
What to use for INITIAL_CONTEXT_FACTORY for Sun AppServer Platform Ed 8x
Error in getting Initial context
Datasource Lookup from WSAD using POJO - CastException looking up DB2
jndi in j2se?