[jboss-dev-forums] [JBoss AS7 Development] - Data Source Configuration in AS 7
Gerry Matte
do-not-reply at jboss.com
Thu Jul 7 12:18:54 EDT 2011
Gerry Matte [http://community.jboss.org/people/gerry.matte] commented on the document
"Data Source Configuration in AS 7"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-16657#comment-6977
--------------------------------------------------
Good suggestion to create an XA datsource using the web interface (admin console).
After I created an XA datasource using the admin cvonsole, the differences were obvious.
An XA datasource (using an XA driver such as used in this example) should probably use the xa-datasource tag rather than the datasource tag - see the second code line in "Defining the Datasource itself". That choice of tag seems to govern which admin console tab displays the completed datasource.
Configuring an XA datasource using the standard datasource tag seems to work ok - my test servlet was able to lookup the datasource, get a connection, and execute an sql statement with no exceptions thrown.
If you choose to use xa-datasource, the datasource properties are defined using the xa-datasource-property tag.
--------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110707/04168ea6/attachment.html
More information about the jboss-dev-forums
mailing list