File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Head First Android this week in the Android 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: 9374
    
  19

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
 
Consider Paul's rocket mass heater.
 
subject: Local Session Bean Call Exception in App Server
 
It's not a secret anymore!