Re: Camel as a websocket server ?

2018-02-18 Thread Zoran Regvart
Hi Mandeep,

On Sun, Feb 4, 2018 at 5:59 AM, Mandeep Sarma  wrote:
> 1. if Camel is installed on a Tomcat (no choice) server can it be used as a
> websocket server?

Atmosphere Websocket Component[1] should help you with this.

> 2. to access invoke the REST services located on a separate server on the
> same network would I use something like  camel-ahc or some like
> camel-http4?

sure, and if you have a Swagger specification for the REST service
you're using you might want to use REST Swagger component[2],

zoran

[1] 
https://github.com/apache/camel/blob/master/components/camel-atmosphere-websocket/src/main/docs/atmosphere-websocket-component.adoc
[2] 
https://github.com/apache/camel/blob/master/components/camel-rest-swagger/src/main/docs/rest-swagger-component.adoc
-- 
Zoran Regvart


Camel as a websocket server ?

2018-02-03 Thread Mandeep Sarma
I just started to look into Camel and I was hoping I could get some
guidance and clarification.

we are going to start converting a flex app. in the interim we need to
connect the Flex app to a java backend via websockets for various tasks,
but most critically connecting to an Asterisk server also using websockets
for bidirectional event updating. FYI We'are also going to be using
ActiveMQ mostly to guarantee data exchange between the Java backend  and a
JS UI.

what I would like to know is:
1. if Camel is installed on a Tomcat (no choice) server can it be used as a
websocket server?

2. to access invoke the REST services located on a separate server on the
same network would I use something like  camel-ahc or some like
camel-http4?

I have a cloudy understanding but I would like to get some insight if
possible. Sorry if the questions sound a bit dumb.

thank you,
Mandeep




Virus-free.
www.avg.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>