1 Reply Latest reply on May 29, 2005 3:29 PM by Darran Lofthouse

    Config JBoss 4.0.2 for MySql 4.1.11

    bizzru bizzru Newbie

      Hi, please help to config JBoss 4.0.2 for MySql 4.1.11.

        • 1. Re: Config JBoss 4.0.2 for MySql 4.1.11
          Darran Lofthouse Master

          Can you provide I little more information, at the moment your question is way too vague.

          Do you want all JBoss services that use a database to use MySQL. For going into production it is recomended that you do move from Hypersonic but I don't think you should move until you understand JBoss more.

          What mechanism are you using for persistence? Direct JDBC Access, CMP beans, BMP beans or Hibernate (Or anything else not mentioned)?

          The first step for all of the above approaches is to deploy your datasource. Assuming you are using the default configuration place the driver into the folder {jboss.home}/server/default/lib

          Next you should find a file called 'mysql-ds.xml' in the folder '{jboss.home}/docs/examples/jca' copy this to the deploy folder of the default configuration and edit the values contained for the database you have set up.

          Now you can start JBoss and you should see the datasource bound to JNDI. If you can let us know what your peristence mechanism is someone should be able to tell you the next steps.