jQuery in Action, 3rd edition
The moose likes EJB and other Java EE Technologies and the fly likes TOMCAT + WEBLOGIC   HOW - TO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "TOMCAT + WEBLOGIC   HOW - TO" Watch "TOMCAT + WEBLOGIC   HOW - TO" New topic


Sanjay Deshpande
Ranch Hand

Joined: May 22, 2001
Posts: 111
I have all my jsp and java beans in tomcat.
I have my ejb in weblogic .
I wanna access ejb in jsp thru java beans .
How to do that???
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

First, your clients need to be able to resolve the location of the EJBs. I believe the default port for WebLogic is 1070, though the WebLogic config file overrides this. So the base URL would be something like "T3://weblogichost:1070".
My memory's a little rusty on further details, but between the WLS online docs and the samples that came with it, you should be able to figure it out. You will have to make sure that the WLC context classes are in the Tomcat CLASSPATH.
In EJB1.1 the "proper" way to find an ejb is via jndiContext "java:comp/env/ejb/ejbjndiname", rather than "T3:", but I don't know if WLS 5.1 supported that context or not.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link: http://aspose.com/file-tools
It's not a secret anymore!