3 Replies Latest reply on Apr 6, 2012 4:06 PM by hellview

    JDBC as a deployment or as a module?

    hfluz

      I was pretty sure that the recommended way of adding a JDBC driver to JBoss AS 7 was as a module. I guess I read that some months ago in the JBoss AS 7 reference documentation and I got the following passage from the book JBoss AS 7 Configuration, Deployment and Administration:

       

      [page 54] "In the new modular server architecture, you have more than one option to install your JDBC driver. The first and recommended approach consists of installing the driver as a module."

       

      But I went back to the reference documentation:

       

      "The recommended way to install a JDBC driver into the application server is to simply deploy it as a regular JAR deployment.  The reason for this is that when you run your application server in domain mode, deployments are automatically propagated to all servers to which the deployment applies; thus distribution of the driver JAR is one less thing for administrators to worry about."

       

      Did I misunderstand something?

       

      Thanks in advance.

        • 1. Re: JDBC as a deployment or as a module?
          hellview

          Funny thing

          Probably because deployments are propagated between cluster nodes and modules no. right?

           

          at page 54:

          The first and recommened approach consists of installing the driver as a module

          In section named installing the driver as a deployment unit we will account for another approach which is usually a bit faster however it has a few limitations.

           

          Next the author say that you will have problems with jdbc 4 non compliant driver using jdbc deployments.

          It's better to deploy jdbc as module.

          • 2. Re: JDBC as a deployment or as a module?
            hfluz

            Davide, do you agree that the official documentation is not very clear about that?

            • 3. Re: JDBC as a deployment or as a module?
              hellview

              I think that the sentence:

               

              If your JDBC driver JAR is not JDBC 4-compliant, it can be made deployable in one of a few ways.

               

              It's little ambiguous because is in the "Installing a JDBC driver as a deployment" section.

              Anyway i preferer to install jdbc driver as module because i don't think to change often jdbc driver, i can take a couple of minutes to copy manually the directory without having problems about compliance or not compliance of jdbc driver.