Re: how to test the restlet service without startup web containner manually

2013-10-28 Thread Willem jiang
Hi, How about use HttpUnit[1] to start a web container and using Spring to load the camel context? [1]http://httpunit.sourceforge.net/ -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http

how to test the restlet service without startup web containner manually

2013-10-28 Thread CamelTyro
Hello I met a problem when testing the restlet service, I config my restlet service by adding the following snippet in web.xml: RestletServlet org.restlet.ext.spring.SpringServerServlet org.restlet.component RestletComponent

Re: Camel Splitter slowness problem

2013-10-28 Thread alexey-s
Use cache JAXBContext or Marshaller/Unmarshaller in local beans. Sample: private SoftReference refUnmarshaller; private Unmarshaller getUnmarshaller() throws JAXBException { Unmarshaller um = refUnmarshaller != null ? refUnmarshaller.get() : null; if(um == null) { JAXBContext jaxbC

Re: how to define/use multiple properties file in a camel route

2013-10-28 Thread javakurious
Thanks again ! Vineet -- View this message in context: http://camel.465427.n5.nabble.com/how-to-define-use-multiple-properties-file-in-a-camel-route-tp5742326p5742331.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: how to define/use multiple properties file in a camel route

2013-10-28 Thread alexey-s
You can specify multiple resources, separated by commas. Aleksey -- View this message in context: http://camel.465427.n5.nabble.com/how-to-define-use-multiple-properties-file-in-a-camel-route-tp5742326p5742330.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Performance degradation on consumer side when switching Camel from 2.11.0 to 2.12.1v

2013-10-28 Thread Raul Kripalani
Hello, The code base of the camel-jms component hasn't varied considerably [1] and I don't outright see any cause why this component would be the culprit of the slowdown. I did spot a change in the JmsHeaderFilterStrategy to introduce the includeAllJMSXProperties option. But this defaults to fals

Re: how to define/use multiple properties file in a camel route

2013-10-28 Thread Claus Ibsen
No only one and it should have id="properties" On Mon, Oct 28, 2013 at 7:35 PM, javakurious wrote: > Hello, > > Can I define multiple properties file to be used in camel configuration ? > > class="org.apache.camel.component.properties.PropertiesComponent"> > value="classpath:META-IN

Re: HL7 v3

2013-10-28 Thread gperes
Hi All, To further Christian's comments... There are specific jurisdictions (e.g. Canada) that have a finitely bounded definitions for HL7v3 based messaging models. In fact, Infoway publishes an open source implementation of the pan-Canadian implementation at http://infocentral.infoway-inforoute.

how to define/use multiple properties file in a camel route

2013-10-28 Thread javakurious
Hello, Can I define multiple properties file to be used in camel configuration ? The id with "properties" work fine, but config is not being resolved. I am using camel. 2.12.1 Vineet -- View this message in context: http://camel.465427.n5.nabble.com

Re: capacity of seda/vm with multipleConsumers=true?

2013-10-28 Thread gquintana
The answer I is: before the first reader takes the message. And again it's not related to multiple consumers. Gerald -- View this message in context: http://camel.465427.n5.nabble.com/capacity-of-seda-vm-with-multipleConsumers-true-tp5742266p5742323.html Sent from the Camel - Users mailing list

error handler for a seda producer doesn't work?

2013-10-28 Thread Keith Freeman
I'm building my route like this: //context.setTracing(true); errorHandler(loggingErrorHandler("whatever").level(LoggingLevel.ERROR)); from("direct:start").log("start: ${body}").to("seda:seda1?size=2&blockWhenFull=false").log("after: ${body}"); When I run it and send it 3 messages

Re: HTTP Basic Authentication

2013-10-28 Thread martin11
Hi Christian, I tried to use HTTP auth options: .to("http://{{server}}:{{port}}/{{address}}?authMethod=Basic&authUsername={{user}}&authPassword={{password}}";) But it fails again: INFO - Basic authentication scheme selected DEBUG - Took 1889 millis to send to: Endpoint[http://172.24.40.110:598

Re: Performance degradation on consumer side when switching Camel from 2.11.0 to 2.12.1v

2013-10-28 Thread marioradev
Hi, More details about the scenario. We are creating message only once and sent it 50 times. We have an emitter which route is configured from a vm channel to JMS topic. Consumer is receiving messages from this JMS topic. In the original test, emitting is configured with concurrentConsumers=30.

Re: any way to turn off a timer?

2013-10-28 Thread Claus Ibsen
Its not as easy but you would have use the camel api from camel context to get hold of the timer consumer and stop it manually. On Mon, Oct 28, 2013 at 3:21 PM, Keith Freeman <8fo...@gmail.com> wrote: > Thanks, but that won't work because it's a single route with 2 inputs: a > timer and a seda q

Re: capacity of seda/vm with multipleConsumers=true?

2013-10-28 Thread Claus Ibsen
I suggest to study the source code. On Mon, Oct 28, 2013 at 3:32 PM, Keith Freeman <8fo...@gmail.com> wrote: > Ok, but I don't think that answers the question. Say I have one route > putting things in the queue, and 3 other (parallel) routes reading the > messages. All 3 get each message, but w

Re: capacity of seda/vm with multipleConsumers=true?

2013-10-28 Thread Keith Freeman
Ok, but I don't think that answers the question. Say I have one route putting things in the queue, and 3 other (parallel) routes reading the messages. All 3 get each message, but when does Camel remove the message from the queue? * after at least 1 of the readers takes the message * after

Re: any way to turn off a timer?

2013-10-28 Thread Keith Freeman
Thanks, but that won't work because it's a single route with 2 inputs: a timer and a seda queue. So if I stop the route, I won't get the seda messages any more. On 10/28/2013 01:21 AM, Willem jiang wrote: I think the best way to turn off the timer is to stop the timer route. As you just send

Re: Including newlines towards stream/file endpoint

2013-10-28 Thread Claus Ibsen
Use the content enricher eip and append the new line to the message before sending to the stream endpoint. On Mon, Oct 28, 2013 at 2:53 PM, Robert James Liguori wrote: > How would one add a newline for each message being sent through this route? > > > > > > > > Thanks, > Robert -- Cla

Camel Splitter slowness problem

2013-10-28 Thread djanand
Hi People, I have been working on Splitter along with Camel bindy & JaxB. The concept being to split and stream the file one line at a time from a csv, convert the csv line into bindy object , and then marshall each of the Java object to XML(using JaxB processors). This mashalled XML line is append

Including newlines towards stream/file endpoint

2013-10-28 Thread Robert James Liguori
How would one add a newline for each message being sent through this route?     Thanks, Robert

Re: FTP over Proxy

2013-10-28 Thread Claus Ibsen
Hi Good idea about that setProperties in default endpoint. I logged a couple of tickets https://issues.apache.org/jira/browse/CAMEL-6907 https://issues.apache.org/jira/browse/CAMEL-6908 On Fri, Oct 25, 2013 at 5:30 AM, alexey-s wrote: > Hi > > The change is very small > > DefaultComponent objec

Re: capacity of seda/vm with multipleConsumers=true?

2013-10-28 Thread gquintana
As it's a LinkedBlockingQueue, the messages are read using BlockingQueue#poll method, then whatever the result of the processing may be, the messages has been picked. I think the multipleConsumers acts like the multicast processor, you could replace SED

Re: camel-cxf and activemq example

2013-10-28 Thread Claus Ibsen
Hi You are using fabric to manage your containers, so the intention is to define what you want running/installed on your containers using fabric profiles. So you need to add the example to the profile, and then fabric will install it in the container(s) automatic. If you are not using Fabric the

Re: camel-cxf and activemq example

2013-10-28 Thread harry
Thanks for the response. I am trying rider-auto-osgi example.but while adding url to local maven repository I am getting following exception. target-profile instead. See fabric:profile-edit --help for more information. JBossFuse:karaf@root> features:addUrl mvn:org.fusesource.examples/rider-auto-co

Re: a question on servlet component

2013-10-28 Thread Willem jiang
The camel route define just pass the response without changing any thing. You can use setHeader DSL to set the content-type to workaround it if you don’t want to change the jsp page. http://192.168.81.1:8080/ext/externalApp?bridgeEndpoint=true"/> http://www.redhat.com Blog: http://willemjiang.b

Re: SAXParseException due to invalid characters in cxf endpoint response

2013-10-28 Thread Willem jiang
It is hard the get to know the key of issue without knowing the route. Can I know if your other environment server default encoding is UTF_8? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) h

Re: any way to turn off a timer?

2013-10-28 Thread Willem jiang
I think the best way to turn off the timer is to stop the timer route. As you just send the message to sera queue so the timer route is decoupled with the seda consumer route. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.bl

Re: Camel File component should not rename file when an exception is thrown

2013-10-28 Thread Claus Ibsen
Hi You need to set shareUnitOfWork=true. See details at http://camel.apache.org/splitter On Mon, Oct 28, 2013 at 7:11 AM, talk2patel86 wrote: > Hi There, > I have camel route configured as below: > > > > uri="file:files/merchant?antInclude={{include-file-type}}&initial