• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bitmechanic connection pool not working ?

 
Navin Pillu
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

I'm trying Bitmechanic connection pool. I downloaded the files & trying to run PoolTest.class using following command
----------------
java -classpath ../classes;c:/jdeveloper/lib/classes12.jar; PoolTest oracle.jdbc.driver.OracleDriver oracle:jdbc
:thin:@myHost:1521 ra92 abc abc 1 10000 1000
-------

but it is throwing following exception

--------------------------------

java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:532)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at com.bitmechanic.sql.ConnectionPool.createDriverConnection(ConnectionP
ool.java:391)
at com.bitmechanic.sql.ConnectionPool.getConnection(ConnectionPool.java:
330)
at com.bitmechanic.sql.ConnectionPoolManager.connect(ConnectionPoolManag
er.java:346)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at PoolTest.execute(PoolTest.java:55)
at PoolTest.main(PoolTest.java:29)

--------------------------------

Can anybody tell me what's wrong with this

Thanks in Advance
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Navin Pillu:

oracle:jdbc:thin:@myHost:1521 ra92




I am not sure about error but could you tell us what is your connection string to connect,If one mentioned above is your connection string then change it to jdbc racle:thin:@myHost:1521 ra92

Shailesh
[ June 27, 2005: Message edited by: Shailesh Chandra ]
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Navin,
According to the error message you are getting and the command you are using, I believe your command is incorrect. From your command, it appears you are on a Windows platform. In that case, I suggest trying the following command:

Good Luck,
Avi.
[ June 27, 2005: Message edited by: Avi Abrami ]
 
Navin Pillu
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Shailesh and Avi

Error was in the parameter jdbc racle:thin...... is correct. Instead of checking this i was searching in the classes

Thanks again
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic