File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and Other Java EE Technologies and the fly likes Tomcat working with Weblogic?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and Other Java EE Technologies
Reply Bookmark "Tomcat working with Weblogic??" Watch "Tomcat working with Weblogic??" New topic
Author

Tomcat working with Weblogic??

Alan Williamson
Greenhorn

Joined: Nov 01, 2001
Posts: 14
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
 
 
subject: Tomcat working with Weblogic??
 
Threads others viewed
Cannot Access EJB on Weblogic ???
Weblogic 8.1
Stack Over flow error when Instantiating
accesing ejb deployed in weblogic from tomcat
Tomcat JNDI Help Needed
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture