Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use an entity bean from my j2ee project (ECLIPSE + JBOSS + MYSQL)

lucio bosque
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
I am a newbay to J2EE , and I found this forum very helpful.
I have en eclipse Helios , Jboss application server and MYSQL DB ,
under my Jboss I put the

and the mysql-connector-java-5.1.13-bin.jar under the lib directory :

In my EJB module I have my Book bean :

and a stateless bean

under the META-INF I have the persistence.xml

What I don't understand is .. how exactly should the EntityManager em;
knows to connect the book table .. where should it be define , or where should I configure the JNDI name ?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic