Hi

We are going to migrate our apps from embedded Jetty to embedded Tomcat in order to 
evaluate if a switch will not have a negative impact on performance.

In Jetty we dynamically add Web Contexts to an app at deploy time using jetty-web.xml :


  | <?xml version="1.0"  encoding="ISO-8859-1"?>
  | <!DOCTYPE Configure PUBLIC   "-//Mort Bay Consulting//DTD Configure 1.1//EN" 
"http://jetty.mortbay.org/configure_1_2.dtd";>
  | 
  | <Configure class="org.jboss.jetty.JBossWebApplicationContext"> 
  |   <Call name="getHttpServer">
  |     <Call name="addContext">
  |       <Arg>/MyResources/*</Arg>
  |       <Set name="ResourceBase">C:/MyResource/*</Set>
  |         <Call name="addHandler">
  |         <Arg><New class="org.mortbay.http.handler.ResourceHandler"/></Arg>
  |         </Call>
  |       <Call name="start" />
  |     </Call>
  |   </Call>
  | </Configure>
  | 

How is this done in embedded Tomcat?

Thanks...
Torsten


<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827865#3827865";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827865>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to