去掉weblogic.properties的#号,你也可以改改自己需要的参数
# You can use this connection pool with any of the EJBean examples.
  # Uncomment to use:
  weblogic.jdbc.connectionPool.demoPool=         url=jdbc:cloudscape:demo,         driver=COM.cloudscape.core.JDBCDriver,         initialCapacity=1,         maxCapacity=2,         capacityIncrement=1,         props=user=none;password=none;server=none

解决方案 »

  1.   

    咦怎么乱了,copy时乱了,你自己去看看weblogic.properties文件吧
      

  2.   

    (不乱版)
    # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
    # WEBLOGIC JDBC CONNECTION POOL MANAGEMENT
    # ------------------------------------------------
    # CLUSTER USERS: Note that ALL JDBC connection pools should be set up
    # in the *per-cluster* properties file ONLY.
    #
    # For creating JDBC connection pools. This example shows a connection
    # pool called "oraclePool" that allows 3 T3Users "guest," "joe," and "jill"
    # to use 4 JDBC connections (with a potential for up to 10 connections,
    # incremented by two at a time, with a delay of 1 second between each
    # attempt to connect to the database), to an Oracle database server called
    # "DEMO." If more than 4 connections are opened, after 15 minutes, unused
    # connections are dropped from the pool until only 4 connections remain open.
    # Every 10 minutes, any unused connections in the pool are tested and 
    # refreshed if they are not viable.
    #
    weblogic.jdbc.connectionPool.oraclePool=       url=jdbc:oracle:thin:@localhost:orcl,       driver=oracle.jdbc.driver.OracleDriver,       loginDelaySecs=1,       initialCapacity=4,       maxCapacity=10,       capacityIncrement=2,       allowShrinking=true,       shrinkPeriodMins=15,       refreshMinutes=10,       testTable=dual,       props=user=USER;password=PASS;server=orclweblogic.jdbc.TXDataSource.demoDataSource=oraclePool
      

  3.   

    还要指定weblogic.jdbc.TXDataSource.demoDataSource=oraclePool
    通过JNDI取得connection
      

  4.   

    weblogic6.0好象没有weblogic.properties这个问题哦,以前的weblogic5.1是有的