• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Local Session Bean Call Exception in App Server

 
Mark Cloutier
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try to lookup the stateless session bean in the BeanTester class instead of the remote session bean??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic