Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss:EJB is not creating table in MySQL DB

 
Gurubg Gb
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Folks,

I have a strange problem, I am not receiving any error when I deploy my EJB project to JBoss . I have a single entity bean defined and expecting it to be created in MySQL DB. But strangely I do not see any table created . Has anyone faced the same problem before ?


My Persistence.xml file is as follows ..


mysql-db.xml file is as below

I have placed the DB conenctor file mysql-connector-java-5.1.14-bin.jar in \server\default\lib folder ..

This is my code for Entity which I am trying to create


But I do not see any table named "lessonuser" created in the "lessonds" database.
Can someone point out if I am going wrong somewhere ?

Thanks in advance ..
Guru
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic