This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 17273

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:
It's not a secret anymore!