Bug 1126017

Summary: Allow configuration of the port of the embedded Netty server
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Shaun Appleton <sappleto>
Component: SwitchYardAssignee: Keith Babo <kbabo>
Status: CLOSED NOTABUG QA Contact: Jiri Sedlacek <jsedlace>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0.0 GACC: oskutka, soa-p-jira
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://c.na7.visual.force.com/apex/Case_View?id=500A000000LGcag
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-27 11:36:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Shaun Appleton 2014-08-01 15:20:48 UTC
Description of problem:

We would like to be able to configure the port of the embedded Netty server when we run our junit tests. The reason for this is that port 8080 is occupied in some of our development PCs. 

There is already a community issue created for this: https://issues.jboss.org/browse/SWITCHYARD-2232

Comment 1 Shaun Appleton 2014-08-27 11:36:10 UTC
https://issues.jboss.org/browse/SWITCHYARD-2232

has been closed with the comment:



Found that if binding is http or rest, you have to set one of these properties (different ports should be used).
System.setProperty("org.switchyard.component.resteasy.standalone.port", "8081");
System.setProperty("org.switchyard.component.http.standalone.port", "8082");
on the JUnit test with a @BeforeDeploy annotation. See https://issues.jboss.org/browse/SWITCHYARD-2231

In case of soap service, socketAddr must be set on the binding.
https://github.com/jboss-switchyard/quickstarts/blob/master/bean-service/src/main/resources/META-INF/switchyard.xml#L23

Not very consistent, but working.




Based on that I'm closing this too.