1 of 1 people found this helpful
We integrate directly with RESTEasy and the JBoss Web stack in JBoss AS so there's no way to change the port in your SY configuration. You can always change the port used by the http listener in your standalone.xml. If you would like to create a distinct http-listener that's used just for your SY REST services then that's not something we support at the moment. If it's a feature you would like to see, please file a JIRA and give us some background on your use case.
Thanks for your answer Keith, from my side I do not see the need for such a feature right now
I need to be able to configure it for SwitchyardRunner based tests though. Is this possible?
Ah, OK. We don't support passing that through the config model at present and that would be a bit much to fit in before 1.0 is done. A smaller change, since this is just for unit testing, is to support a change via system property. This is the class that's responsible for bootstrapping a standalone endpoint for REST bindings:
You can see I've marked the class where the port is hard-coded to 8080. Assuming Magesh thinks it's a good idea, we can add a minor mod there to look for a system property (e.g. org.switchyard.component.resteasy.standalone.port) and default to 8080 if not found. We're happy to accept contributions as well. ;-)
Exactly, this is the class I saw when trying to figure out if the port could be configured, that's why I though it could not be changed.
I will be more than happy to make a contribution to change this if making this port configurable is fine with you guys.
That will be cool if you could contribute for this task. I have created a JIRA to track this request.
I have marked this as a need for the Http binding also. Feel free to submit either or both of them.
thanks and regards,