1 Reply Latest reply on Feb 25, 2005 1:20 PM by Adrian Brock

    How do I connect a already existing MySQL database to JBoss?

    John Kanu Newbie

      I 've already created a database schema in MySQL and want a client application to write in the existing database. Unfortunately it always tries to create a new database and therefore I get following error message:

      java.sql.SQLException: Duplicate key or integrity constraint violation message from server: "Cannot add or update a child row: a foreign key constraint fails"

      My question now is how and where (ejb-jar.xml-file; JBoss Eclipse IDE etc.) can I specify that the existing database is used.
      (<create table> tag is already set as "false" in standardjbosscmp-jdbc.xml)

      Thanks for helping!