On Wed, Mar 18, 2009 at 6:24 PM, Heiko <[email protected]> wrote:
> The only thing I wonder (also with your solution) is what will happen if one
> HttpService does not start because another HttpService in another OSGi
> runtime already blocks the default port. Would it work to test free ports
> and then configure the HttpService via Config Admin? Would it (re-)start
> then?
>
> Heiko

If you mean that Pax Web is testing the free ports and reconfigure
itself then that is not the case. Pax Web will just use the ports
specified.
But if you provide that functionality by yourself (scan for free
ports) and then reconfigure via Configuration Admin, Pax Web will
reconfigure itself to the new port values.
If you find it useful we can easy implement also the part where Pax
Web will find it's free port and use it, since we already have such a
functionality from Pax Exam. Question is then how you will know what
port to use? Of course that I can publish the found value as
HttpService property, but still.

-- 
Alin Dreghiciu
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org - New Energy for Java - Domain Driven Development.
http://www.codedragons.com - New Energy for Projects - Great People
working on Great Projects at Great Places

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to