[
https://issues.apache.org/jira/browse/OPENEJB-2092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13994860#comment-13994860
]
Xavier Dury commented on OPENEJB-2092:
--------------------------------------
setting a port to 0 is indeed taking a random free port but it seems that the
chosen port is not propagated everywhere.
For example, webservices are trying to use port 0:
INFO - Webservice(wsdl=http://127.0.0.1:0/EjbModule699121260/EchoService,
qname={http://company.com/}EchoServiceService) --> Ejb(id=EchoService)
> Allow easy offsetting of all OpenEJB ports
> ------------------------------------------
>
> Key: OPENEJB-2092
> URL: https://issues.apache.org/jira/browse/OPENEJB-2092
> Project: OpenEJB
> Issue Type: Wish
> Components: configuration
> Reporter: Xavier Dury
> Priority: Minor
>
> When Hudson/Jenkins is building/testing multiple branches of our project
> (which uses straight OpenEJB in tests), there can be ports conflicts between
> the various running instances of the OpenEJB container.
> A workaround is to override all OpenEJB ports for each branch (job in
> Hudson/Jenkins) with -Dhttpejbd.port=xxxx -Dejbd.port=yyyy -Dejbds.port=zzzz.
> It would be easier to specify only one offset for all ports that are used by
> OpenEJB -Dopenejb.ports.offset=1000
--
This message was sent by Atlassian JIRA
(v6.2#6252)