Skip to content

Instantly share code, notes, and snippets.

@aolshevskiy
Created December 18, 2011 16:09
Show Gist options
  • Save aolshevskiy/1493789 to your computer and use it in GitHub Desktop.
Save aolshevskiy/1493789 to your computer and use it in GitHub Desktop.
Jetty generic resource factory configuration
<Configure id="webAppCtx" class="org.mortbay.jetty.webapp.WebAppContext">
<New class="org.mortbay.jetty.plus.naming.EnvEntry">
<Arg><Ref id="webAppCtx"/></Arg>
<Arg>bean/MyBeanFactory</Arg>
<Arg>
<New class="javax.naming.Reference">
<Arg>com.mycompany.MyBean</Arg>
<Arg>com.mycompany.MyBeanFactory</Arg>
<Arg />
<Call name="add" id="reference">
<Arg>
<New class="javax.naming.StringRefAddr">
<Arg>bar</Arg>
<Arg>23</Arg>
</New>
</Arg>
</Call>
</New>
</Arg>
<Arg type="boolean">true</Arg>
</New>
</Configure>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment