Hi,

With Karaf 4.1.2, I'm trying to programmatically configure Jetty to deploy 
web bundles on different http ports.

For example, I'm trying the achieve the following scenario:

Karaf root instance:
   admin-web-app on port 8181

Karaf instance 1:
   my-web-app-1 on port 10081

Karaf instance 2:
   my-web-app-2 on port 10082

Karaf instance 3:
   my-web-app-1 on port 10083
   my-web-app-3 on port 10084


But this scenario is also possible:

Karaf root instance:
   admin-web-app on port 8181
   my-web-app-1 on port 10081
   my-web-app-1 on port 10082
   my-web-app-2 on port 10083
   my-web-app-3 on port 10084


My constraints are that the ports and the context path is not known at 
compile time, it will be dynamically resolved at runtime from a deployment 
configuration file.
 
What would be the best approach to implement such thing ? 

My initial idea would be to have a webapp-mgmnt module who listens on new 
web bundle and deploys it properly using the configuration setting (ports, 
instances). 

Some initial questions I have:

1) How to listen on new bundle that have a give meta information in the 
manifest ?
2) How to access the Jetty server from the app code ?

Thanks a lot
Nicolas

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to