Okas, I think I need to clarify my issue.
The first thing I made was.
1.- In Window XP, I clicked in "Control Panel"
2.- Then I clicked on "Admin Tools"
3.- then I clicked on ODBC DataSource Administrator, in that dialog, I chose "System DSN" to add a new "Data Source", when I select the Access database that is in other machine.
however, the name I gave to the DSN is "Salvamentos_Access".
4. With the step above I can connect my
Java program using Tomcat, Glassfish but NOT in WAS. (obviously I programmed several lines using "sun.jdbc.odbc.JdbcOdbcDriver" which is supposed to be in the java Core).
--------------------------------------------
Searching on the Internet I found that I have to configure WAS 6.1 in the administrative console, and I did.
1.- On the "Resources Section" I created a new JDBCprovider called "ODBC_Provider", the classpath is "C:\IBM\WAS\java\jre\lib\core.jar", the implementation class name "sun.jdbc.odbc.JdbcOdbcDriver".
2.- I also created a new DataSource called "MY_ODBC_DataSource", JNDI name = "JNDI-Access" and the custom properties are.
a.
url = jdbc:odbc:Salvamentos_Access
b.
driver = sun.jdbc.odbc.JdbcOdbcDriver
Thank all, when I push the "Test Connection" it give me the following error.
The
test connection operation failed for data source MY_ODBC_DataSource on server server1 at node M0072017Node01 with the following exception: com.ibm.ws.rsadapter.exceptions.DataStoreAdapterException: DSRA8101E: DataSource class cannot be used as one-phase: ClassCastException: sun.jdbc.odbc.JdbcOdbcDriver incompatible with javax.sql.ConnectionPoolDataSource. View JVM logs for further details.
I don't understand, do you know any other way to connect from WAS to Access???