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 entity bean access from the outside of the container Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "entity bean access from the outside of the container" Watch "entity bean access from the outside of the container" New topic
Author

entity bean access from the outside of the container

Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

Hi,

I have an external client which lookups seesion bean via JNDI. I have the proxy and I am able to invoke methods on it.
The session bean creates a list of objects which are entity beans querried with the use of EntityManager. But I am not able to invoke the method:

List<Person> sessionBean.getPersons();

from the external client because client does not see the Person definition (which is Entity Bean). Do you have any ideas how can I make the definition visible for the external client? EntityBeans must reside in the container in order to create Database structure while deployment.


SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: entity bean access from the outside of the container