Hi Ranchers,
I am trying a simple example to Inject Datasource in the session bean using DI.
I am able to connect to the database and get the connection.
But when I execute the query, I get the following error.
java.sql.SQLException: Table not found in statement [select student_name from student_mark]
I am using
JBoss 4.2.2.GA and NetBeans6.1 RC2.
Code for DI in Session Bean is
My execute query is:
I am using global jndi and the code in the ds file in the deploy directory of JBoss server is:
Dont know whether the problem is with the database or in my code
Thanks,
Hashmukh