Update in Chapter 3 sfsbLifeCycleExample in JPA Pro2
posted 8 months ago
Hi, for everyone's information,
chapter 3's sfsbLifeCycelExample source code does not work on my side.
Here is what I did:
1. Suppose you have a MySQL database instead of derby.
Your className should be com.mysql.jdbc.jdbc2.optional.MysqlDataSource.
2. Suppose you have a database url in mySQL : localhost:3306/javageek with credentials :root/sesame.
3. Also download mysql-connector-java-5.1.39-bin.jar and put it in glassfish installation directory at :
C:\ your glassfish directory\glassfish-4.1.1-web\glassfish\domains\domain1\lib