2 Replies Latest reply on May 18, 2010 3:54 PM by Daniel Cullender

    accessing jpa using in session bean

    paresh bhavsar Newbie



      Please note that we are having all stateless session beans at present in our application. we are going to use JPA for db activity. we are planning to use @PersistentContent entitymanager. is it good idea to use it directly in session bean or i need to create dao layer again which will be having @PersistenceContext. As per my understanding @PersistenceContext can not be used in other than container managed, in that case i need to expose my dao layer as session bean ? Kindly provide me the solution. Thanks.