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.
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.