Wrox Home  
Search P2P Archive for: Go

  Return to Index  

enterprise_java_beans thread: Type 4 connectiopn


Message #1 by "waseem altaf" <waseemaltaf@h...> on Wed, 11 Jul 2001 12:23:43 +0500
Hi,
 Just add this to ur config file if u want to make
thro Connection pool n datasource 

<JDBCConnectionPool CapacityIncrement="2"
        DriverName="oracle.jdbc.driver.OracleDriver" 
        InitialCapacity="4"
        LoginDelaySeconds="1" 
        MaxCapacity="50" 
        Name="ImodePool"
        Properties="user=SCOTT;password=tiger"
        RefreshMinutes="10" 
        ShrinkPeriodMinutes="15"
        ShrinkingEnabled="true" 
        Targets="myserver"
        TestConnectionsOnRelease="false"
        TestConnectionsOnReserve="false"
TestTableName="dual" 
        URL="jdbc:oracle:thin:@127.0.0.1:1521:temp"
    />

 <JDBCDataSource JNDIName="TempDatasource"
Name="TempDatasource"
        PoolName="TempPool" Targets="myserver"/>


Here temp is ur SID or database on oracle.

In java file  add this

ctx = new InitialContext();
                javax.sql.DataSource ds 
(javax.sql.DataSource) ctx.lookup ("TempDatasource");
                conn = ds.getConnection();

this will return u connection.

Hope this helps

Regards
-Sugandha

--- waseem altaf <waseemaltaf@h...> wrote:
> Hi all
> how i make a type 4 connection with oracle in
> weblogic 6
> any person have any idea how it is possible.
>                                 thanks


  Return to Index