[
https://issues.apache.org/jira/browse/CAMEL-4814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13431510#comment-13431510
]
David Valeri commented on CAMEL-4814:
-------------------------------------
I have made the cxf example use dynamic ports; however, doing so without
rewriting the example in a significant way precludes using it in OSGi. I bring
up OSGi because it is mentioned in the REAME.txt file associated with this
example.
"To run the example within ServiceMix 4
First, you need to install the camel-cxf, camel-jetty features into ServiceMix4
Then install this bundle into ServiceMix, and use the following Java clients
to call the services:"
Since we have other dedicated OSGi examples, I vote to drop OSGi support from
this example. Thoughts?
The included feature file in this example does not work in the latest
ServiceMix and will likely take some fiddling to get it to work due to the
large version disparity between the latest SMX and the current Camel trunk.
> Use dynamic port numbers for unit tests the examples
> ----------------------------------------------------
>
> Key: CAMEL-4814
> URL: https://issues.apache.org/jira/browse/CAMEL-4814
> Project: Camel
> Issue Type: Task
> Components: examples
> Reporter: Claus Ibsen
> Assignee: David Valeri
> Fix For: 2.11.0
>
>
> Its a bit annoying that CI servers and whatnot fail tests due to a port
> number in use issue when testing the examples.
> > org.apache.cxf.interceptor.Fault: Could not start Jetty server on port
> > 9,000: Address already in use
> We should use dynamic port numbers, like we do when testing components.
> camel-test has a util class to find a free port number.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira