Are you sure about the port number, anyway?
<attribute name="URL">jdbc:db2://servername:8080/demomall</attribute>
Usually embedded Tomcat listens for HTTP connections on this port.
 
Second, the package name should be started with uppercase letters:
 
import COM.ibm.db2.*; //maybe this is your problem
 
-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Krishna Prasad
Gesendet: Dienstag, 18. September 2001 08:56
An: [EMAIL PROTECTED]
Betreff: [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