Results 1 to 2 of 2
  1. #1
    paty is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default connection pool for db2

    I have to do an application in java, I have to create a pool of connections for db2
    I read tutorials, examples but I don't understand
    if you can help me I will appreciate that

  2. #2
    Heather is offline Senior Member
    Join Date
    Jun 2007
    Posts
    164
    Rep Power
    8

    Default

    For example the following code conf/server.xml is for oracle connection
    to DB2 you have to modify the string url
    Java Code:
    <Context
    path="/mywebapp" 
    reloadable="true" 
    docBase="C:\home\akobashikawa\work\myeclipse\ssc\WebRoot" 
    workDir="C:\home\akobashikawa\work\myeclipse\ssc\work"> 
    <Logger className="org.apache.catalina.logger.SystemOutLogger" 
    verbosity="4" timestamp="true"/>
    <Resource 
    name="jdbc/oracleTest" 
    auth="Container" 
    type="javax.sql.DataSource"
    maxActive="20" 
    maxIdle="10" 
    maxWait="-1"
    username="usuario" 
    password="secreto" 
    driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:oracle:thin:@mydbserver.acme.com:1521:mydb"
    />
    </Context>
    good luck ;)

Similar Threads

  1. connection problem
    By subash in forum JDBC
    Replies: 5
    Last Post: 04-22-2008, 09:17 AM
  2. JSP - using connection cache
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-30-2008, 09:54 AM
  3. no connection
    By even in forum JDBC
    Replies: 15
    Last Post: 01-02-2008, 01:50 PM
  4. Database connection
    By oaklander in forum New To Java
    Replies: 2
    Last Post: 11-12-2007, 11:11 PM
  5. JDBC connection
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-10-2007, 07:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •