View Review Details


Book:   JBoss: A Developer's Notebook
Subject:   Good Book
Date:   2005-08-23 17:38:23
From:   Satish Talim
Rating:  StarStarStarStarStar

This is definitely a 'Must Have Book'. However, no mention has been made of the file standardjaws.xml in Chapter 4 - Connecting to a Real Database. Don't we need to change the datasource type mapping to mySQL from Hypersonic?
Full Threads Oldest First
  • Sam Griffith photo Good Book,  August 23 2005
    Submitted by Anonymous Reader   [Respond | View]

    In Chapter 4 the section entitled "Creating a datasource" covers this exactly. It also covers in the "What about..." section directly after that, how to make the MySQL DS the default DS.

    Glad you liked the book.

    Sam Griffith
    • Sam Griffith photo Good Book,  August 23 2005
      Submitted by Anonymous Reader   [Respond | View]

      I also forgot to answer one of you specific questions regarding the type mapping. The type mapping is done in the mysql-ds.xml file that you put into the deploy directory. We didn't highlight the tag in this file that sets the data-source mapping, but if you look you see it gets set in this xml file.

      Thanks,

      Sam
      • Good Book,  September 01 2005
        Submitted by Anonymous Reader   [Respond | View]

        standardjaws.xml isn't used for CMP2. You might possibly want to set the defaults in standardjbosscmp-jdbc.xml, but as we recommend throughout it the book it is better not to change the server-wide defaults. We recommend setting the CMP configuration on each application, exactly as we showed in the book.