This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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: 9405
    
  20

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
 
Have you checked out Aspose?
 
subject: Local Session Bean Call Exception in App Server
 
It's not a secret anymore!