check yr jboss after it has startup...
it should tell you something abt whether the XADatasource is started or not..
or whether yr jdbc driver is loaded...
 
look for the following..
--------------------------------------
[JdbcProvider] Initializing
[JdbcProvider] Loaded JDBC-driver:com.sybase.jdbc2.jdbc.SybDriver
[JdbcProvider] Initialized
...
...
...
 
[JdbcProvider] Starting
[JdbcProvider] Started
[XADataSourceLoader] Starting
[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
[XADataSourceLoader] Started
 
 
...........
 
--------------------------------------
 
if you dont see the above lines..
you most likey get some error msg from jboss....
paste it here... for everyone to have a better idea...
 
John
 
 
----- Original Message -----
Sent: Tuesday, September 18, 2001 2:55 PM
Subject: [JBoss-user] DB2 Connecting problem remotely

Hi all,
 
        I'm trying to get connection DB2 7.1 which is in remote system.
        I copied db2java.zip lib/ext directory under JBoss directory.  
        I followed the document http://www.jboss.org/documentation/HTML/ch04s11.html 
        In jboss.jcml, added code is:
 
  <mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider">
     <attribute name="Drivers">COM.ibm.db2.jdbc.app.DB2Driver</attribute>
  </mbean>
  <mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=DB2DS">
     <attribute name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute>
     <attribute name="PoolName">DB2DS</attribute>
     <attribute name="URL">jdbc:db2://servername:8080/demomall</attribute>
     <attribute name="JDBCUser">user</attribute>
     <attribute name="Password">pwd</attribute>
  </mbean>
        After I started run_with_tomcat, i'm not able to find out whether the connection established or not.  I tried to run my client program, then i got errors like:
        package  import com.ibm.db2.* ;  does not exist
 
        So, can anyone help me out from this problem.
 
Thanx in advance,
Krishna
 

*********************************************************
Disclaimer

This message (including any attachments) contains
confidential information intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message and are hereby notified that
any disclosure, copying, or distribution of this
message, or the taking of any action based on it,
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com

Reply via email to