wood burning stoves 2.0*
The moose likes BEA/Weblogic and the fly likes Local Interfaces problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Local Interfaces problem" Watch "Local Interfaces problem" New topic

Local Interfaces problem

Suprakash Das

Joined: Nov 26, 2000
Posts: 18
I have been trying to find out what exception is thrown when an EJB which supports only local interfaces is invoked by a non-local client.
In WebLogic 6.1, I deployed my EJB in a particular application - myapp and tried to access the EJB from a jsp running in DefaultWebApp. Both are running on the same server...myserver.
The lookup succeeds, but when I try to cast the object to the local interface it throws a ClassCastException. The same cast written in a local client succeeds.
Can someone explain this? Also what is the required behaviour of the container when a local EJB is accessed by a remote client?
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1845
Good question. Gotto check up the EJB 2.0 specification for this. Will try and do that when free.
subject: Local Interfaces problem
Similar Threads
Clustering question
Local Interfaces in EJB
Which interface is used Remote or Local?
Exception due to Package
Considering Injection i EJB 3.0