[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| [jetty-users] Virtual host configure in embedded jetty 7.3 | 
Hi All,
I am trying to configure virtual host in embedded jetty 7.3 using the following urls
In my case the servlet is register using the declarative service approach as shown in the link 
I am not creating war file for my web application .
So how do i configure the jetty.xml  and context.xml???
jetty.xml 
 <Arg>
        <New class="org.eclipse.jetty.deploy.ContextDeployer">
          <Set name="contexts"><Ref id="Contexts"/></Set>
          <Set name="configurationDir"><SystemProperty name="jetty.home" default="."/>/contexts</Set>
          <Set name="scanInterval">5</Set>
        </New>
      </Arg>
    </Call>
Context.xml . In assume that <Set name="war"><SystemProperty name="jetty.home"/>/webapps/A</Set> points to the war file located under /webapp/A folder location . In my case the possibility of having a war file is not their .
<Configure  class="org.eclipse.jetty.webapp.WebAppContext">      
      <Set name="war"><SystemProperty name="jetty.home"/>/webapps/A</Set>
      <Set name="contextPath">/webappA</Set>
      <Set name="connectorNames">
        <Array type="String">
          <Item>connA</Item>
        </Array>
       </Set>
      ...
    </Configure>Best Regards,
Mitul