users@glassfish.java.net

Re: DataSource vs. XADataSource problem

From: <glassfish_at_javadesktop.org>
Date: Fri, 07 Mar 2008 07:33:40 PST

> I need to configure "javax.sql.DataSource" as the resource type, because this is required by the the library.

Could you try setting the resource type as "javax.sql.XADataSource" for MySQLXADataSource ?
You need not cast the looked up datasource to XADataSource. Internally GlassFish does it and provides a wrapped DataSource. So, when your code / library does lookup, you can cast it to javax.sql.DataSource.
[Message sent by forum member 'jr158900' (jr158900)]

http://forums.java.net/jive/thread.jspa?messageID=262909