Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WebSphere 5

 
Shiraj RM
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic