J2ee Msaccess i've a big problem
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   alessio_buzzanca
Posted On:   Wednesday, October 17, 2001 02:17 PM

i've insert in default properties this line jdbc.drivers=sun.jdbc.odbc.jdbcOdbcDriver jdbc.datasources=jdbc/msaccess|jdbc:odbc:shopper where shopper is the link to my database after in my code i've add this line: InitialContext ic = new InitialContext(); DataSource ds = (DataSource) ic.lookup("java:comp/env/jdbc/shopper"); con = ds.getConnection(); but the lookup don't work... i've read that i must set a classpath for jdbc driver, it's true? how set it? Help me i've making a italian degree and i'm blocked thanks    More>>

i've insert in default properties this line




jdbc.drivers=sun.jdbc.odbc.jdbcOdbcDriver

jdbc.datasources=jdbc/msaccess|jdbc:odbc:shopper





where shopper is the link to my database


after in my code i've add this line:




InitialContext ic = new InitialContext();

DataSource ds = (DataSource) ic.lookup("java:comp/env/jdbc/shopper");

con = ds.getConnection();


but the lookup don't work... i've read that i must set a classpath for jdbc driver, it's true? how set it?


Help me i've making a italian degree and i'm blocked



thanks

   <<Less
About | Sitemap | Contact