Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] openAM with Jetty => embed a single jetty in multiple web apps


These are 2 questions but they are correlated:

1. Does anybody successfully used openAM with jetty 8/9? In the download page of openAM (, there is no stable agent build for jetty. And even the nightly build is for jetty 6. (I've tried that agent nightly build with jetty 8 and saw that it seems work)

2. Assumely we can use openAM agent in jetty, I see that the agent installer will place a agentapp.war file to jetty webapps folder. However, I want to deploy my app with embedded jetty, not standalone. How would I pack jetty, my app WAR and agentapp.war into a single war file to run under jetty embedded mode? Currently, I have the following code

WebAppContext contextHandler = new WebAppContext();
ProtectionDomain protectionDomain = RestoProdServer.class.getProtectionDomain();
URL location = protectionDomain.getCodeSource().getLocation();

how the code change if I have 3 WARs?


Back to the top