users@glassfish.java.net

Re: Not Connecting to Database

From: <glassfish_at_javadesktop.org>
Date: Thu, 23 Aug 2007 15:06:02 PDT

Okay.. I finally done it!

What I had to do was go back into the Application Server and rip out the Connection Pool and JDBC Resource. I created new ones.

My code looks like this:
[code]
@Stateless(mappedName="ejb/MyEntityManager")
@TransactionManagement(TransactionManagementType.CONTAINER)
public class MyEntityManagerRemote implements MyEntityManagerIFRemote {
        @PersistenceUnit(unitName="MyEJBPU")
        @PersistenceContext private EntityManager entityManager;

[/code]

Thanks for all your help.....and your patience! :-)

Russ
[Message sent by forum member 'russ_ray' (russ_ray)]

http://forums.java.net/jive/thread.jspa?messageID=232400