Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Configuring mysql db with JPA aplication?

 
Anand Bhatt
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I want to create a datasourse in JBoss named as "test1" ,adn than want to use this datasource in persistence.xml file:


<persistence>
<persistence-unit name="EntityBean">
<jta-data-source>java:/test1</jta-data-source>
<properties>
</properties>
</persistence-unit>
</persistence>
Now i want to configure my mysql db with this JPA application(entity).
How can I achieve this?

I want all my entity bean data to be stored in mysql db. And where to place mysql driver jar file?
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both the MySQL and
JBoss documentation cover these questions.
[ October 27, 2008: Message edited by: Edvins Reisons ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic