On 05/04/2011 03:43 PM, David M. Lloyd wrote:
On 05/04/2011 07:54 AM, Stefano Maestri wrote:
> The problem is the driver itself.
> Oracle 10.2 jdbc driver is type 3 driver and it can't be loaded by
> java.util.ServiceLoader using the META-INF/services directory in the jar.
> And it's the only way we are supporting jdbc as module or deployment.
> IOW we are just supporting type 4 driver.
>
> Use Oracle 11g driver, I've tested it and it's working.
Exactly right. We do need an easier way to support JDBC 3 drivers
though. Once
https://issues.jboss.org/browse/AS7-431 is merged we
should have more options though.
Yup, and it's good to discuss the design. When
we all agree I'll open an
issue and I'll take care of implement it (after 431 of course)
Or, we could introduce a new content type just for services:
<deployment name="my-driver.jar">
<fs-archive path="deployments/my-driver.jar"
relative-to="jboss.server.deploy.dir"/>
<service type="java.sql.Driver">
<class name="com.foo.blah.SomeDriver"/>
</service>
</deployment>
I like this one. Other opinions?
regards
S.