users@glassfish.java.net

MYSQL DataSource with Glassfish under Netbeans 6.9

From: <forums_at_java.net>
Date: Wed, 6 Apr 2011 15:40:02 -0500 (CDT)

Hi,

Please can anyone tell me how set up a mysql datasource  with Glassfish
under Netbeans 6.9. so that I can Use the following in code:

        *****
*1)EntityManagerFactory emf=    
Persistence.createEntityManagerFactory("ejbPU");
2)Authentification em = (Authentification) emf.createEntityManager();*

       *****

*I can get /"emf"/ successufully but failed to get "/em" /and getting the
error: cannot acquire datasource {MYSQL/datasource}*

many thanks in advance


--
[Message sent by forum member 'Miloud_j2ee']
View Post: http://forums.java.net/node/789362