This content has been marked as final.
Show 2 replies
-
1. Re: possible to include jdbc driver in ear?
genman Aug 6, 2004 3:13 AM (in response to joeee)
If you can get a xxxx-ds.xml to deploy from within the .ear, like a .sar which can include a class path, you can probably load your driver okay.<jar jarfile="${ear.dir}/${project.name}.sar"> <manifest> <attribute name="Class-Path" value="lib/dbdriver.jar"/> </manifest> <metainf dir="build" includes="jboss-service.xml"/> </jar>
-
2. Re: possible to include jdbc driver in ear?
joeee Aug 6, 2004 2:35 PM (in response to joeee)Thank you for your comment - I actually ended up doing something similar to what you have here, but rather than include a classpath attribute in the manifest, I put the driver jar in the root of the sar itself.
This indeed works so it seems that I do not have to explicitly set a classpath to point to the driver jar, just having it in the root of the sar is enough.
In ANTspeak:<target name="project-ds.sar"> <jar jarfile="${build.dir}/${proj.name}-ds.sar"> <metainf dir="${etc.dir}" includes="jboss-service.xml"/> <fileset dir="${lib.dir}/jdbc-drivers" includes="mysql*.jar"/> </jar> </target>