Hello, I'm trying to use database connection pool for HXTT Access V2.0 & received:javax.naming.NamingException: Cannot create resource instance.
Code Snippet:
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
DataSource ds3 = (DataSource)envContext.lookup("jdbc/wccAuthPool");
Connection conn3 = ds3.getConnection();
Server.xml:
factory
com.hxtt.sql.HxttObjectFactory
url
jdbc:access:///c:/data/wcc/auth/AuthWCC.mdb
username
password
host
port8029
web-inf/web.xml
DB Connection
jdbc/wccAuthPool
javax.sql.DataSource
Container
|
Can you tell us which server you are using?
|
You can see here:http://www.hxtt.com/support_view_issue.jsp?product=access&id=1146043820.
It should solve your problem.
|