You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by "Obele, Azubuko" <Az...@morganstanleysmithbarney.com> on 2010/07/26 15:33:09 UTC

Binding to other than localhost?

Silly question, but how do I bind CXF Rest services to any name on the localhost? 
 
Currently I have a configuration that looks like:
 
<httpj:engine-factory bus="cxf" id="jetty-factory">

<httpj:engine port="14000">

<httpj:handlers>

<ref bean="staticResourceJettyHandler" />

</httpj:handlers>

</httpj:engine>

</httpj:engine-factory>

<jaxrs:server id="service" address="http://localhost:14000/services/" >
...
</jaxrs:server>

This works fine if I hit my services through localhost but if I hit it through any other hostname I get a connect timed out. Any ideas?


--------------------------------------------------------------------------
Important Notice to Recipients:
 
It is important that you do not use e-mail to request, authorize or effect the purchase or sale of any security or commodity, to send fund transfer instructions, or to effect any other transactions. Any such request, orders, or instructions that you send will not be accepted and will not be processed by Morgan Stanley Smith Barney.
 
The sender of this e-mail is an employee of Morgan Stanley Smith Barney LLC. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately.  Erroneous transmission is not intended to waive confidentiality or privilege. Morgan Stanley Smith Barney reserves the right, to the extent permitted under applicable law, to monitor electronic communications. By e-mailing with Morgan Stanley Smith Barney you consent to the foregoing.