• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Data Source problem

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using weblogic 5.1 Server. I have created one demoPool for orcle database. Using demoDataSource i can able to access the demoPool. But I want to get the connection object as
java.sql.Connection con= ds.getConnection(String userID, String passWord) instead of con=ds.getConnection. How i can do it.
If i use con= ds.getConnection("test","test123");
it throws java.sql.SQLException: getConnection(user,password) not implemented

Please help me to find out the solution.
Thanks & Regards,
M.S.Raman.
-----------------------------------------------------
My WebLogic Properties file:

weblogic.jdbc.connectionPool.demoPool=\
url=jdbc racle:thin:@172.24.3.92:1521:xxxx,\
driver=oracle.jdbc.driver.OracleDriver,\
initialCapacity=1,\
maxCapacity=2,\
capacityIncrement=1,\
props=user=test;password=test123
weblogic.jdbc.DataSource.demoDataSource=demoPool
 
Malli Raman
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Forgot to mention where ds= demoDataSource object.
Regards,
M.S.Raman

Originally posted by Malli Subramanian Raman:
Hi,
I am using weblogic 5.1 Server. I have created one demoPool for orcle database. Using demoDataSource i can able to access the demoPool. But I want to get the connection object as
java.sql.Connection con= ds.getConnection(String userID, String passWord) instead of con=ds.getConnection. How i can do it.
If i use con= ds.getConnection("test","test123");
it throws java.sql.SQLException: getConnection(user,password) not implemented

Please help me to find out the solution.
Thanks & Regards,
M.S.Raman.
-----------------------------------------------------
My WebLogic Properties file:

weblogic.jdbc.connectionPool.demoPool=\
url=jdbc racle:thin:@172.24.3.92:1521:xxxx,\
driver=oracle.jdbc.driver.OracleDriver,\
initialCapacity=1,\
maxCapacity=2,\
capacityIncrement=1,\
props=user=test;password=test123
weblogic.jdbc.DataSource.demoDataSource=demoPool

 
Your mother is a hamster and your father smells of tiny ads!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic