wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes WebSphere 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "WebSphere 5" Watch "WebSphere 5" New topic
Author

WebSphere 5

Shiraj RM
Greenhorn

Joined: Mar 15, 2005
Posts: 4
hi,

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
env.put(Context.PROVIDER_URL, "java:<port>");
Context ctx = new InitialContext(env);
//look up jndi name
Object ref = ctx.lookup("Converter");
//look up jndi name and cast to Home interface
converterHome = (ConverterHome) PortableRemoteObject.narrow(ref, ConverterHome.class);
converterRemote=converterHome.create();


normally do you use the admin port 9090 or the sample application port 8090 ?
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081



Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WebSphere 5