Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TOMCAT + WEBLOGIC HOW - TO

 
Sanjay Deshpande
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic