on 08-15-2006 9:42 AM
Hallo,
my webservice runs in a sql-exception
--> java.sql.SQLException: Getrennte Verbindung
(lost connection). This is probably during handling the response (conerting oracle types in java types). How i can avoid that the connection will be lost?
Thanks in advance,
Frank
Hi,
do you use the connection pool of the j2ee container (obtaining the connection via jndi)??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> InitialContext ctx = new InitialContext();
> DataSource ds = (DataSource)
> ctx.lookup("jdbc/DataSource_Awel");
> ConnectionHandle handle = (ConnectionHandle)
> ds.getConnection();
> conn = handle.getPhysicalConnection();
Why are you using directly physical connection to DB ? Use connection object that you get while invoking:
ds.getConnection();
Regards,
Marcin Zduniak
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.