G
gilgantic
I am trying to run JUnit test case in my WebSphere Studio, but it fails
during a context.lookup in my DAO class. The DataSource is defined on
the server, so I start the Development Test Server. Here is a snippet
of the the code in my DAO class.
Context context = new InitialContext();
DataSource dataSource = (DataSource) context.lookup("jdbc/sample");
Is it because my Dev Test Server and JUnit are using two different
JVMs? How do I solve this problem?
during a context.lookup in my DAO class. The DataSource is defined on
the server, so I start the Development Test Server. Here is a snippet
of the the code in my DAO class.
Context context = new InitialContext();
DataSource dataSource = (DataSource) context.lookup("jdbc/sample");
Is it because my Dev Test Server and JUnit are using two different
JVMs? How do I solve this problem?