My connection pool i.e
weblogic.jdbc.connectionPool.hazardouswaste=\
url=jdbc:oracle:thin:@p1900:1521:p1900,\
driver=oracle.jdbc.driver.OracleDriver,\
initialCapacity=1,\
maxCapacity=1,\
capacityIncrement=1,\
props=user=tact_dev;password=tact_dev,\
allow=guest
A previous post suggested a way to get a connection from this pool
from an external program was to use JNDI -
How exactly do I do this?
In my weblogic.properties I've added these lines (don't really
understand them but got from other postings!)
weblogic.jdbc.DataSource.weblogic.jdbc.connectionPool.hazardouswaste=hazardouswaste
weblogic.jdbc.TXDataSource.hazardouswaste=hazardouswaste
From my program I'm using -
Context ctx = getInitialContext(); // This works fine
javax.sql.DataSource home = (javax.sql.DataSource)
ctx.lookup("hazardouswaste");
but keep getting these errors -
java.lang.NoClassDefFoundError:
COM/rsa/jsafe/JSAFE_InvalidUseException
at
weblogic.security.WLMessageDigest.getInstance(WLMessageDigest.java:53)
at
weblogic.security.MD5RandomBitsSource.seed(MD5RandomBitsSource.java:56)
at weblogic.rjvm.LocalRJVM.<init>(LocalRJVM.java:108)
etc.......
What am I doing wrong?
Why is everything so difficult when Java's concerned?
harry