Re: Camel WebSocket WsEndpoint not forwarding messages
If you are expecting acks returned from the external web socket server, you will need to add the corresponding from-endpoint. Take a look at the route configuration of this ahc-ws request/response test. https://git-wip-us.apache.org/repos/asf?p=camel.git;a=blob;f=components/camel-ahc-ws/src/test/java/org/apache/camel/component/ahc/ws/WsProducerConsumerTest.java;h=54d8b0928e9a5a219855e776f2403a050837fe04 2014-12-23 6:56 GMT+09:00 SUNIL : > Hello, > > We are using Camel Websocket component and AHC-WS component to chain > Multiple WebSockets to stream the messages. But we ran in to some issues > with WsEndpoint class which is not forwarding the messages which it > receiving from other websocket. > > Let me explain clearly what we are doing : > > We have iPad WebSocket client which sends the messages to my application > which is developed using Camel WebSocket component. > > from("*websocket://myEndPoint*").choice(). > when(body().contains("ACK from external websocket")). >to("direct:ipad") > .otherwise(). >to("direct:otherWebSocket"); > Above route will act like producer and consumer.Also this endpoint will > receive messages from iPad WebSocket as well as some other external > Application WebSocket component which is developed using Netty. > > Below route will be used to forward the iPad messages to some other > external WebSocket component. > > from("direct:*otherWebSocket*").log("Forwarding message to other > external WebSocket").to("ahc-ws://xx:39000/externalWebSocket"); > > Below will be used to send the ACK's back to iPad which it is receiving from > external WebSocket. > > from("*direct:ipad*").log("Sending ACK message to iPad > ").to("websocket://myEndPoint?sendToAll=true"); > > Above routes are working fine in one way that means iPad able to send the > messages to //myEndPoint and //myEndPoint is able to forward the messages to > external WebSocket component . *But external WebSocket Component sending the > ACKs back to Camel Framework WsEndpoint class but not to //myEndPoint route > .* Please help me why Camel Framework WsEndpoint class is not forwarding > those messages to my route //myEndPoint . > > But same configuration is working fine if external WebSocket also uses the > Camel WebSocket component which is weird. *Does this mean camel websocket > AHC-WS component only works if external Websockets developed using Camel > Components*? > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-WebSocket-WsEndpoint-not-forwarding-messages-tp5760996.html > Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel
No one is here to support this issue? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-tp5761107p5761112.html Sent from the Camel - Users mailing list archive at Nabble.com.
[SQL COMPONENT] mysql transaction
Hello, i would use sql component (http://camel.apache.org/sql-component.html) into a transactional scenario. For example: 0) begin 1) insert 2) insert 3) commit I am using mysql. What is the best strategy to do it using camel's component? Tnkx -- View this message in context: http://camel.465427.n5.nabble.com/SQL-COMPONENT-mysql-transaction-tp576.html Sent from the Camel - Users mailing list archive at Nabble.com.
[SQL COMPONENTE] CamelSqlGeneratedKeyRows has a bug?
Hello, i am using sql component with CamelSqlRetrieveGeneratedKeys=true but after an insert operation i don't have any CamelSqlGeneratedKeyRows header. Is it a bug? I am using mysql server 5.1. Tnkx -- View this message in context: http://camel.465427.n5.nabble.com/SQL-COMPONENTE-CamelSqlGeneratedKeyRows-has-a-bug-tp5761113.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel
Hi, Any one can advice on below issue please -- View this message in context: http://camel.465427.n5.nabble.com/Camel-tp5761107p5761109.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Getting a Header property on a exception in the DSL
You could use a new Processor inline in the Java DSL and throw the exception from within the Processor? The exchange is the parameter in the interface method so you can create the exception with anything you want in it. -- View this message in context: http://camel.465427.n5.nabble.com/Getting-a-Header-property-on-a-exception-in-the-DSL-tp5737551p5761117.html Sent from the Camel - Users mailing list archive at Nabble.com.
How to have Camel Exchange Properties while doing message transfer with ActiveMq
I am doing message transfer with Active MQ's. When i transfer the Message contents to a ActiveMq Endpoint, All the camel exchange properties are lost. How to use exchange properties with Active Mq. My Implementation., /person/city = 'London' * london * --Values logged here * others * --Values logged here --Values not logged here --Values not logged here -- View this message in context: http://camel.465427.n5.nabble.com/How-to-have-Camel-Exchange-Properties-while-doing-message-transfer-with-ActiveMq-tp5761116.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to have Camel Exchange Properties while doing message transfer with ActiveMq
Hi Its only the content from the message that is transferred, eg body + headers. And for JMS there is some restrictions. See the Camel JMS page for more details. On Mon, Dec 29, 2014 at 4:55 PM, sathiyaraja wrote: > I am doing message transfer with Active MQ's. When i transfer the Message > contents to a ActiveMq Endpoint, All the camel exchange properties are lost. > How to use exchange properties with Active Mq. > > My Implementation., > > > > > /person/city = 'London' > * > london > * > --Values logged here > > > > * > others > * > --Values logged here > > > > > > > --Values not logged here > > > > > --Values not logged here > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-have-Camel-Exchange-Properties-while-doing-message-transfer-with-ActiveMq-tp5761116.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
Re: Camel
Smells like a bug in the way you build up the SQL so start by getting it to run in your IDE or db client. Or write the SQL you expect and some unit tests. If that works and Camel doesn't then send the test, that's the fastest way to get help. Also see http://camel.apache.org/support.html Taariq > On 29 Dec 2014, at 13:20, smilevasu6 wrote: > > No one is here to support this issue? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-tp5761107p5761112.html > Sent from the Camel - Users mailing list archive at Nabble.com.