• Post Reply Bookmark Topic Watch Topic
  • New Topic

Update in Chapter 3 sfsbLifeCycleExample in JPA Pro2  RSS feed

Himai Minh
Ranch Hand
Posts: 1572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


I hope this will help.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!