Example source code using JSF2, EclipseLink, Glassfish 3, Helios, EJB3: http://svn2.xp-dev.com/svn/JSF-tuts/jsf-blank
Set a connection pool. One per database. Put the DB name after the URL (jdbc:mysql://:3306/dbNameHere)
set the JNDI resource to use this pool. Refer to it in the code.
The jta-data-source must be referred to here, else Glassfish will use its default server
0 comments:
Post a Comment