sorry to reply to you with a question but if you can take a look at my question and help me out i really appreciate it here we go:
i am trying to run the jdbc/oracle/simpleselect examples.
i folowed all the instruction from: setting the enviornment and build the examples and after i run it i get this error: even thought i have my path sets to in my startup scripts to:
set PATH=.\bin;.\bin\oci817_8;c:\oracle\ora81\bin;%PATH%
here is the error:
C:\bea\wlserver6.1\samples\examples\jdbc\oracle>java examples.jdbc.oracle.simple select
Starting Loading jDriver/Oracle .....
Exception in
thread "main" java.sql.SQLException: System.loadLibrary(weblogicoci37) threw java.lang.UnsatisfiedLinkError: no weblogicoci37 in java.library.path at weblogic.jdbc.oci.Driver.loadLibraryIfNeeded(Driver.java:226)
at weblogic.jdbc.oci.Driver.connect(Driver.java:76)
at examples.jdbc.oracle.simpleselect.main(simpleselect.java:113)
Originally posted by Kavita Ghia:
Hello friends,
I am writing a class which needs frequent connections to the database(oracle8i). i am currently using the bea weblogic server and its connection pool. right now i open separate connections for each instance i dont think thats the right way, so i tried opening a connection in a static initializer which will be there for all the instances, is there any other way by which i can have some common place for managing these connections so that all the instances use the same connection and minimize the time taken.
Thanks,
Kavita