This content has been marked as final.
Show 1 reply
-
1. Re: putting jdbc driver in an ear file
crowse Aug 4, 2004 7:00 AM (in response to joeee)hi
Yeou ear file has som jars and wars in it.
In the war, you cna put the driver in WEB-INF/lib
in ejb-jars you can make a lib directory
Do this from ant like this, you mak need to make a lib directory in the driver distribution so that the files land up in the lib subdirectory of the jar.
setup lines in .ant.properties to point to your current driver
e.g.mysql.root=/usr/local/share/mysql1.2.3.4
then in your ejb-jar and war tasks ....
<fileset dir="${project.target.dir}/WEB-INF"> <include name="lib/*ejb.jar"/> </fileset> <fileset dir="${mysql.root}/" > <include name="lib/*.jar"/> </fileset> <fileset dir="${mssql.root}/" > <include name="lib/*.jar"/> </fileset>