1 Reply Latest reply on Sep 22, 2011 4:02 PM by Mark Paluch

    deploy db-connector with ear?

    _mo_ Newbie



      is there a way to deploy the db-connector, that is to be used by hibernate (e.g. "mysql-connector-java-5.0.6-bin.jar"), within the project ear?

      Currently I am "manually" putting it into the "Server Library"-path ( $JBOSS_HOME/server/default/lib/ ), but I would prefer to deploy all dependencies of my project within the ear ... I am working with JBoss AS 6.




        • 1. Re: deploy db-connector with ear?
          Mark Paluch Master


          deploying managed DataSources and dependencies to DataSources within EAR files is Bad Karma. It's very likely that it won't work. Putting dependencies to managed resource providers to server lib is the most common and preferred way until.


          Best regards,