[
http://issues.ops4j.org/browse/PAXWEB-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12131#action_12131
]
Thomas Joseph commented on PAXWEB-126:
--------------------------------------
Just verified that if you specify org.osgi.service.http.port as 0, Jetty will
automatically find the free port. But then there will be no easy way to
determine this port. So we will need to publish this port determined as a
service property. This will also allow other bundles to get the port and is
able to send an endpoint URL to a remote client.
A possible improvement could be to determine first if the default port is
available, if not, go in to find the free port.
But few questions:
1. What if we are registering multiple connecters each at a different port?
(are we doing it right now?)
2. If multiple connectors are allowed to be registed, there should be a
deterministic way to publish the port for each connectors. Any inputs?
> Pax Web should find a free port and use it
> ------------------------------------------
>
> Key: PAXWEB-126
> URL: http://issues.ops4j.org/browse/PAXWEB-126
> Project: Pax Web
> Issue Type: New Feature
> Reporter: Heiko Seeberger
> Assignee: Alin Dreghiciu
> Fix For: 0.5.3
>
>
> Currently the port for the HttpService is specified via System property or
> Config Admin service. The latter offers a lot of flexibility, but even then
> it may happen that the given port is not "free".
> Therefore it would be valuable if Pax Web would scan/try for free ports until
> if can find and use one.
> I am not sure what would be the best strategy. The most simple one would
> increrase port numbers starting from the default port or the one specified
> via the System property or Config Admin. But maybe it could make sense to
> have a "port scan service" which produces and remembers the port numbers and
> has additional methods to get the used/successful port number for any given
> Http Service (maybe identified by service id).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general