Hi Heiko,

On Wed, Mar 18, 2009 at 7:45 PM, Heiko <[email protected]> wrote:
>> 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.
>
> That was my plan. But I wonder whether I can configure Pax Web with an
> invalid/used port.
> What will happen then beside of some exceptions in my log file? Will Pax Web
> be still alive to be reconfigured for another try?

Yep, Pax Web will just log a message and still be alive for future
re-configurations.
What is kind of nice I would say in Pax Web is that the HttpService
remains steady during reconfigurations or if the web service itself
(jetty) does not work. Steady, in the sense that users of HttpService
will not have to handle service the service appearing/disappearing
from service registry so, they do not have to re-register the
servlets/resources.

>
>> 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.
>
> YES: I do find that useful! Is it already christmas time?

Just create an jira issue for it ;) The way we have it is that you can
give a starting port and a number of ports to be scanned.

>
>> 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.
>
> Hm, good question.
> I think in my use case the service property will be just fine. But there
> might be other use cases ...
> What about another service which is just an Array of ports?

Not sure what you mean. You want same service to handle  = create a
connector for all those ports? or create an http service for each
port, or use the ports in order to figure out a fist free one?

-- 
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
Sent from: Cluj-Napoca CJ Romania.

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

Reply via email to