title: Connection to DB2400 Database from Netbeans
body: <p>I want to create a Persistence Unit in Netbeans, but I can't connect the drivers with a DB2/400 Database. I don't now if something was wrong on AS400 (IBM I) or I'm doing something wrong. I was using 2 drivers to try to connect to the database, but no one works.</p>
  
  <p>These are the error messages:</p>
  
  <p><strong>Using the first driver (db2jcc.jar WITH db2jcc_license_cisuz.jar)</strong></p>
  
  <blockquote>
    <p>Cannot establish a connection to jdbc:db2://HOST:446/DATABASE using com.ibm.db2.jcc.DB2Driver ([jcc][t4][2057][11264][3.69.24] The application server rejected establishment of the connection.  An attempt was made to access a database, DATABASE, which was either not found or does not support transactions. ERRORCODE=-4499, SQLSTATE=08004)</p>
  </blockquote>
  
  <p><strong>Using the second Driver (db2jcc4.jar WITH db2jcc_license_cisuz.jar)</strong></p>
  
  <blockquote>
    <p>Cannot establish a connection to jdbc:db2://HOST:446/DATABASE using com.ibm.db2.jcc.DB2Driver ([jcc][t4][2057][11264][3.69.24] The application server rejected establishment of the connection.  An attempt was made to access a database, DATABASE, which was either not found or does not support transactions. ERRORCODE=-4499, SQLSTATE=08004)</p>
  </blockquote>