Re: could not display ${out.body} at Log for external soap service provider

2018-12-05 Thread Claus Ibsen
service}}?dataFormat=MESSAGEwsdlURL=wsdl%2Fmyservice.wsdl; > /> > > loggingLevel="INFO" /> > > loggingLevel="INFO" /> -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: how could I get multiple different ProducerTemplate instances with Auto-Configured Producer Templates

2018-12-03 Thread Claus Ibsen
this optimisation to happen on producer template level too (in routes it would do it) On Mon, Dec 3, 2018 at 7:18 PM Claus Ibsen wrote: > > Hi > > No you can use the same template to send to multiple endpoints. > > Just beware that sending to unlimited number of endpoints uris is not

Re: Camel Kafka Consumer KafkaException ignored

2018-12-03 Thread Claus Ibsen
caught in Camel's kafka consumer > and propagated to the global handler where the offset could be committed > > How do I address an issue like this in the future? > > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: how could I get multiple different ProducerTemplate instances with Auto-Configured Producer Templates

2018-12-03 Thread Claus Ibsen
t; private ConsumerTemplate consumerTemplate; > public void processNextInvoice() { > Invoice invoice = consumerTemplate.receiveBody("jms:invoices", > Invoice.class); > ... > producerTemplate.sendBody("netty-http:http://invoicing.com/received/; > + inv

Re: Logging the execution time over multiple routes

2018-12-03 Thread Claus Ibsen
of the payload across > the routes? I was thinking about using a header as it gets preserved over > JMS. > > Any suggestions ? > > Regards, > > Rajith Muditha Attapattu <http://rajith.2rlabs.com/> -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel Quartz thread pool

2018-12-03 Thread Claus Ibsen
> prohibited. If you have received this e-mail in error, please notify the > sender by replying to this message and delete this e-mail immediately. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Quartz resuming outdated trigger after becoming master

2018-12-03 Thread Claus Ibsen
t; quartz2://job/all?cron=0+15+11+%3F+*+MON-FRI > 2018-11-13 09:49:28,259 INFO > [DefaultQuartzScheduler-camel-1_Worker-4] leader-selection: Started > route quartz2://job/all?cron=0+15+11+?+*+MON-FRI > > Kind regards, > Den -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: dealing with exceptions in onExceptions definitions

2018-12-03 Thread Claus Ibsen
.to(direct:logerrors) > .end() > .onException(IgnoredException.class) //saves the POJO and > logs the error > .handled(true) > .process().body(Pojo.class, processor::update) // > throws UpdateException > .to(d

Re: Creating a subscription between an AWS SNS Topic and an AWS SQS Queue

2018-12-03 Thread Claus Ibsen
Queues with Camel. > But I am not able to see a way to create a subscription between an SNS topic > and SQS Queue. Is there a way to accomplish this with Camel that I’m just > missing? -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Retrieving time taken to invoke a remote endpoint

2018-12-01 Thread Claus Ibsen
> > > Any guidance is much appreciated. > > > > Regards, > > > > Rajith <http://rajith.2rlabs.com/> > > > > -- > Zoran Regvart -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Feedback on Deprecating the Camel Maven Archetypes

2018-11-29 Thread Claus Ibsen
Hi Keep the feedback going. Its good to hear that they some of these archetypes are in use. We could maybe keep the most used, and the ones to create custom component, data format etc. On Wed, Nov 28, 2018 at 5:21 PM Claus Ibsen wrote: > > Hi > > The Camel team is considering

Re: readLockLoggingLevel File Component

2018-11-28 Thread Claus Ibsen
fy the sender immediately and destroy this e-mail. Any > > unauthorised copying, disclosure or distribution of the material in this > > e-mail is strictly forbidden. > > > > -- > Zoran Regvart -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Feedback on Deprecating the Camel Maven Archetypes

2018-11-28 Thread Claus Ibsen
community users about your point of view. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: camel toD and https4 in 2.22.1

2018-11-06 Thread Claus Ibsen
to: Expected scheme-specific > part at index 7: https4: > > is this the same issue as earlier, or is there a different syntax to follow? -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: test unit a processor with an embedded autowired bean

2018-11-05 Thread Claus Ibsen
> }; > } > > } > > innogy SE > Vorsitzender des Aufsichtsrates: Dr. Erhard Schipporeit > Vorstand: Uwe Tigges (Vorsitzender), Dr. Hans Buenting, > Dr. Bernhard Guenther, Arno Hahn, Martin Herrmann, Hildegard Mueller > Sitz der Gesellschaft: Essen, Eingetragen beim Amtsgericht Essen, > Handelsregister-Nr. HRB 27091, USt-IdNr. DE304171711 -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: test unit a processor with an embedded autowired bean

2018-11-05 Thread Claus Ibsen
t.bind("messageInformationService", new > MessageInformationServiceImpl()); > return context; > } > > > @Override > protected RouteBuilder createRouteBuilder() throws Exception { > return new RouteBuilder() { > @Override > public void configure() throws Exception { > from("direct:start").process(new > GenerateCertificate()).to("mock:result"); > } > }; > } > > } -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: [HEADS UP] Camel K is here!

2018-10-17 Thread Claus Ibsen
/status/1051872786946363392 > Article: https://www.nicolaferraro.me/2018/10/15/introducing-camel-k/ > Home: https://github.com/apache/camel-k > > Nicola -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Going from ‘camel-rabbitmq’ to custom messaging class

2018-10-09 Thread Claus Ibsen
ctory, and should I > be looking at the ‘amqp’ component or ‘jms’ component - or, since it really > is a custom thing, refer to it using ‘bean’ in my endpoints? > > Thank you. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: : No CamelContext defined yet so cannot inject into bean: or

2018-10-09 Thread Claus Ibsen
ter.jaxb.FallbackTypeConverter* > > *Then I add **CamelContext camelContext as below shown, but it does not > help, still have same warning message* > > *Any idea or suggestion? * > > *@SpringBootApplication* > *public class SpringbootCameApplication {* > > > *

Re: Spring Bean init vs Camel Context Running status

2018-09-28 Thread Claus Ibsen
t my application context i have an error because apache camel > route *seda://sendNotify* isn't still deployed jet > > Can i have a method to known when spring camel context is running out? > > I suppose to use another spring bean and insert it into depends-on bean > attribute.

Re: Usage of readLockMinAge

2018-09-27 Thread Claus Ibsen
lers configured for the > same root directory with a custom filter that filters out specific > subdirectories for each poller. In this way the 3000 subdirectories are > divided logically among the pollers. > > > > On Thu, Sep 27, 2018 at 6:48 PM Claus Ibsen wrote: > > > H

Re: Usage of readLockMinAge

2018-09-27 Thread Claus Ibsen
d be added for > FileChangedExclusiveReadLockStrategy when readLockMinAge is used. > > > Please give your suggestions. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: How to BindyFixedLengthDataFormat for complex pojos ?

2018-09-26 Thread Claus Ibsen
ler trailer; > > .. > > } > > > Any hints are more than welcome! -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: how to write two logs with one method by JAVADSL

2018-09-25 Thread Claus Ibsen
quot;xquery:myxquery.xq") > .log("## Monitoring XQuery Parsed Message > ##").to("log:?level=INFO=true") > .to("file:outputdir"); > > More over: it seems i could not reply on the post, even my own post, is > any setting mistake? --

Re: Does Camel-sftp (or JSCH) supports Dual Authentication?

2018-09-20 Thread Claus Ibsen
e Camel > preferredAuthentications) --> > https://access.redhat.com/solutions/639713 > [3] - > https://stackoverflow.com/questions/16870073/jsch-sftp-login-using-two-factor-authentication/16871157 > > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Help with Splitter/Aggregator-like behavior

2018-09-20 Thread Claus Ibsen
e above: > > > It needs to aggregate "packages" of data until it determines it has a full > "frame". > Then it bundles all the package payloads into a single, big message. > When a frame is not full, data does not flow to the rest of the route. > When the fram

Re: seda default queue size

2018-09-19 Thread Claus Ibsen
Hi I have fixed the docs On Wed, Sep 19, 2018 at 12:50 PM Claus Ibsen wrote: > > Hi > > Its this ticket about the 1000 as new default size > https://issues.apache.org/jira/browse/CAMEL-12542 > On Wed, Sep 19, 2018 at 12:48 PM Claus Ibsen wrote: > > > > Hi > >

Re: OSGI component not in Camel registry

2018-09-19 Thread Claus Ibsen
that is correct. For DS then there is camel-scr but its deprecated and not recommended to be used. As said we only support OSGi Blueprint out of the box. For DS you can build together your own Camel bootstrap via DS. > Regards, > > François Papon > fpa...@apache.org > > Le 19/09/2018 à 14:42

Re: file endpoint to xquery problem

2018-09-19 Thread Claus Ibsen
able $myTestRequest as element(ns:MyTestRequest) external; > xf:convert_To_InternalRequest($myTestRequest) -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: seda default queue size

2018-09-19 Thread Claus Ibsen
Hi Its this ticket about the 1000 as new default size https://issues.apache.org/jira/browse/CAMEL-12542 On Wed, Sep 19, 2018 at 12:48 PM Claus Ibsen wrote: > > Hi > > In the beginning there was only one size you had to set per endpoint. > So later we added a default size on the c

Re: seda default queue size

2018-09-19 Thread Claus Ibsen
lt value of queueSize > option. Source code of SedaEndpoint: > > Integer size = getSize() == Integer.MAX_VALUE ? null : getSize(); > > Why there are two size options with different default values? > > Dan -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: OSGI component not in Camel registry

2018-09-19 Thread Claus Ibsen
ither using the wrong annotation or missing a step. > > Is there an example around this? Wondering what I'm missing. > > Regards, > > Rajith Muditha Attapattu <http://rajith.2rlabs.com/> -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: camel-mail validation process

2018-09-18 Thread Claus Ibsen
omponent/mail/MailConsumer.java > > At the end of the retrieveMessages method you can see a loop that scans the > retrieved messages, which is genetaring the previously described behaviour. > > Can anybody help? > > -- > Marco Pampaloni -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: how to transform soap jaxb/pojo playload to file in apache camel

2018-09-17 Thread Claus Ibsen
7c5] at > org.apache.camel.impl.MessageSupport.getMandatoryBody(MessageSupport.java:117) > ~[camel-core-2.22.0.jar:2.22.0] at > org.apache.camel.component.file.FileOperations.storeFile(FileOperations.java:333) > ~[camel-core-2.22.0.jar:2.22.0] ... 40 common frames omitted -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: seda logs "Queue full" Exception

2018-09-11 Thread Claus Ibsen
process(SedaProducer.java:166) > > I'd expect that if queue is full nothing happens and all threads would > be just waiting. So why the exception is logged? Does seda component > internally ignore it or do I have to handle it in some way in my > route? > > Dan -- Claus Ibsen -

Re: New processor method

2018-09-04 Thread Claus Ibsen
without making any copies or disclosing it to a third person. > ______ -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel Tracer

2018-08-30 Thread Claus Ibsen
I didn't even see tracing logs. > What is the best way to do this? If tracer is deprecated, which interceptor > should be used? > That was really helpful to get whatever you request and get response > through routes. > Thanks, > Best regards, > Ercan CANLIER -- Claus Ibse

Re: CXF endpoint getting resolved at the time of initialization of the route

2018-08-29 Thread Claus Ibsen
Hi Its just to use toD instead of to On Wed, Aug 29, 2018 at 3:39 PM Hemant Pekhale wrote: > > Hi Calus, > > thanks for your reply. > can you show a sample code here. I am using java DSLProcessor. So wanted to > have a look at the sample. > > On Wed, Aug 29, 2018 at 6:

Re: CXF endpoint getting resolved at the time of initialization of the route

2018-08-29 Thread Claus Ibsen
t > accessible but I want this to happen when a message is actually reach to > the cxf. Is there any way to prevent this. I red somewhere > that ignoreInvalidEndpoint is an option but I am not sure if it also > available for CXF or http. > > Can someone please help

Re: SOAP request causing null namespace URI in SimpleNsStreamWriter camel-cxf/woodstox

2018-08-27 Thread Claus Ibsen
stxInputFactory.createSR(WstxInputFactory.java:633) > [woodstox-core-5.0.3.jar:5.0.3] >at > com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:647) > [woodstox-core-5.0.3.jar:5.0.3] >at > com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:334) > [woodstox-core-5.0.3.jar:5.0.3] >at > __redirected.__XMLInputFactory.createXMLStreamReader(__XMLInputFactory.java:139) > [jboss-modules.jar:1.6.4.Final-redhat-1] >at > org.apache.camel.converter.jaxp.StaxConverter.createXMLStreamReader(StaxConverter.java:170) > [camel-core-2.22.0.jar:2.22.0] >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [rt.jar:1.8.0_144] >at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > [rt.jar:1.8.0_144] >at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > [rt.jar:1.8.0_144] >at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_144] >at > org.apache.camel.util.ObjectHelper.invokeMethod(ObjectHelper.java:1405) > [camel-core-2.22.0.jar:2.22.0] >... 70 more > > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel supported servicemix version

2018-08-27 Thread Claus Ibsen
; > Thanks and Regards, > Deepthi > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel with Rabbitmq: messages in temp reply queue not being acked

2018-08-22 Thread Claus Ibsen
; If you're happy with the change could you please merge it up and let me know > which release will have the code in it? > Also, if there is anything more I need to do with the fix/Pull Request please > let me know. > > > Thanks, > Valdis > > -Original Message- >

Re: Enabling transactions for sjms-batch [Was: Transactions (Multiple JMS Consumers) and Aggregation]

2018-08-22 Thread Claus Ibsen
With sjms, we could do >> Queue --> sjms (with batching) ---> iterate over list to do validation --> >> transform to SAP payload ---> SAP. >> | >> > >> failed messages sent to error queue. >> >> Since sjms sup

Re: Camel with Rabbitmq: messages in temp reply queue not being acked

2018-08-22 Thread Claus Ibsen
user here). > For the time being we'll be using the local snapshot of the camel-rabbitmq > component and once the fix has been promoted to a general release we'll then > change over to that. > > > Thanks, > Valdis > > -Original Message- > From: Claus Ibsen [m

Re: NoSuchMethodError RemoteFileEndpoint isPreSort

2018-08-21 Thread Claus Ibsen
ail enthält vertrauliche Informationen und ist nur für die Personen > bestimmt, an welche sie gerichtet ist. > Sollten Sie nicht der bestimmungsgemäße Empfänger sein, bitten wir Sie, uns > hiervon unverzüglich zu unterrichten und die E-Mail zu vernichten. > Wir weisen darauf

Re: Run route DSL without any bootstap code

2018-08-21 Thread Claus Ibsen
o? > I tried to learn code of Main.java but I see only -r option to load > routes from compiled classes, not from files with XML DSL or so. Maybe > direct using XML DSL without any bootstrap code possible in another > way which I can't find? > > -- > WBR, > Eugene Prokopiev --

Re: Camel with Rabbitmq: messages in temp reply queue not being acked

2018-08-21 Thread Claus Ibsen
blob/master/CONTRIBUTING.md > > Thanks, > Valdis > > -Original Message- > From: Claus Ibsen [mailto:claus.ib...@gmail.com] > Sent: 21 August 2018 08:31 > To: users@camel.apache.org > Subject: Re: Camel with Rabbitmq: messages in temp reply queue not being acked > >

Re: Camel with Rabbitmq: messages in temp reply queue not being acked

2018-08-21 Thread Claus Ibsen
us.COMPLETED)).to(outputEmailEndpoint, > outputArchiveEndpoint) > > I'd also like to be sending the correct response status to the REST client > calling this service and at the moment that doesn't quite work too well as > the un-acked messages start blocking the route or the

Re: How to disable a servlet?

2018-08-20 Thread Claus Ibsen
rt up the 2 apps and write/read to/from the bus. > > > But for my own education, I would *still * like to know how I can disable > that 2nd servlet, esp. since it's not needed. > > > Thank you very much. > > > Ron -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: ZIP aggregation and persistence

2018-08-20 Thread Claus Ibsen
gregationStrategy-with-persistent-store-tt5782458.html > > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: How to override dlqDeliveryFailureCause

2018-08-17 Thread Claus Ibsen
uot;> > > > > > > > > class="org.springframework.jms.connection.JmsTransactionManager"> > > > > class="org.apache.activemq.RedeliveryPolicy"> > > > > > > > > > > Version of AMQ: 5.15.2 > Version of Camel: 2.20.1 > > Thank you. > Martin -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Replacement for Tracer?

2018-08-13 Thread Claus Ibsen
Hi BacklogTracer or some better implementation we will do in the future (Camel 3 etc). On Mon, Aug 13, 2018 at 6:03 PM, Quinn Stevenson wrote: > The Tracer is marked as deprecated, but I can’t seem to find anything on a > replacement. What will be replacing Tracer? > > >

Re: Simple jUnit test is not making REST login call, it works normally perfectly.

2018-08-10 Thread Claus Ibsen
> @Produce(uri = "direct:login") > ProducerTemplate directLogin; > > @SuppressWarnings("rawtypes") > @Test > public void loginToSugarCRM() throws Exception { > > Exchange result = directLogin.send((exchange) -> { > exchange.getIn().setBody("

Re: Camel lock gets acquired on files but not picked sometime

2018-08-06 Thread Claus Ibsen
Also you can use "done" files, eg in the VB script you write a 2nd empty file with a special name, that tells Camel that the other file is done being copied and ready. There is some options on Camel file endpoint you can configure for that also. On Mon, Aug 6, 2018 at 3:54 PM, Claus Ib

Re: Camel lock gets acquired on files but not picked sometime

2018-08-06 Thread Claus Ibsen
trials. > > Thanks! > > > On Mon, Aug 6, 2018 at 7:10 PM, Claus Ibsen wrote: > >> Hi >> >> Are you able to modify the VB script so it copies the file using a >> temporary name and then rename the file when the copy is done. >> >> It sounds a

Re: Problem writing camel logs with log4j in a spring-boot application

2018-08-06 Thread Claus Ibsen
On Mon, Aug 6, 2018 at 3:40 PM, RavinderReddy k wrote: > Simple solution is use logback.xml file include in your spring boot > application that's all. > Yeah SB uses logback as the logger impl by default. > On Mon, Aug 6, 2018, 9:37 AM Claus Ibsen wrote: > >> Hi &g

Re: Camel lock gets acquired on files but not picked sometime

2018-08-06 Thread Claus Ibsen
not occur for the first file but it occurs randomly after > processing number of files. > > This happens on server. I tried to reproduce this issue locally but no luck. > > Does anybody have idea about it? > > Thanks! -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Problem writing camel logs with log4j in a spring-boot application

2018-08-06 Thread Claus Ibsen
yy-MM-dd > > # Configure the layout for the log file > log4j.appender.rollingerrorlog.layout=org.apache.log4j.PatternLayout > log4j.appender.rollingerrorlog.layout.ConversionPattern=(%d) %p %t %c - %m%n > > > *My Camel route: * > > > > > > > > >

Re: Count of number errors during split processed for reporting

2018-08-02 Thread Claus Ibsen
eId("OneContent > Route") > > .onCompletion().modeAfterConsumer() > .log(“FAILURE COUNT:”+failCount); >.end() > > .to("bean:getShare") > .unmarshal(csv) >

Re: Java DSL route now needs a MS SQL .to( How do I declare connection info?

2018-08-01 Thread Claus Ibsen
Oh and use psoft-sql as the component name instead of sql, eg to("psoft-sql:") On Wed, Aug 1, 2018 at 9:24 PM, Claus Ibsen wrote: > Hi > > You have set the datasource already on the sql component, so in your > Camel sql endpoint you should not have ?dataSource=# -

Re: Java DSL route now needs a MS SQL .to( How do I declare connection info?

2018-08-01 Thread Claus Ibsen
k routes written using the Spring XML are easier to >>> read than routes written the Java DSL, but that’s just me. >>> >>> If you could post you’re Spring XML that you’re trying to translate, I’m >>> sure we can help with that. >>> >>>> On

Re: Transactions (Multiple JMS Consumers) and Aggregation

2018-08-01 Thread Claus Ibsen
--> > <--tx---> > I'm assuming this is why a persistent aggregator is recommend to avoid > loosing messages. > > The sjms seems like a better fit. I will look into it. > Thank you! > > On Wed, Aug 1, 2018 at 3:32 AM, Claus Ibsen wrote: > >> Hi &

Re: Transactions (Multiple JMS Consumers) and Aggregation

2018-08-01 Thread Claus Ibsen
of the last message (for each > session) and call acknowledge on each message. > But not sure how to identify that. > > Regards, > > Rajith Muditha Attapattu <http://rajith.2rlabs.com/> -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Concurrent consumers from SEDA to CXF

2018-08-01 Thread Claus Ibsen
hat help you better understand the issue > I am facing. If I have failed in doing so, please bear with me and try to > ask differently. > > kind regards > Miroslav Borský > > > -- Původní e-mail -- > Od: Claus Ibsen > Komu: users@camel.apache.org &

Re: Re: Question for CamelSpringDelegatingTestContextLoader'/Java-Config

2018-07-31 Thread Claus Ibsen
l-spring-javaconfig/src/test/java/org/apache/camel/spring/javaconfig/BeanJavaConfigTest.java > ). > > Best regards... > > > > > > Von:Claus Ibsen > An: users@camel.apache.org > Datum: 30.07.2018 17:05 > Betreff:Re: Question for > CamelSpringDel

Re: swagger.json generation without host set to 0.0.0.0

2018-07-30 Thread Claus Ibsen
on startup since two different clients might use different > hostnames or even ports to call the same service. > > Just my €0.02 > > Best regards > Pontus Ullgren > > On Tue, 17 Jul 2018, 21:47 Claus Ibsen, wrote: > >> Hi >> >> We can possible look at

Re: How do I sync camel route processing with Java application?

2018-07-30 Thread Claus Ibsen
ng > and clobbers it. I need some way to have my injector logic wait until Camel > intercepts the data of the prior test case, processes it and forwards it on > to the target. > > > > I’m looking for suggestions on how I might go about that. I don’t know > enough about Camel to know what (if any) mechanisms are available that could > help. > > > > Thanks, > > Joe Gagnon -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Question for CamelSpringDelegatingTestContextLoader'/Java-Config

2018-07-30 Thread Claus Ibsen
r und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die > unbefugte Weitergabe dieser Mail sind nicht gestattet. > > This e-mail may contain confidential and / or privileged information. If you > are not the intended recipient (or have received this e-mail in error) > please notify the sender immediately and destroy this e-mail. Any > unauthorised copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Concurrent consumers from SEDA to CXF

2018-07-30 Thread Claus Ibsen
he limit of > concurrentConsumers. > > Questions: > What is the correct behavior for the route? > If my configuration is incorrect, how can I achieve my target behavior? > > The camel version used is 2.20. > > If someone would be able to help me, and explain what I did wrong, I would > very much appreciate it. > > thank you for help > kind regards > Miroslav Borský -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Strange results w/ Bindy (header, list, footer)

2018-07-30 Thread Claus Ibsen
ency1;00.01;1 > > BODY > > FOOTER;agency1;;1 > > > > but it actually is > > > > HEADER;agency1;00.01;1 > > BODY;agency1;;1 > > FOOTER;agency1;00.01;1 > > > > Test-Case: > > > > https://github.com/c9pr3/bindy-bug-test > > > > Any help appreciated! > > > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: swagger.json generation without host set to 0.0.0.0

2018-07-17 Thread Claus Ibsen
Torres Coelho Soares >> >> >> On Thu, Jul 12, 2018 at 4:55 PM Martin Lichtin >> wrote: >>> >>> Anyone know how I can configure so the generated >>> swagger.json does not set host: "0.0.0.0"? >>> >>> With this 0.0.0.0 I cannot, for example, import the Swagger directly into >>> Postman and make calls to the API. >>> https://swagger.io/docs/specification/2-0/api-host-and-base-path/ says >>> the "host" can be omitted for a more dynamic association. >>> >>> > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Using custom prepareStatementStrategy

2018-07-15 Thread Claus Ibsen
e #strategia > > 2018-07-03 12:44 GMT+02:00 Claus Ibsen : > >> Hi >> >> Use # syntax, see for example the unit test class >> SqlProducerAlwaysPopulateStatementTest >> >> On Sun, Jul 1, 2018 at 3:51 PM, bukaj_s wrote: >> > Hello. >>

Re: Camel Kafka integration with Spring Kafka

2018-07-09 Thread Claus Ibsen
ask if there are any plans to support integration of Camel > Kafka with Spring Kafka similar to what is supported for camel-jms and > spring-jms. > > Mariana -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Thread issue with RabbitMQ component

2018-07-05 Thread Claus Ibsen
this component as part of the multicast and not sure > where reply-to attribute is added i.e. as part of multicast code or in > rabbitmq component. > — > Regards, > Nataraj Basappa > >> On 3 Jul 2018, at 11:47, Claus Ibsen wrote: >> >> Hi >> >> What version

Re: Dash in headers as named parameters

2018-07-03 Thread Claus Ibsen
de headers from http requests which contains dashes it fails. > Thanks > > On Tue, Jul 3, 2018, 12:43 Claus Ibsen wrote: > >> Hi >> >> Can you tell a bit more where you use those headers? Camel has no >> restrictions on header names. Its the protocol of th

Re: Spring boot gives null pointer in xml based camel configutaions

2018-07-03 Thread Claus Ibsen
y to migrate this is maybe to try to remove the camel context parts, > and be left with the xml-based routes and follow the pattern in "Adding XML > routes" as described above? > > > Den ons. 27. jun. 2018 kl. 17:18 skrev Doug Douglass < > douglass.d...@gmail.com>: >

Re: memory leak in Camel

2018-07-03 Thread Claus Ibsen
Friday and did not have any problems. > The original software had run into the OutOfMemoryException after only a > couple of minutes. > > This proves that I must have done something wrong in my usage of Apache Camel. > > Kind regards, > Christian > > -Ursprüngliche Nachricht

Re: Thread issue with RabbitMQ component

2018-07-03 Thread Claus Ibsen
econd issue I think is that consumer (dynamic reply queue) hangs around > and hogs the thread. Not sure how to close it as the dynamic queues are > created as part of Request/Response called from Camel multicast. > — > Regards, > Nataraj Basappa > -- Claus Ibsen --

Re: Using custom prepareStatementStrategy

2018-07-03 Thread Claus Ibsen
mStrategy is not working > for me. > Thanks > Best regards > Bukaj -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Dash in headers as named parameters

2018-07-03 Thread Claus Ibsen
meters? > If so, why is that? Dashes are heavily used in our naming convention for > headers. > Thanks for clarification. > Best regards > Bukaj -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: camel-rabbit exclusive consumer

2018-07-03 Thread Claus Ibsen
ring queue, > boolean noAck, > java.lang.String consumerTag, > boolean noLocal, > boolean exclusive, > Consumer callback) > > Is there an option I have ove

Re: Route statistics not updated on Exception

2018-07-03 Thread Claus Ibsen
t;context" trace="false" > useMDCLogging="false" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/ > "> > > > > <some logic..> > > > Camel version: 2.17.6 > > Operating system: Linux Ubuntu 16.04, Windows 8 > Java 8, various versions > > Thank you, > Martin -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: memory leak in Camel

2018-07-03 Thread Claus Ibsen
- > innogy SE > Vorsitzender des Aufsichtsrates: Dr. Erhard Schipporeit > Vorstand: Uwe Tigges (Vorsitzender), Dr. Hans Buenting, > Dr. Bernhard Guenther, Arno Hahn, Martin Herrmann, Hildegard Mueller > Sitz der Gesellschaft: Essen, Eingetrage

Re: Camel Swagger Implementation

2018-07-03 Thread Claus Ibsen
> *Fuse Version : 6.3* >> > *Camel Version : 2.17.0.redhat-630187* >> > >> > *Rest Configuration :* >> > > >apiContextPath="api-docs" bindingMode="json" >> >component="jetty" contextPath="api" >> >host="127.0.0.1"

Re: Spring boot gives null pointer in xml based camel configutaions

2018-06-27 Thread Claus Ibsen
amel.spring.CamelBeanPostProcessor.postProcessBeforeInitialization(CamelBeanPostProcessor.java:153) > ... 197 more > [INFO] Started > ServerConnector@6847dfe8{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}<mailto:ServerConnector@6847dfe8%7bHTTP/1.1,%5bhttp/1.1%5d%7d%7b0.0.0.0:8080%7d> > [IN

Camel tooling for code quality checks and anti-patterns

2018-06-26 Thread Claus Ibsen
can let CI/CD jobs execute these as part of their pipeline processes etc. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Spring boot gives null pointer in xml based camel configutaions

2018-06-26 Thread Claus Ibsen
http/1.1]}{0.0.0.0:8080}<mailto:ServerConnector@6847dfe8%7bHTTP/1.1,%5bhttp/1.1%5d%7d%7b0.0.0.0:8080%7d> > [INFO] Started @96732ms > [INFO] Started Jetty Server > > Process finished with exit code -1 > > > Can please suggest me is there any problem with spring boot and this xml > based configurations ? or do we need to take care something else as well ?? > > I have tried number of ways to fix this but nothing works .. so I decided to > ask you , sorry for trouble , hope I will get some suggestions here. > > Also I tried to subscribe for your groups but that failed. > > > Regards, > Mohit Sharma > > > > Sensitivity: Internal -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Split with regex and group not working

2018-06-26 Thread Claus Ibsen
t; have received it in error please contact the sender immediately and delete >> the e-mail. We endeavour to exclude viruses from our emails, but it is your >> responsibility to check this email for viruses. ITQ Business Solutions >> (Pty) Ltd accepts no liability or responsibility of wh

Re: Multiple concurrent SFTP file downloads

2018-06-26 Thread Claus Ibsen
nnects from the > remote server, which the SFTP server owners dislike. > > Is there another existing component or feature that would support the > multiple concurrent downloads use case, or is this a gap in Camel's > feature list? -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Report Issues: Apache Camel Servlet Component

2018-06-26 Thread Claus Ibsen
dissemination, forwarding, printing or copying of > this email, and/or any action taken in reliance on the contents of this > e-mail is strictly prohibited and may be unlawful. Where permitted by > applicable law, this e-mail and other e-mail communications sent to and from > Cognizant e-mail addresses may be monitored. -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: JdbcMessageIdRepository and SQL Server: schema

2018-06-18 Thread Claus Ibsen
ent please delete the message and > notify the sender. > Any views or opinions presented are solely those of the author and > will not necessarily reflect the views of Meridian Energy. > > > PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING. > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Type converter misbehavior with camel-cxf and camel-mail

2018-06-18 Thread Claus Ibsen
operate and pick the > correct converter? My current workaround is in my preparation of the exchange > just before the rest client is invoked I put the String I need to send into > an Object[] and set that as the new in-message body. Seems a bit of a kluge, > but it allows me to con

Re: How can I check for empty or null string with ValueBuilder?

2018-06-15 Thread Claus Ibsen
pposed to be set as a String, how can I check if it's empty or > null? I can check for empty with exchangeProperty(PROPERTY_NAME).isNull(), > but how can I add the check for an empty string too? -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Simple example of passing an object in from rest to another microservice

2018-06-14 Thread Claus Ibsen
.host("localhost") > .port(8082); > > Candidate c = new Candidate(); > c.setFirstName("Joe"); > c.setLastName("Blow"); > > from("timer://foo?repeatCount=1=5s") > .process(new Processor() { > @Overr

Re: Simple example of passing an object in from rest to another microservice

2018-06-14 Thread Claus Ibsen
; Caused by: org.apache.camel.NoTypeConversionAvailableException: No type >> converter available to convert from type: >> com.rusa.adapter.mobile.candidate.domain.Candidate to the required type: >> java.io.InputStream with value >> com.rusa.adapter.mobile.candidate.domain.Candidate@58af86ed >> >> Any help is most appreciated. >> >> Thanks, >> >> Steve >> >> > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel Mail: MaxMessagesPerPoll vs fetchSize

2018-06-11 Thread Claus Ibsen
rovide an example when which parameter should to be > set? > > > > Thanks in advance. > > Best regards, > > Manuel -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: url/http streaming issue

2018-06-09 Thread Claus Ibsen
Hi I logged a ticket and have a implementation https://issues.apache.org/jira/browse/CAMEL-12566 On Sat, Jun 9, 2018 at 2:16 PM, Claus Ibsen wrote: > Hi > > Setting http headers is not support in camel-stream. You are welcome > to log a JIRA. > > On Sat, Jun 9, 2018 at 1:44

Re: url/http streaming issue

2018-06-09 Thread Claus Ibsen
)..., > but the streaming functionality does not work. It seems that maybe my > request is streamed, but not the response. I can't get any data at all. > > > Am I missing something ? > > Thanks in advance for your help. > > > Nicolas > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: How to use InterceptSendToEndpoint from Java DSL

2018-06-09 Thread Claus Ibsen
quot;).to("direct:queued-Interceptor"); >} > }); > However, the queued-interceptor route was never fired when a message was > posted to activemq. > So I assumed that those interceptors were not acting beyond the context of > the route. > -Doug -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: How to use InterceptSendToEndpoint from Java DSL

2018-06-08 Thread Claus Ibsen
route they use. Attaching it to a specific > route does not accomplish that. > > Perhaps camelContext.addEndpoint() with some InterceptSendToEndpoint > construction? > -Doug -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

<    8   9   10   11   12   13   14   15   16   17   >