This content has been marked as final.
Show 4 replies
-
1. Re: It works but I don't know why!
jaikiran Oct 16, 2006 11:45 AM (in response to c-e)When you use a *-ds.xml file, you are *defining a datasource* and NOT a driver. So the jndi name that you are specifying is for the datasource and not the driver. Naturally, when you lookup this jndi name, its going to return you a Datasource.
-
2. Re: It works but I don't know why!
c-e Oct 17, 2006 1:28 PM (in response to c-e)And what types should be specified within <driver-class>? I think, it can only be of class java.sql.Driver. Is that right?
Thank you
Christian -
3. Re: It works but I don't know why!
jaikiran Oct 18, 2006 1:51 AM (in response to c-e)Yes the driver class needs to implement the Driver interface. Also, the jar containing this driver class needs to be placed in the %JBOSS_HOME%/server/default/lib directory to be picked up by the server.
-
4. Re: It works but I don't know why!
c-e Oct 18, 2006 11:30 AM (in response to c-e)This makes the things a little more obvious. Thank you.