Posted By:
CHOLLET_LOL
Posted On:
Thursday, April 11, 2002 04:41 PM
Hi Someone, I'm unfortunately trying to run this EJB but I get exception concerning Oracle URL when I launch the create method from the EJB test client:java.sql.SQLException OracleDataSource.makeURL I've binded my EJB to a DataSource I've set the EJB's InitialContext when connecting to this DS to: env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory"); Context initial = new InitialContext(env); then the lookup on the DS: DataSource dataSource = (DataSource)initial.lookup("jdbc/SportDS"); Furthermore,I've configured the JDBC driver with this class: oracle.jdbc.pool.OracleConnectionPoolDataSource
More>>
Hi Someone, I'm unfortunately trying to run this EJB but I get exception concerning Oracle URL when I launch the create method from the EJB test client:java.sql.SQLException OracleDataSource.makeURL
I've binded my EJB to a DataSource
I've set the EJB's InitialContext when connecting to this DS to:
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
Context initial = new InitialContext(env);
then the lookup on the DS:
DataSource dataSource = (DataSource)initial.lookup("jdbc/SportDS");
Furthermore,I've configured the JDBC driver with this class:
oracle.jdbc.pool.OracleConnectionPoolDataSource
this URL:
jdbc:oracle
and of course the "eternal" classes12.zip (jdk 1.3)
But everything goes wrong.I don't mention the other classes I tested, the others URL,etc,...
If you're still reading this, you may feel interested by this problem and surely will help me,please...
The point is to use this f*** DataSource and not a laming Connection with its overlaming Class.forname (already working)
THANKS BY ADVANCE.
Laurent.
<<Less