[ 
https://issues.apache.org/jira/browse/CAMEL-23359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bartosz Popiela updated CAMEL-23359:
------------------------------------
    Description: 
When using random port number (0) for Jetty endpoint (e.g. in tests) currently 
there is no way to get the effective port number bound by the server
{code:java}
@EndpointInject("jetty:localhost:0/sample")
JettyHttpEndpoint12 sampleEndpoint; {code}
Ideally, JettyHttpEndpoint#getServiceUrl should reflect the effective port 
number.

  was:
When using random port number (0) for Jetty endpoint (e.g. in tests) currently 
there is no way to get the effective port number bound by the server
{code:java}
@EndpointInject("jetty:localhost:0/sample")
JettyHttpEndpoint12 sampleEndpoint; {code}
 

 


> Jetty Endpoint should return effective port number
> --------------------------------------------------
>
>                 Key: CAMEL-23359
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23359
>             Project: Camel
>          Issue Type: Improvement
>    Affects Versions: 4.19.0
>            Reporter: Bartosz Popiela
>            Priority: Minor
>
> When using random port number (0) for Jetty endpoint (e.g. in tests) 
> currently there is no way to get the effective port number bound by the server
> {code:java}
> @EndpointInject("jetty:localhost:0/sample")
> JettyHttpEndpoint12 sampleEndpoint; {code}
> Ideally, JettyHttpEndpoint#getServiceUrl should reflect the effective port 
> number.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to