Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes EJB Lookup problem from same server instance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB Lookup problem from same server instance" Watch "EJB Lookup problem from same server instance" New topic
Author

EJB Lookup problem from same server instance

pramodh somashekara
Ranch Hand

Joined: Jan 30, 2006
Posts: 62
Hi, We have a problem in ejb lookup and we are using WebSphere 6.x.

Basically if the client program and ejb application are on different server instances, they are working fine.

But if I put both client program and ejb application in same server instance, I am not able to invoke ejb, getting ClassCastException.

Our ejb are implementing remote interface and we can not change ejb application.

Please let me know how to invoke ejb application from my client from the same WebSphere instance.

Pramodh
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EJB Lookup problem from same server instance
 
Similar Threads
Injection of EJB in POJO class not working..
NameNotFound
question about jndi and EJBLocalHome interface
Ejb call hang for around 2 minutes
VAJ4.0 EJB Test Client to verify a WAS4.0 EJB