Re: npe in camel 2.9.1 validator

2012-03-07 Thread Preben.Asmussen
Found the course of the problem. See https://issues.apache.org/jira/browse/CAMEL-5063 update. /preben -- View this message in context: http://camel.465427.n5.nabble.com/npe-in-camel-2-9-1-validator-tp5540894p5546656.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Propogate CXF Exception to Camel

2012-03-07 Thread Jean-Baptiste Onofré
Hi guys, maybe it doesn't help, but I used two routes like this: from cxf -> to jms from jms -> to cxf and to "transport" the exception from the "to cxf" to the "from cxf", I added the transferException=true on the two JMS endpoints. Regards JB On 03/08/2012 08:32 AM, Willem Jiang wrote: H

Re: Propogate CXF Exception to Camel

2012-03-07 Thread Willem Jiang
Hi Yogesh, What kind of custom interceptor are you using? By adding the synchronous=true parameter, camel-cxf will not use the async invocation which is used by default to invoke the server. On 3/7/12 10:58 PM, ychawla wrote: Hi Aki, I do have a one-way service. I added the 'synchronous=t

Re: Need help to load csv into database

2012-03-07 Thread Willem Jiang
I think you can user the bean to do the below job yourself. You just need to read the message body an split the message, put it into sql parameter and call the jdbc yourself. On Thu Mar 8 06:02:23 2012, brbornia wrote: Hello guys, I'm just start

Re: how to specify which method when calling a direct route?

2012-03-07 Thread Claus Ibsen
Hi What version of Camel are you using? And what does your direct route look like? Setting a header with the key "CamelBeanMethodName" ought to take precedence on the name of the method to invoke. eg the key name is from a constant on Exchange.BEAN_METHOD_NAME You can enable and use the tracer

Re: npe in camel 2.9.1 validator

2012-03-07 Thread Willem.Jiang
If you put the schema into the test/resources directory, it will not be wrapped into the more jar. You may need to add the test jar dependency like this com.example my-artifact test-jar test Willem -- View this message in context: http://camel.465427.n5.nabble.com/npe-in-camel-2-9-1-validator-t

Re: SMTP: sending file binary as attachment corrupted

2012-03-07 Thread _d
Thanks it's working fine, with this code public void process(Exchange ex) throws Exception { { String fileNameWritten = (String) ex.getIn().getHeader( "CamelFilePath", String.class); Str

Re: Activemq for high performance and scalable use.

2012-03-07 Thread Björn Bength
Hi Omar It depends on in what time-span you expect those 25 requests, and what latency you can tolerate. If all your requests are spread over 24 hours, you have no worries at all. You can choose whatever. When you you start getting 25 per hour, you can start thinking about moving your app f

Re: Suspend route; what about the current exchange

2012-03-07 Thread Claus Ibsen
On Wed, Mar 7, 2012 at 11:33 PM, jmh wrote: > Hello, > > suppose I suspend a route starting with a jms consumer. > > My question : is the current exchange also stopped/suspended or is still > processed until it reaches gracefully the end of the route ? > When suspending its the intake of *new* me

Suspend route; what about the current exchange

2012-03-07 Thread jmh
Hello, suppose I suspend a route starting with a jms consumer. My question : is the current exchange also stopped/suspended or is still processed until it reaches gracefully the end of the route ? Thanks for your help Regards -- View this message in context: http://camel.465427.n5.nabble.com/

Re: Apache Camel >> Netty

2012-03-07 Thread sambardar
What i see is that the URL gets screwed in producer template. In the exception you can see URL as netty://tcp://localhost:1521?sync=true whereas it should have been netty:tcp://localhost:1521?sync=true -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-Netty-tp5545

Re: Apache Camel >> Netty

2012-03-07 Thread sambardar
Camel 2.9.0 -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-Netty-tp5545678p5545791.html Sent from the Camel - Users mailing list archive at Nabble.com.

Need help to load csv into database

2012-03-07 Thread brbornia
Hello guys, I'm just starting with camel, so sorry to bother you with a must likely dummy question. I am trying to load a csv file into database with something like this: http://camel.apache.org/schema/spring";> com.test.integration.camel.spring.poc

Re: Processor to xpath

2012-03-07 Thread Claus Ibsen
On Wed, Mar 7, 2012 at 10:48 PM, byoung4877 wrote: > Hi, Please Help!! I'm pretty new to camel so bear that in mind. I'm trying to > inject a header in to a message from a Processor I've implemented. However, > when I run I keep getting this: > >  [Fatal Error] :1:1: Content is not allowed in prol

Processor to xpath

2012-03-07 Thread byoung4877
Hi, Please Help!! I'm pretty new to camel so bear that in mind. I'm trying to inject a header in to a message from a Processor I've implemented. However, when I run I keep getting this: [Fatal Error] :1:1: Content is not allowed in prolog." Below is my camel context: http://camel.apache.org/sc

Re: Apache Camel >> Netty

2012-03-07 Thread Claus Ibsen
Hi What version of Camel are you using? On Wed, Mar 7, 2012 at 10:35 PM, sambardar wrote: > First time Camel User and trying to use Netty Component. I was running some > of the sample code from Netty test in my own classes and got an exception > from this statement. I am looking at it to figure

Apache Camel >> Netty

2012-03-07 Thread sambardar
First time Camel User and trying to use Netty Component. I was running some of the sample code from Netty test in my own classes and got an exception from this statement. I am looking at it to figure out the problem but i do appreciate any help. Poetry response = (Poetry) producerTemplate.requestB

Re: Problem with consumerTemplate and transacted (activeMq) routes

2012-03-07 Thread Claus Ibsen
On Wed, Mar 7, 2012 at 8:06 PM, Babak Vahdat wrote: > Claus, > > Could it be one of the following tickets: > > https://issues.apache.org/jira/browse/AMQ-2611 > https://issues.apache.org/jira/browse/AMQ-1847 > Nice try but it was not one of them. > > Babak > > -- > View this message in context:

Re: Naming of JMX beans

2012-03-07 Thread Claus Ibsen
Hi Yes from Camel 2.10 onwards. See this page http://camel.apache.org/camel-jmx.html#CamelJMX-Managementnamingpattern On Wed, Mar 7, 2012 at 11:31 AM, Alexander Krauss wrote: > Dear list, > > when running in an OSGi container (Karaf), the JMX beans generated for > Camel contexts are prefixed w

how to specify which method when calling a direct route?

2012-03-07 Thread codemonkey73
We've built a small directory of services (POJOs) for which we have built direct to bean routes. They've worked so far when using a ProducerTemplate to call the direct route. To specify the method when using ProducerTemplate, we use requestBodyAndHeader("direct:myService", [methodparameterOrNull]

Re: Problem with consumerTemplate and transacted (activeMq) routes

2012-03-07 Thread Babak Vahdat
Claus, Could it be one of the following tickets: https://issues.apache.org/jira/browse/AMQ-2611 https://issues.apache.org/jira/browse/AMQ-1847 Babak -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-consumerTemplate-and-transacted-activeMq-routes-tp5540796p554521

Re: Propogate CXF Exception to Camel

2012-03-07 Thread Aki Yoshida
Hi Yogesh, This property will affect the invocation behavior at the camel-cxf boundary. In other words, in this case, the call occurs synchronously across this boundary. That could be considered inefficient in some scenarios (e.g., if you are not interested in any errors and you want to just quick

Re: SMTP: sending file binary as attachment corrupted

2012-03-07 Thread ychawla
Hello, I remember I had some issues attaching files so I added a processor that read them directly from the file system. For example: public void addEmailAttachment(Exchange ex) { String fileNameWritten = (String)ex.getIn().getHeader("CamelFileNameProduced");

Re: Propogate CXF Exception to Camel

2012-03-07 Thread ychawla
Hi Aki, I do have a one-way service. I added the 'synchronous=true' to the endpoint and now it is throwing the error without using my custom interceptor. Will setting this attribute affect other behavior of the one-way service? Thanks, Yogesh -- View this message in context: http://camel.46542

Re: Naming of JMX beans

2012-03-07 Thread Łukasz Dywicki
Hey Alex, This is default naming strategy. It will be changed if you will name a context (eg. specify id attribute for camelContext element). Best regards, Lukasz Dywicki -- Code-House http://code-house.org Wiadomość napisana przez Alexander Krauss w dniu 7 mar 2012, o godz. 11:31: > Dear list,

Re: CxfEndpoint and configure interceptor on bus

2012-03-07 Thread Aki Yoshida
Hi Andi, There have been some changes in the wiring between the camel-cxf endpoints and cxf buses recently. Therefore, there may be some combination of the cxf and camel versions that could lead to some issues depending on how they are wired. That's why I was asking for the camel version and if y

Re: CxfEndpoint and configure interceptor on bus

2012-03-07 Thread akuhtz
Hi Aki, Thanks for your reply. The problem was that the interceptor that was defined on the bus was not invoked and even not added to the interceptor chain but this was a stupid configuration error on my side :-( With CXF-2.4.4 it was working if was defined (wrong usage of the "id" attribut

SMTP: sending file binary as attachment corrupted

2012-03-07 Thread _d
Hello, i need to send a binary file (zip file for example) as an attachment via email. when I get the attachment in my mailbox the file is corrupted. *here is my config * as you can see, i set the mime type to application/octet-stream. http://www.springframework.org/schema/beans"; xmln

RE: Activemq for high performance and scalable use.

2012-03-07 Thread Omar Atia
I'm using it in camel-context :). From: Claus Ibsen [claus.ib...@gmail.com] Sent: Wednesday, March 07, 2012 12:29 PM To: users@camel.apache.org Subject: Re: Activemq for high performance and scalable use. Hi This is the mailing list for Apache Camel. Can

Naming of JMX beans

2012-03-07 Thread Alexander Krauss
Dear list, when running in an OSGi container (Karaf), the JMX beans generated for Camel contexts are prefixed with the id of the corresponding bundle. This makes it hard to set up external monitoring tools, since I would have to hard-code the bundle id in their configuration, which breaks on each

Re: Activemq for high performance and scalable use.

2012-03-07 Thread Claus Ibsen
Hi This is the mailing list for Apache Camel. Can you please use the mailing list for Apache ActiveMQ for your AMQ questions. On Wed, Mar 7, 2012 at 8:52 AM, Omar Atia wrote: > Dear Ashwin , > > The XML message size is less than 2000 bytes , we have already four channels > to send messages in

Re: Propogate CXF Exception to Camel

2012-03-07 Thread Aki Yoshida
Hi Yogesh, could it be that your web service call is a oneway operation? If that is the case, you should set the synchronous property to true (...&synchronous=true) for the camel-cxf endpoint to get the transmission error. See http://camel.apache.org/cxf.html for more info. Can you try setting thi

endDoTry() problem

2012-03-07 Thread XiaoPeng Li
Hi, I had some problems when I tried "endDoTry()" in my RouteBuilder. Here are the codes: from("timer://myTimer?period=2000").setBody() .simple("Current time is ${header.firedTime}").doTry() .process(new Processor() {

Re: JMS and transactions

2012-03-07 Thread kafe
Ok it's a good news for me. Thx. -- View this message in context: http://camel.465427.n5.nabble.com/JMS-and-transactions-tp5541630p5543505.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Problem with consumerTemplate and transacted (activeMq) routes

2012-03-07 Thread Christian Müller
Good morning Claus, :o) I had no luck so far. I also tested this route with the latest ActiveMQ 5.5-SNAPSHOT and 5.6-SNAPSHOT versions and it still failed. Best, Christian On Wed, Mar 7, 2012 at 9:06 AM, Claus Ibsen wrote: > Ah a typo, its of course you -> I. > > Christian did you have luck fi

Re: Problem with consumerTemplate and transacted (activeMq) routes

2012-03-07 Thread Claus Ibsen
Ah a typo, its of course you -> I. Christian did you have luck finding the ticket(s)? I remember there was an attachment with a sample unit test that demonstrated the issue. And it was reported a fair long time ago, like 1-2 years. I think it was working in AMQ 5.3 but failed when upgrading to 5.