dcsimg
Running an EJB Entity (BMP) with WAS 4.0 and Oracle 8.1.7
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

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

Re: Running an EJB Entity (BMP) with WAS 4.0 and Oracle 8.1.7

Posted By:   shiva_A  
Posted On:   Saturday, May 25, 2002 08:00 AM

hi laurent,

have u get rid of the datasoruce problem.

i am also facing a prolbem similar to u. i created a new
jdbc driver(using oracle thin driver classes12.zip)

for oracle using the admin console of websphere 4.0 .

I left the default jdbc driver Implementation Classname as
"oracle.jdbc.pool.OracleConnectionPoolDataSource" .
When i run my application to get the DataSource i am

getting Class Not Found Exception.


i searched for the
"oracle.jdbc.pool.OracleConnectionPoolDataSource"
inside Classes12.zip, but i was not able to find it.





can anyone help me to solve this probs



thanks in advance

shiva
About | Sitemap | Contact