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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "WebSphere 5" Watch "WebSphere 5" New topic

WebSphere 5

Shiraj RM

Joined: Mar 15, 2005
Posts: 4

Hashtable env = new Hashtable();
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);

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
It is sorta covered in the JavaRanch Style Guide.
subject: WebSphere 5
Similar Threads
InitialContext lookup
ClassCastException returned from PortableRemoteObject.narrow
Getting Class cast exception while Lookup EJB2.1 session bean using JNDI name in WAS6.1
Starting a client transaction
Advice Client problem