Title: FW: [JBoss-dev] XADataSource wrapper for JBoss 4
Thanks Igor.
 
Ive made the change you suggested. The transformed xml looks more familiar.
 
When mssql-xa-ds.xml was deployed, l got the following error in the log
 
java.lang.IllegalArgumentException: The class 'class org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory' has no setter for config property 'XADataSourceClass'
 at org.jboss.resource.connectionmanager.RARDeployment.setManagedConnectionFactoryAttribute(RARDeployment.java:567)
 at org.jboss.resource.connectionmanager.RARDeployment.setMcfProperties(RARDeployment.java:670)
 at org.jboss.resource.connectionmanager.RARDeployment.startService(RARDeployment.java:525)
 at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
 
I had a look at XAManagedConnectionFactory and DataSourceTemplate.xml. The problem just appears to be a difference in case. XAManagedConnectionFactory has setXaDataSourceClass() and DataSourceTemplate creates a property XADataSourceClass. It looks like you are capitalising "XA". Should XAManagedConnectionFactory be changed to setXADataSourceClass() or should DataSourceTemplate create a property XaDataSourceClass?
 
I've copied jboss-all\build\output to working location on my disk. I can only find DataSourceTemplate.xsl in jboss-all\connector\output\resources\stylesheet. IF l wanted to change DataSourceTemplate to create a property XaDataSourceClass - quicker fix than rebuilding - where do l change this?
 
How does the change you suggested to mssql-xa-ds.xml get made in the CVS?
 
Thanks


In mssql-xa-ds.xml try to replace "xa-tx-datasource" with
"xa-datasource". Internally -ds.xml files are transformed into
-service.xml using xslt template defined in
connector/src/resource/stylesheets/DataSourceTemplate.xsl. You can look
into this file to see if it does what you need. Also check logs/console
output for exception messages.

Jamie Burns wrote:
> Thanks Igor.

> Since you have got further than me, can l compare your setup with
> mine?

> I am working in jboss-4.0.0alpha\server\default.

> I have the 3 MS SQL Server 2000 jars in ..\lib.

> Ive taken hsqldb-ds.xml out of .\deploy so that l have only one
> DataSource and so that l can use DefaultDS as the jndi name for my MSSQL
> DataSource.

> Ive copied mssql-xa-ds.xml from the examples folder and configured it
> for my site. I used to use mssql-xa-service.xml in JBoss 3.0. It had a
> lot more in it than mssql-xa-ds.xml. Do l still need to the stuff that
> was in mssql-xa-service.xml? I dont have mssql-xa-service.xml installed
> anywhere.

> Ive added a <application-policy name = "MSSQLDbRealm"> to
> .\conf\login-config.xml because l had that in the JBoss 3. But l dont
> think l ever used it in JBoss 3.

> Is there anything l need to do/undo re setting things up for the new
> XADataSource wrappers?

> Thanks again.


--
Igor Fedorenko
Think smart. Think automated. Think Dynamics. www.thinkdynamics.com



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
Jboss-development mailing list Jboss-development@lists=

Reply via email to