[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Can a Tomcat instance be created inside of a java method?

Asked by HappyEngineer in Apache Tomcat Application Server

I recently saw that it was possible to create a glassfish instance using syntax similar to this:
    new WebContainer(8080).deploy(...);
I was wondering if such a thing existed for Tomcat.

I'd like to write a junit test which created a new tomcat instance, deployed some code to it (in memory), then ran some HttpUnit tests against it.

Is that possible with Tomcat?
[+][-]06/24/09 12:56 AM, ID: 24699028Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/26/09 03:15 AM, ID: 24719576Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_EXPERT_20070906