Hi, I'm just a newbie so please bear with me
I'm using WSAD 5.0 and DB2 v7.0 for a project. Here's the code I use to get a connection:
Context initialContext = new InitialContext();
dataSource = (DataSource) initialContext.lookup(dbname);
conn = dataSource.getConnection();
When I run the application and try to retrieve data from the database, this comes out:
Attempted to use a 4.0 DataSource from a version 2.3 (or higher) servlet. Invalid configuration. does this mean that I have to use a v5.0 DataSource? Or have I just forgotten to configure something in the current datasource I'm using?
If anyone could enlighten me, I'd greatly appreciate it..
regards,
Carlo Tan
[ October 12, 2003: Message edited by: Carlo Tan ]