Two Laptop Bag*
The moose likes EJB and other Java EE Technologies and the fly likes Local Session Bean Call Exception in App Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Local Session Bean Call Exception in App Server" Watch "Local Session Bean Call Exception in App Server" New topic
Author

Local Session Bean Call Exception in App Server

Mark Cloutier
Greenhorn

Joined: Jul 24, 2008
Posts: 3
I have been having trouble calling a Local Session bean in Glassfish.

I set up an example to show the exception I am having:


----------

MainBeanLocal



----------

MainBean:



----------

RemoteBeanRemote:



----------

RemoteBean:



----------


Test Code:


Output Trace:


What am I doing wrong when calling **MainBeanLocal**? I would like to avoid dependency injection, as if the MainBeanLocal was being called from a POJO.


Note: I have no trouble calling the RemoteBean.. I want to be able to call the local bean from the remote bean.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

Did you try to lookup the stateless session bean in the BeanTester class instead of the remote session bean??


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Local Session Bean Call Exception in App Server