You need to look at the J-Connector manual published by MySQL. The steps are
painstakingly listed in there.
On Wed, Apr 6, 2011 at 1:40 PM, <forums_at_java.net> wrote:
> 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
>
>
>
--
Arthur Y.