File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes How to Configuring mysql db with JPA aplication? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "How to Configuring mysql db with JPA aplication?" Watch "How to Configuring mysql db with JPA aplication?" New topic
Author

How to Configuring mysql db with JPA aplication?

Anand Bhatt
Ranch Hand

Joined: May 30, 2007
Posts: 189
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

Joined: Dec 11, 2006
Posts: 364
Both the MySQL and
JBoss documentation cover these questions.
[ October 27, 2008: Message edited by: Edvins Reisons ]
 
 
subject: How to Configuring mysql db with JPA aplication?
 
Similar Threads
Java Persistence API: Multiple Persistence Units problem
EJB 3.0 entity bean with mysql
EJB in action - Chapter 2 EAR file error
EJB3 in action - Chapter 2 EAR file error
Getting dialect error while deploying EJB