I think there is no websocket provider registered by the ahc client.
Please check if you have e.g., mvn:io.netty/netty/3.9.2.Final on your classpath.

2015-08-10 12:35 GMT+02:00 Sanjana <[email protected]>:
> Hello,
> I am using ahc-ws to send messages a server. I have done it like this -
> <camelContext trace="true" xmlns="http://camel.apache.org/schema/spring";>
>
>         <properties>
>         <property key="http.proxyHost" value="proxy" />
>         <property key="http.proxyPort" value="8080" />
>         </properties>
>
>
>
>     <route>
>       <from uri="timer://myTimer?fixedRate=true&amp;period=10000"/>
>
>
>
>       <bean ref="hcpTransform" method="transform"/>
>
>       <bean ref="process"/>
>      <to uri="ahc-ws://target url"/>
>      <log message="Sent ${body} to Web Socket" />
>     </route>
>
> In the transform method of hcpTransform bean i have created the payload to
> be sent.  In the process bean i have added required headers like
> authentication , httpmethod etc.
> I have set the proxy using properties tag.
>  But i get an exception - "java.net.MalformedURLException: Unknown protocol:
> ws" Caused by: java.lang.IllegalStateException: Unknown protocol: ws.
>
> How do i resolve this?
>
> Any help will be appreciated...Thanks!
>
>
>
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/ahc-ws-tp5770524.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to