Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic loading of java class

Status
Not open for further replies.

pramodh

Programmer
Apr 5, 2002
3
IT

I tried placing the TestCase for unit testing EJB's in Weblogic server. Its working fine. but when i change the TestCase which is a java class and compile it then i have to restart the Weblogic Server. If not he is taking the Old class itself. How to load the TestCase dynamically. Am using JunitEE Servlet as TestRunner.
 
Where in WebLogic? Is it on the WebLogic classpath? Is it packaged with the EJBs? If so, are you properly redeploying the EJB? Is it in a WebApp? Is that being redeployed? These are the questions that must be answered before someone can begin to address your question.
 
my EJB is separetly deployed in the WeblogicServer.
In the same server am creating a WebApp which contain a Servlet and some TestCases. Am registering the WebApp through entries in Weblogic.properties file. Request from the browser will go to the servlet with the TestCase class name that should be executed. This servlet will call the method to be tested with different parameters read from properties file. If the method fails for any value, it will report the error. Here the servlet will also be constant, and only test case can change.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top