Tried this -
String defaultPool = "LWInterrogatorPool";
try
{
Context ctx = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup(
defaultPool );
Connection conn = ds.getConnection();
return conn;
}
catch ( Exception e )
{
e.printStackTrace();
}
which works fine when using the thick driver but with the thin I get this -
java.sql.SQLException: Error accessing jdbc driver: driverURL =
jdbc:weblogic:pool:LWInterrogatorPool, props =
{connectionPoolID=LWInterrogatorPool, enableTwoPhaseCommit=false}.Nested
Exception: java.sql.SQLException: Pool connect failed:
weblogic.common.ConnectDeadException: failed to make new pool connection:
weblogic.common.Resource
Exception:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: invalid arguments in call
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:211)
at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:933)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:189)
at
oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:252)
.
.
These are my config.xml settings -
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
InitialCapacity="3" MaxCapacity="10" Name="LWInterrogatorPool"
Password="{3DES}ti/QgvdzWRQLyYELoxJiTQ=="
Properties="Name=abc" Targets="MyServer"
TestTableName="dual" URL="jdbc:oracle:thin:@p1900:1521:dev"/>
<JDBCTxDataSource JNDIName="LWInterrogatorPool"
Name="LWInterrogatorPool" PoolName="LWInterrogatorPool"
Targets="MyServer"/>
any ideas? - so fed up messing about with this about to give up!
thanks
harry
Harry wrote:
Remove the 'Name=abc' in the driver properties. The thin driver is complaining
about some property it doesn't know anything about.
Joe
>
>
> thanks
>
> harry
"Joseph Weinstein" <big...@bea.com> wrote in message news:3F6B1F35...@bea.com...
> Harry wrote:
[eaten]
> > These are my config.xml settings -
> >
> > <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
> > InitialCapacity="3" MaxCapacity="10" Name="LWInterrogatorPool"
> > Password="{3DES}ti/QgvdzWRQLyYELoxJiTQ=="
> > Properties="Name=abc" Targets="MyServer"
> > TestTableName="dual" URL="jdbc:oracle:thin:@p1900:1521:dev"/>
> >
> > <JDBCTxDataSource JNDIName="LWInterrogatorPool"
> > Name="LWInterrogatorPool" PoolName="LWInterrogatorPool"
> > Targets="MyServer"/>
> >
> > any ideas? - so fed up messing about with this about to give up!
>
> Remove the 'Name=abc' in the driver properties. The thin driver is complaining
> about some property it doesn't know anything about.
Also, I'd add a user to the properties:
Properties="user=<user-for-which-the-password-is-given>" Targets="MyServer"
Regards,
Slava Imeshev
"Slava Imeshev" <ime...@yahoo.com> wrote in message
news:3f6b...@newsgroups.bea.com...
Glad to help.
Regards,
Slava Imeshev