• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat working with Weblogic??  RSS feed

 
Alan Williamson
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having problems getting Tomcat (JSP, Servlets) to retrieve EJBs from Weblogic 6.1 on WinNT. My simple stand alone Java program is able to get EJBs from Weblogic. However, this is not working on Tomcat servlet. Any ideas??
This is the code that I am using:
Properties temp1 = new Properties();
temp1.put (Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
temp1.put(Context.PROVIDER_URL, "t3://localhost:7001");
temp1.put(Context.SECURITY_PRINCIPAL, "system");
temp1.put(Context.SECURITY_CREDENTIALS, "password");
Context ctx = new InitialContext(temp1);

Thanks, Alan
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!