Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat working with Weblogic??

Alan Williamson
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic