You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by javakurious <ja...@gmail.com> on 2012/06/27 20:46:08 UTC

Camel Rest WebService with cxfrs is only accessible through localhost

I created and deployed a camel cxfrs webservice on Glassfish 3.1. 

Here is a snippet from camel-config.xml

<cxf:rsServer id="sample-rest-server"
        serviceClass="com.personal.test.SampleRestService"/>

<route>
            <from uri="cxfrs:bean:sample-rest-server"/>
            <log message="MSG:Received cxf request "/>
</route>

The application deploys fine in GF 3.1. But when I look at the list of
deployed services, I see following:

Available RESTful services:
Endpoint address: http://localhost:46029
WADL : http://localhost:46029?_wadl

I am deploying it on a test server which is not my development machine. Here
are my questions. 

1. My rest of the application on glassfish is running on port 28080, why is
this service is running on a different port ?
2. Why is this port accessible through only localhost (NO FIREWALL). 


If somebody can help, it will be appreciated. 

Thanks




--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Rest-WebService-with-cxfrs-is-only-accessible-through-localhost-tp5715179.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Rest WebService with cxfrs is only accessible through localhost

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Jun 27, 2012 at 8:46 PM, javakurious <ja...@gmail.com> wrote:
> I created and deployed a camel cxfrs webservice on Glassfish 3.1.
>
> Here is a snippet from camel-config.xml
>
> <cxf:rsServer id="sample-rest-server"
>        serviceClass="com.personal.test.SampleRestService"/>
>
> <route>
>            <from uri="cxfrs:bean:sample-rest-server"/>
>            <log message="MSG:Received cxf request "/>
> </route>
>
> The application deploys fine in GF 3.1. But when I look at the list of
> deployed services, I see following:
>
> Available RESTful services:
> Endpoint address: http://localhost:46029
> WADL : http://localhost:46029?_wadl
>
> I am deploying it on a test server which is not my development machine. Here
> are my questions.
>
> 1. My rest of the application on glassfish is running on port 28080, why is
> this service is running on a different port ?
> 2. Why is this port accessible through only localhost (NO FIREWALL).
>

Can you use 0.0.0.0 instead of localhost in the endpoint address.


>
> If somebody can help, it will be appreciated.
>
> Thanks
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Rest-WebService-with-cxfrs-is-only-accessible-through-localhost-tp5715179.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen