unmarshalling with jaxb

2013-06-02 Thread wagnermarques
Hi camel hiders, could someone help me to unmarshall this document with jaxb dataformat please? http://orbeon.org/oxf/xml/xinclude"; xmlns:xh="http://www.w3.org/1999/xhtml"; xmlns:ev="http://www.w3.org/2001/xml-events"; xmlns:xi="http://www.w3.org/2001/XInclude"; xmlns:saxon="http://saxon.sf.n

Re: BridgePropertyPlaceholderConfigurer properties not getting resolved

2013-06-02 Thread sushil_vsk5
Sorry for the late reply. No I did not find a solution to this. I did a workaround by defining both a spring property loader and a camel properties component pointing to the same file location, something which anyways had to be done before the bridgepropertyplaceholder was introduced. -- View t

Re: unmarshalling with jaxb

2013-06-02 Thread Claus Ibsen
The XML file where you have is wrong. The elements should have a specific order so you may need to move up or down a bit. Any decent Java editor today can do XSD schema validation of an XML file so you can do that, and it can assist you. Otherwise you can find the XSD online at http://camel.apa

Re: File 'markerFile' strategy race condition

2013-06-02 Thread Claus Ibsen
Hi Well spotted. I have logged a ticket to get this fixed https://issues.apache.org/jira/browse/CAMEL-6413 Though I guess you are really unlucky to see this as there is few CPU cycles between moving the files, and deleting the .camelLock file. So it ought to be hard to reproduce or see. You can p

Re: bean with method parameters in camel

2013-06-02 Thread Claus Ibsen
Hi You can call a method without parameters that call the method you want (as its just java code and you can call it yourself), or use a inlined Camel processor to call the method from java code etc. The bean component is intended for calling methods with parameter values with data from the Camel

Re: Camel Splunk component

2013-06-02 Thread Preben.Asmussen
Small update on this. The Splunk Dev team wants to keep there releases in their own repository (as i read this no support for Maven central from their side). Same goes for osgi as stated on this thread http://splu

Transactions and Cache Levels

2013-06-02 Thread Darwish
Hi, im using transacted route which consuming exchanges from JMS component ( ActiveMQ ) and follow recommended setting as mentioned in http://camel.apache.org/jms.html .I setup cacheLevelName to CACHE_NONE , the result is thousands of TIME_WAIT connections crated and approaching the maximum OS (

Re: Transactions and Cache Levels

2013-06-02 Thread Claus Ibsen
You should use CACHE_CONSUMER if you can. Its much faster. Though some brokers and TX managers does not support it, and thus rely on CACHE_NONE. Especially if you use XA transactions. For single resource transaction with only ActiveMQ then using CACHE_CONSUMER is safe and supported. And its much

Re: Transactions and Cache Levels

2013-06-02 Thread Darwish
Thanks Claus .. that's clear for me ..one more question please ... can i use org.springframework.orm.jpa.JpaTransactionManager as transaction manager instead of jms transaction manager ... my case is from AcitveMQ:myqueue transacted =true tomyCustomCamelComponent my myCustomCamelComponent

Re: Transactions and Cache Levels

2013-06-02 Thread Claus Ibsen
If you have a copy of Camel in Action, then read chapter 9, its all about transactions. XA is much more complex and often slower. And the fact there is few XA TX managers out there. And how well are they really? And the idea of not ever loosing a message and that 2+ different IT systems can 100% b

A web service consumer route per operation

2013-06-02 Thread Hilde
Dear Listener, we have a web service with several operation in it. Now I would like to build for each operation a dedicated web service consumer route. How can I configure each route to listen only for one operation instead of listen to all of them. Here is my cxf endpoint configured: *

Re: Camel Jetty - Performance Issue

2013-06-02 Thread Christian Müller
How does you "scanningServicesProcessor" looks like? Best, Christian Christian Müller - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://www.apache.org/foundation/me

Re: A web service consumer route per operation

2013-06-02 Thread Christian Müller
You can't. Your CXF route will receive the web service requests for all operations and you have to add a content based router to handle the different operations different. E.G.: from("vm:common-gateway") .choice() .when(header("operationName").isEqualTo("findAccounts")) .to("direct:fin

Re: A web service consumer route per operation

2013-06-02 Thread Hilde
Ich verstehe, vielen Dank! -- View this message in context: http://camel.465427.n5.nabble.com/A-web-service-consumer-route-per-operation-tp5733630p5733633.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Transactions and Cache Levels

2013-06-02 Thread Christian Müller
As mentioned at [1], you should use the PooledConnectionFactory. [1] http://camel.apache.org/activemq.html Best, Christian Müller - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache

Re: Transactions and Cache Levels

2013-06-02 Thread Christian Müller
May be this sample is also useful for you: https://github.com/muellerc/camel-in-transaction Best, Christian Müller - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https:/

Re: Camel Error - even when everything seems to be working fine, but log shows errors

2013-06-02 Thread Christian Müller
I can confirm this issue. I created a JIRA to track it [1]. Thanks for reporting Vamsi! [1] https://issues.apache.org/jira/browse/CAMEL-6414 Best, Christian Müller - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https:/

mybatis, velocity and html response

2013-06-02 Thread Conneen Michael
Folks, I suspect I am a stones throw away from the "ah ha" moment.. but I cannot seem to get there.. I am a newbie so I purchased and downloaded the Camel In Action ebook... Great overview and has gotten me this far.. I do have "some" of the individual pieces working.. I just cannot figure

Re: Camel Spring 2.11 + JDK 1.7_u17

2013-06-02 Thread Christian Müller
You are sure you are using JAXB 2.2.6? It looks like the JAXB isuue which was fixed with JAXB 2.2.5. We also had to related issues in Camel in the past [2], [3] which were fixed by using JAXB 2.2.5+. [1] https://java.net/jira/browse/JAXB-860 [2] https://issues.apache.org/jira/browse/CAMEL-4893 [3]

Re: Camel Spring 2.11 + JDK 1.7_u17

2013-06-02 Thread Christian Müller
"update the jdk patch level" means installing the latest version from Oracle [1] and pointing your JAVA_HOME environment variable to its installation directory. [1] http://www.oracle.com/technetwork/java/javase/downloads/index.html Best, Christian Müller - Software Integration S

Re: No component found with scheme: XY

2013-06-02 Thread Raul Kripalani
It can be seen in your logs that your bundle my.test.core.service starts before camel-cxf. That's clearly the cause of the problem. Increasing the start level of my.test.core.service to a number above camel-cxf's will help. Regards, Raúl. On 31 May 2013 15:58, "Smith-John" wrote: > Raul Kripala

Re: Using ActiveMQ with Camel

2013-06-02 Thread VineetKK
Thanks Claus Ibsen. I got that working. However, later our design got changed and now I am trying to achieve the same but with ServiceMix. Regards, Vineet -- View this message in context: http://camel.465427.n5.nabble.com/Using-ActiveMQ-with-Camel-tp5733407p5733644.html Sent from the Camel -

camel-xmljson

2013-06-02 Thread Surendra
trying a marshall a simple xml to json using xmljson, however json-lib seems to be returning a JSONArray instead of a JSONObject. Not sure if it is a bug? related entries in camel context this is a test message value3 value2 value1 [#1 - JmsConsumer[test.MyQueue]] XMLSer

Re: unmarshalling with jaxb

2013-06-02 Thread wagnermarques
Thanks Claus, I can not guilt eclipse, was my fault... But now I am getting this exception: 14:33:56,993 | ERROR | xtenderThread-10 | ContextLoaderListener| 80 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=fzlb

Re: unmarshalling with jaxb

2013-06-02 Thread Claus Ibsen
Yes you need jaxb.index file. Google the internet to learn more about this file and why its needed. On Sun, Jun 2, 2013 at 9:33 PM, wagnermarques wrote: > Thanks Claus, I can not guilt eclipse, was my fault... > > But now I am getting this exception: > > 14:33:56,993 | ERROR | xtenderThread-10 |