-
1. Re: port in RESTEasy gateway
kcbabo May 17, 2013 8:49 AM (in response to luisdeltoro)1 of 1 people found this helpfulWe 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.
cheers,
keith
-
2. Re: port in RESTEasy gateway
luisdeltoro May 17, 2013 11:37 AM (in response to kcbabo)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?
cheers,
Luis
-
3. Re: port in RESTEasy gateway
kcbabo May 17, 2013 12:09 PM (in response to luisdeltoro)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. ;-)
-
4. Re: port in RESTEasy gateway
luisdeltoro May 21, 2013 5:45 AM (in response to kcbabo)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.
-
5. Re: port in RESTEasy gateway
mageshbk May 21, 2013 9:14 AM (in response to luisdeltoro)Hi Luis,
That will be cool if you could contribute for this task. I have created a JIRA to track this request.
https://issues.jboss.org/browse/SWITCHYARD-1493
I have marked this as a need for the Http binding also. Feel free to submit either or both of them.
thanks and regards,
Magesh