Re: Universal connection pooling Type Casting problem

2010-04-20 Thread Pid
On 20/04/2010 03:40, Auser99 wrote: > > Does anyone have a solution for this. Thanks. > > au Yes. They were provided in other answers, already. Check the archives. p > SivaKumarl wrote: >> >> Hi Friends, >> I am using universal connection pooling for connecting database >> , while c

Re: Universal connection pooling Type Casting problem

2010-04-19 Thread Auser99
Context envContext = > (Context)initContext.lookup("java:/comp/env"); > DataSource ds = > (DataSource)envContext.lookup("jdbc/oracleds"); > } catch (NamingException e) { > // TODO Auto-generate

Re: Universal connection pooling Type Casting problem

2010-04-19 Thread Pid
lang.ClassCastException: oracle.jdbc.pool.OracleDataSource >> cannot be cast to javax.naming.spi.ObjectFactory >>at >> >> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:98) >>... 20 more >> >> >> Java code

Re: Universal connection pooling Type Casting problem

2010-04-18 Thread Harry Metske
; >Context envContext = > (Context)initContext.lookup("java:/comp/env"); >DataSource ds = > (DataSource)envContext.lookup("jdbc/oracleds"); >} catch (NamingException e) { >// TODO Auto-ge

Universal connection pooling Type Casting problem

2010-04-18 Thread SivaKumarl
t;jdbc/oracleds"); } catch (NamingException e) { // TODO Auto-generated catch block e.printStackTrace(); } Thanks in Advance Siva kumar -- View this message in context: http://old.nabble.com/Universal-connection-