Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] load jetty module from xml context configuration

Hello,

Is it possible to load a jetty module from the XML configuration file of a webapp (context configuration)?

I have this configuration XML of the webapp and I need to load ee8-annotations module, if possible without modifying start.ini or start.d?

I haven't found anything like that in the doc.

Thanks
Fab


<Configure id="VnuContext" class="org.eclipse.jetty.ee8.webapp.WebAppContext">
  <Set name="contextPath">/vnu</Set>
  <Set name="war">/usr/share/vnu/webapp</Set>

  <!-- get a ContextHandler reference that the AliasChecker can use -->
  <Get id="contextHandler" name="coreContextHandler" />

  <!-- Enable symlinks -->
  <Call name="addAliasCheck">
    <Arg>
      <New class="org.eclipse.jetty.server.SymlinkAllowedResourceAliasChecker">
        <Arg><Ref refid="contextHandler"/></Arg>
      </New>
    </Arg>
  </Call>

</Configure>





Back to the top