AW: AW: camel - xsd

2014-12-10 Thread jhm
I played a little bit. Jan public class XmlTest extends CamelTestSupport { @EndpointInject(uri=mock:valid) MockEndpoint valid; @EndpointInject(uri=mock:validationError) MockEndpoint validationError; @Test public void validNewsfeed() throws Exception { //

Re: Apache Camel Mina2 not receiving data using Socket

2014-12-10 Thread Thomas Termin
Hello, Since camel-mina2 all consumer(from) exchanges are InOut. This is different to camel-mina. Maybe it is related to that one. But actually you say just it does not work. But what exactly is not working? Thomas On Tue, Dec 9, 2014 at 10:33 AM, Saurabh Singhal earthonclo...@gmail.com wrote:

Re: Apache Camel Mina2 not receiving data using Socket

2014-12-10 Thread Thomas Termin
Hello, my answer was a bit confussing maybe. The first sentence is realted to your sync=false which will not work in camel-mina2. Btw. you should give camel-netty4 a try. Thomas On Wed, Dec 10, 2014 at 9:34 AM, Thomas Termin thomas.ter...@gmail.com wrote: Hello, Since camel-mina2 all

Re: AW: camel - xsd

2014-12-10 Thread Aki Yoshida
you are talking about the invalid-xml parsing bug in xtokenzier. that has been fixe with CAMEL-8106. It should be part of the new 2.14.1, which is to be released shortly. regards, aki 2014-12-10 9:25 GMT+01:00 Jan Matèrne (jhm) apa...@materne.de: I played a little bit. Jan public class

AW: AW: camel - xsd

2014-12-10 Thread jhm
No, input is valid xml. After invoking xtokenize() the xml is invalid. CAMEL-8106 is very short. I can't see whether it is related. I posted an example on the user list http://mail-archives.apache.org/mod_mbox/camel-users/201412.mbox/%3C002b01d01452%24e8ee27a0%24baca76e0%24%40de%3E I had

Re: AW: camel - xsd

2014-12-10 Thread smilevasu6
Then Aki tell me how can i read below xsd and fetch mapping attributes ?xml version=1.0 encoding=utf-8? xs:schema elementFormDefault=qualified xmlns:xs=http://www.w3.org/2001/XMLSchema; xs:element name=TABLES xs:complexType xs:sequence xs:element

Camel-Hive

2014-12-10 Thread smilevasu6
Hi, I am trying to insert into hive table like insert overwrite table BD_COMPANIES

Re: AW: camel - xsd

2014-12-10 Thread Aki Yoshida
okay. let me take a look. 2014-12-10 12:02 GMT+01:00 Jan Matèrne (jhm) apa...@materne.de: No, input is valid xml. After invoking xtokenize() the xml is invalid. CAMEL-8106 is very short. I can't see whether it is related. I posted an example on the user list

Re: AW: camel - xsd

2014-12-10 Thread Aki Yoshida
i just created a test that uses your data and verified that it is working fine. please take a look at this file at my dropbox. https://www.dropbox.com/s/pfgvs9si9bvujxo/jmtest.tar.gz?dl=0 just extract the files into camel-core and run JMNewsTest. and see if that works in your environment, (i

Re: Camel-Hive

2014-12-10 Thread smilevasu6
Hi All, Any one is there to help me on below one please -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Hive-tp5760452p5760470.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Rép: Splitting Message from Ftp Consumer

2014-12-10 Thread Noam Ramonet
Hi, I’ve testing a little more and the issue seems related to the Expresion used by split to iterate. Ftp consumers generates a message with body input of type RemoteFile FtpFile. org.apache.commons.net.ftp.FtpFile#toString() method returns the strange splitted content which originated the post

jmx- annotated RouteBuilder not showing up in JConsole

2014-12-10 Thread dermoritz
I tried to annotate a RouteBuilder with @ManagedResource and a method from it with @ManagedOperation but i can't find it in JConsole. The other classes including my annotated custom endpoint is showing up fine. I am not sure if these annotations work with all kinds of classes within camel?! In my

Re: jmx- annotated RouteBuilder not showing up in JConsole

2014-12-10 Thread Claus Ibsen
Hi It needs to extends ServiceSupport and depending on how its created, you may need to manually add it to camel context, using addService so Camel can register it as a service and in jmx On Wed, Dec 10, 2014 at 4:41 PM, dermoritz tantea...@hotmail.com wrote: I tried to annotate a RouteBuilder

Starting and stopping routes leak threads

2014-12-10 Thread Bjørn Ellingsen
Using Camel 2.14.0, I'm experiencing the exact same situation as described in this old Jira issue: https://issues.apache.org/jira/browse/CAMEL-5677 only difference is that my routes are file (or SFTP) based, not SEDA. Trying something like: for (int i = 0; i 50; i++) {

Re: Rép: Splitting Message from Ftp Consumer

2014-12-10 Thread noamRamonet
Correction. Inserting an explicit conversion to String solves the problem: route id=fromFtp2SOAP from uri=ftp://user:pass@host/ postalBox/inBox?fileName=simpleTextData.txtamp;localWorkDirectory=tempamp;binary=true/ convertBodyTo type=String/ split streaming=true tokenize

Throttling based on content in camel

2014-12-10 Thread yogu13
Hi, We need to do throttling based on id which is received as part of the request but what I see that the default implementation of org.apache.camel.impl.ThrottlingInflightRoutePolicy is based on predefined rule set in the xml, there was a request raised sometime back for a more dynamic

File renaming problems under Windows

2014-12-10 Thread Adriano Ferranti
Hello guys, I'm getting the same problem related in https://issues.apache.org/jira/browse/CAMEL-6756. I mean, when the route raises any exception, the file is not moved or deleted at the end of the process. I believe that occurred a misunderstanding about the correction of issue related

Sending to Syslog

2014-12-10 Thread mtod09
I would like to setup a ActiveMQ queue for syslog messages and use Camel to send to the Syslog Server. I looked at the following link but I'm unable to get this to work. http://camel.apache.org/syslog.html I'm using Spring for the configuration. beans

Re: Apache Camel Mina2 not receiving data using Socket

2014-12-10 Thread Saurabh Singhal
Hi Thanks for the reply. Basically when I send the data using a socket programming code as mentioned in the problem, it does not print the output. I even copied the from to code from Apache camel site as below: from(mina2:tcp://localhost:6789?sync=truetextline=true).process(new

Elasticsearch component - bulk requests with ids

2014-12-10 Thread slush
Hello! I'm new to the camel forums. First off, thank you to all the contributors. Camel is a wonderful framework. While doing some work recently I came across an issue with the elasticsearch component. Specifically, I need to be able to send a bulk request where the documents in the bulk request

Re: AW: camel - xsd

2014-12-10 Thread Aki Yoshida
i meant woodstox-core-asl (e.g., woodstox-core-asl-4.4.1.jar). its maven coordinate is mvn:org.codehaus.woodstox/woodstox-core-asl/4.4.1 you need to have woodstox or some other parser that reliably reports the offset location at each parse event. Sjsxp (sun/oracle implementation included in JDK)

Re: Need leading/trailing spaces support in camel:simple

2014-12-10 Thread Aki Yoshida
you can set the trim attribute in the expression. trim=false and it think you should be using \r and \n instead of relying on the implicit LF or the xml-char ref to be on the safer side in preserving those chararacters. 2014-12-09 11:08 GMT+01:00 Goyal, Arpit arpit.go...@sap.com: Hi

Re: Exchange[Message: [Body is null]] even though Server is sending Response

2014-12-10 Thread ScalaKp
Hi All , I found the problem myself. Issue with Codec. I added my custom codec now starts working . -- View this message in context: http://camel.465427.n5.nabble.com/Exchange-Message-Body-is-null-even-though-Server-is-sending-Response-tp5760434p5760529.html Sent from the Camel - Users

Re: Aggregator race condition in recovery task?

2014-12-10 Thread bendherville
The issue you're experiencing may be related to https://issues.apache.org/jira/browse/CAMEL-4271 -- View this message in context: http://camel.465427.n5.nabble.com/Aggregator-race-condition-in-recovery-task-tp5758315p5760530.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Simple expression with JSON and redis

2014-12-10 Thread gmh
Found the answer here: http://camel.465427.n5.nabble.com/Simple-td3242568.html#a3242571 Gordon -- View this message in context: http://camel.465427.n5.nabble.com/Simple-expression-with-JSON-and-redis-tp5760520p5760521.html Sent from the Camel - Users mailing list archive at Nabble.com.

Simple expression with JSON and redis

2014-12-10 Thread gmh
All, I have a requirement where we take data from rabbitmq and insert them into redis Below is my exchange taken from stacktrace: Exchange[ Id ID-MRT-GMH1119-49410-1418246041340-0-2 ExchangePattern InOptionalOut Headers

Issue in publishTopicName in mqtt component

2014-12-10 Thread Jinesh M.K
Hi, I have a spring DSL route definition camel:route camel:from uri=mqtt:foo?host=tcp://myhost:1883subscribeTopicName=test/hello / camel:to uri=mqtt:bar?host=tcp:/myhost:1883publishTopicName=test1/test / camel:log message=Message processed / /camel:route here message is consumed from test/hello

Camel activemq topic route adds addtional subscriber to the activeMQ topic upon each processing

2014-12-10 Thread Aryan
Hi All, We are using camel 2.13.2 with apache activeMQ 5.9.0 configured to store messages in the database. We are using a standalone java class which publishes the messages to that topic. Here is our activeMQ configuration. bean id=activemq

Re: Sending to Syslog

2014-12-10 Thread Claus Ibsen
Hi Isn't there more details about why syslog cannot be created? Also do you have the JARs on the classpath for it? And what version of Camel do you use? On Wed, Dec 10, 2014 at 7:16 PM, mtod09 m...@thetods.net wrote: I would like to setup a ActiveMQ queue for syslog messages and use Camel to

Re: Starting and stopping routes leak threads

2014-12-10 Thread Claus Ibsen
Hi Thanks for reporting. You are welcome to log a JIRA ticket about this bug. On Wed, Dec 10, 2014 at 4:59 PM, Bjørn Ellingsen bjorn.elling...@osloclearing.no wrote: Using Camel 2.14.0, I'm experiencing the exact same situation as described in this old Jira issue: