Re: Weird behaviour rest dsl // REST flow using REST DSL

2017-06-09 Thread Claus Ibsen
Hi Could it be because of streaming, and that you are logging the message body, so it becomes null/empty http://camel.apache.org/why-is-my-message-body-empty.html On Sat, Jun 10, 2017 at 5:25 AM, vincentmsr wrote: > Hi guys > > I have currently working on a camel flow which receives hotel book

Weird behaviour rest dsl // REST flow using REST DSL

2017-06-09 Thread vincentmsr
Hi guys I have currently working on a camel flow which receives hotel booking request from UI and makes multiple calls on backend to complete the booking and return the json object back to UI. Blocking room and booking room works fine. I have a service call which retrieves the booking details and

Re: Apache-Ignite Example

2017-06-09 Thread Claus Ibsen
I dont know what data type mqtt gives you, you can turn on tracer to see that etc. But you can also try to convert the data to a String.class before via .convertBodyTo(String.class) assuming Ignite can store plain strings and get them again via query. On Fri, Jun 9, 2017 at 3:34 PM, solomon wrote

Re: Deaf MockEndpoints when using Spring @DirtiesContext

2017-06-09 Thread Claus Ibsen
Search a bit more on these user forums I think some people have discussed this before, also they may got a workaround or it works in a newer release. 2.17.x is EOL. On Fri, Jun 9, 2017 at 1:53 PM, Burkard Stephan wrote: > Hi > > I attached a tiny example project to show a strange effect when I us

Re: EntityManager + Transaction + OSGi

2017-06-09 Thread renalexster
Hi, The transaction is working, but only when I run the route through maven, using the camel:run. If I try to run the same code in Fuse does not work. 2017-06-09 11:51 GMT-03:00 Grzegorz Grzybek [via Camel] < ml+s465427n580280...@n5.nabble.com>: > If you're running Fuse 6.3, you may find this ex

Re: Apache-Ignite Example

2017-06-09 Thread solomon
Hi Claus & Gary, I have set the header as .setHeader(IgniteConstants.IGNITE_CACHE_KEY, new JsonPathExpression("$.id")) now the data is getting inserted, when I checked the node entry in Ignite visor console count increases when message comes from the mqtt channel. However while querying the cache

Re: EntityManager + Transaction + OSGi

2017-06-09 Thread Grzegorz Grzybek
If you're running Fuse 6.3, you may find this example[1] useful. I've described how datasources work and there are working (docker based) Camel routes using XA and non-XA datasources. Are you sure org.apache.commons.dbcp.BasicDataSource is not working with auto-commit mode by default? regards Grz

EntityManager + Transaction + OSGi

2017-06-09 Thread renalexster
Hi, I'm having problems with the entityManager when I try to run in OSGI environment (jboss-fuse-6.3-fabric). Everything works locally running by camel:run, but in the OSGI container the transaction is not committed in the database Here

publish/subscribe with camel-netty4

2017-06-09 Thread Joerg Jansen
I found a way, which seems to work for me. The solution was to create a custom component which extends the NettyComponent. The corresponing endpoint will have an reference to the used listener channel (Consumer). @Override protected void doStart() throws Exception { super.doStart(); Field n

Re: publish/subscribe with camel-netty4

2017-06-09 Thread jjansen
I found a way, which seems to work for me. The solution was to create a custom component which extends the NettyComponent. The corresponing endpoint will have an reference to the used listener channel (Consumer). @Override protected void doStart() throws Exception { super.doStart(); Field

Re: Predicate With Xpath

2017-06-09 Thread Claus Ibsen
You can do a lot with xpath or xquery, so you can check up on that. You say predicate, what predicate do you want to do on the gift attribute. XPath for example allows to do predicates also, eg check if the value is == Y etc On Fri, Jun 9, 2017 at 9:15 AM, vijayasree.j wrote: > > online > > 1 po

Predicate With Xpath

2017-06-09 Thread vijayasree.j
online 1 post Dear all, I am doing a project with Camel and stuck with one issue. Is there any way to combine Xpath,Header and Predicate together? The requirement is like,i need to do a content message routing based on the Xml file elemant value. Gift attribute can have any value ,bas