Hi Aaron,
I don't have access to the source of the iNet driver (I'm not working for
this company, only evaluating their JDBC driver for using it in the jBoss
J2EE environment), but there are some info about the way to use the driver
and especially the XADataSource implementation here :
http://www.inetsoftware.de/English/Produkte/OPTA/xa/Default.htm
The entire documentation for this driver is here :
http://www.inetsoftware.de/English/Produkte/OPTA/documentation.htm
>From what I understood (and my own tests, using reflection to see what
classes implement the XADataSource interface ;o), the
com.inet.tds.XDataSource class is the right one (but I could be wrong, of
course).
I guess that the properties they are talking about to setup in the J2EE
Container (from Sun) must be specified somewhere (jboss.jcml ? if yes, how
is it related to the URL, JDBCUser and Password attributes ?) : it specifies
the hostname and database to connect to, the class name to use, and the
login/password couple (see first URL above).
If I'm correct, an instance of the object implementing the XADataSource
interface must be allocated, and some properties are to be set on this
instance (for the host and database, login and password) to allow it to work
properly : but how ? I don't see any well-defined and not driver-specific
way of doing this... But I'm not an expert on that ;o)
Pascal Davoust.
-----Original Message-----
From: Aaron Mulder [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 01, 2000 4:02 PM
To: jBoss
Subject: Re: [jBoss-User] jBoss Final 2.0 & XA-enabled JDBC driver
There is some kind of error when we try to configure the driver.
We typically call things like setURL (via reflection), but unfortunately
the XADataSource spec does not define how you should identify the database
that you want to use, so every vendor can do it differently. Can you post
the methods of com.inet.tds.XDataSource (are you sure it shouldn't be
XADataSource?), and specifically note how you're supposed to tell it which
DB to use?
Thanks,
Aaron
On Mon, 27 Nov 2000, Pascal Davoust wrote:
> Hi all (third time today ;o),
>
> I tried to setup my iNet JDBC driver for distributed transaction support
> (the driver allows that) by specifying the following config :
>
> <MLET CODE="org.jboss.jdbc.XADataSourceLoader"
> ARCHIVE="jboss.jar,Opta2000.jar" CODEBASE="../lib/ext/">
> <ARG TYPE="java.lang.String" VALUE="SqlSvrConnectionPool">
> <ARG TYPE="java.lang.String" VALUE="com.inet.tds.XDataSource">
> </MLET>
>
> but I end up with the following message :
>
> [SqlSvrConnectionPool] Initializing
> [SqlSvrConnectionPool] Initialized
> [Default] javax.management.RuntimeMBeanException: RuntimeException thrown
in
> the MBean's setter
> [Default] at
>
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:141
> 7)
> [Default] at
>
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
> 1)
> [Default] at
>
org.jboss.configuration.ConfigurationService.load(ConfigurationService.java:
> 139)
> [Default] at java.lang.reflect.Method.invoke(Native Method)
> [Default] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [Default] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [Default] at org.jboss.Main.<init>(Main.java:143)
> [Default] at org.jboss.Main$1.run(Main.java:87)
> [Default] at java.security.AccessController.doPrivileged(Native
> Method)
> [Default] at org.jboss.Main.main(Main.java:83)
> [Default] javax.management.RuntimeMBeanException: RuntimeException thrown
in
> the MBean's setter
> [Default] at
>
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:141
> 7)
> [Default] at
>
com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
> 1)
> [Default] at
>
org.jboss.configuration.ConfigurationService.load(ConfigurationService.java:
> 139)
> [Default] at java.lang.reflect.Method.invoke(Native Method)
> [Default] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [Default] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [Default] at org.jboss.Main.<init>(Main.java:143)
> [Default] at org.jboss.Main$1.run(Main.java:87)
> [Default] at java.security.AccessController.doPrivileged(Native
> Method)
> [Default] at org.jboss.Main.main(Main.java:83)
> [Default] jBoss 2.0 FINAL Started
>
> I'm out of idea here...
> Setting the parameter back to "org.jboss.minerva.xa.XADataSourceImpl"
makes
> the message disappear...
> Any idea on what's going wrong here ?
>
> Thanks,
>
> Pascal Davoust.
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]