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

2018-06-27 Thread Doug Douglass
On Wed, Jun 27, 2018 at 12:18 AM Claus Ibsen wrote: > Hi > > Its a bit confusing what you do. Are you really packaging spring-boot > inside a WAR file and then deploying that to Jetty? > If so this is wrong. Spring Boot is a standalone runtime which you > should not embed in others. > While perh

Re: Processed message counters

2018-01-25 Thread Doug Douglass
Similar to Quinn's response, but instead of splunk, we stood up a statsd + graphite server (pretty quick via docker). We're using Spring Boot, so it was natural to use its metric support with a statsd client to push metrics to the server over UDP -- very, very little impact to app performance. Not

Re: is there a convert type for spring xml or simple

2017-08-09 Thread Doug Douglass
On Wed, Aug 9, 2017 at 10:44 AM, GaryLeeMills wrote: > > Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: > '{{groupBy}}' is not a valid value for 'integer'. > Based on this error message, I don't think your problem is type conversion. Instead, I think the property is not getti

Re: ${header.CamelHttpResponseCode} getting lost?

2017-07-12 Thread Doug Douglass
My understanding after reading http://camel.apache.org/http4.html is, if you want to handle all HTTP status response codes yourself using message headers, you should add throwExceptionOnFailure=false to your endpoint. Otherwise you can get the status code from the exception itself e.g. exception.st

Re: activemq store percent is very high

2017-06-05 Thread Doug Douglass
As Taarriq said, this is a question for ActiveMQ, but having dealt with a similar problem recently here's some pointers: http://activemq.2283324.n4.nabble.com/KahaDB-vs-LevelDB-td4706599.html#a4706648 http://activemq.apache.org/kahadb.html#KahaDB-Multi(m)kahaDBPersistenceAdapter Cheers Doug On

Re: header message show different values in log statements

2017-04-27 Thread Doug Douglass
On Wed, Apr 26, 2017 at 11:26 PM, jan.schjoenning wrote: > Given following route : > > from("direct:TranslateEpgData") > .routeId("TranslateEpgData") > .setHeader("xxx", constant("xxx")) >.to("log:?showAll=true&multiline=true") >

camel-salesforce component unable to unmarshall nested query results

2016-12-13 Thread Doug Douglass
I'm new to Salesforce and was really hoping to make use of the camel-salesforce component to jump start an integration project. Unfortunately, I've hit a wall and need to confirm whether the component should support unmarshalling results of query API call with a query containing a sub-select. For

Re: Trouble accessing Response body content from RESTful call

2016-10-25 Thread Doug Douglass
.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSU > > tils.java:1366) > > >at > > org.apache.cxf.jaxrs.impl.ResponseImpl.doReadEntity(ResponseImpl.java:37 > > 0) > > >... 23 more > > > > > >> -Original Message- > &g

Re: Trouble accessing Response body content from RESTful call

2016-10-25 Thread Doug Douglass
I can't say where the response body is being consumed, but try enabling stream caching[1] and see what you get. Doug [1] http://camel.apache.org/stream-caching.html On Tue, Oct 25, 2016 at 9:31 AM, Steve Huston wrote: > I am developing a route that calls a web service; said web service returns

Re: Camel logging

2016-06-16 Thread Doug Douglass
The Camel HTTP component[1] uses Apache Commons HttpClient[2], so you can try its logging configuration[3]. [1] http://camel.apache.org/http.html [2] https://hc.apache.org/httpclient-legacy/index.html [3] https://hc.apache.org/httpclient-legacy/logging.html On Thu, Jun 16, 2016 at 8:15 AM, mabahm

Re: Rest to Stax not working

2016-06-09 Thread Doug Douglass
I suspect the problem is that the body of the message is consumed before it reaches your stax processor. Specifically, without stream caching, the following will consume the body if it is any form of InputStream: .log("Content of the body in the main route: ${body}") See http://camel.apache.org/s

Re: Camel - Consul integration

2016-03-30 Thread Doug Douglass
I can't speak to Consul, but have a look at Camel's Recipient List[0], it's exactly what you want for dynamic recipients. Doug [0] http://camel.apache.org/recipient-list.html On Wed, Mar 30, 2016 at 7:35 AM, rogerhill01234 wrote: > Is there a way to leverage Consul for service discovery in Cam

Re: Strange Behavior Using Collections in Camel processor

2015-09-25 Thread Doug Douglass
Has nothing to do with Camel. There is only a single instance of listItem created. In the for loops, this single instance is emptied (listItem.clear()) and repeatedly added to the listOfRecords. Replace listItem.clear() with listItem = new ArrayList() and see what happens. On Fri, Sep 25, 2015 a

Re: Connect JMS over SSH Tunnel

2015-05-21 Thread Doug Douglass
279426/how-tunnel-all-rmi-traffic-over-ssh > > I did use Mina as SSHd server, but I didn't test it for port forwarding, > Nevertheless I believe it's the most elegant full java solution. > > Regards, > > François Liot > > ​ > >

Re: Connect JMS over SSH Tunnel

2015-05-21 Thread Doug Douglass
I'd setup the ssh tunnel outside of Camel, then have your Camel JMS URI use the localhost/port that's being forwarded. That way Camel has no knowledge of the port forwarding. Perhaps try something like sshuttle to provide a simple VPN of sorts via ssh. I've u

Re: dynamic URI parameter in from URI?

2013-03-09 Thread Doug Douglass
On Sat, Mar 9, 2013 at 1:18 AM, Claus Ibsen wrote: > > Lets say you can do that, how you would update the option? Using some > java code, JMX, or some other way? > > It is of course possible to add functionality to the camel-atom > component so you can in some way define the uri in a dynamic way.

Re: Custom component query

2012-07-20 Thread Doug Douglass
Camel Proxy[1] describes several ways of wiring things up (and links to others) depending our your needs. [1] http://camel.apache.org/using-camelproxy.html On Fri, Jul 20, 2012 at 4:09 PM, gilboy wrote: > Hi > > I need to create an event driven custom component. > > The sender which invokes the

Re: Splitting of mail

2012-03-06 Thread Doug Douglass
Hmm, just thinking out loud, but can you split the data before it becomes (part of) an email? Then at least you can remove the dependency on the mail/MIME APIs. Doug P.S. Are you in Centenial? Many years ago I worked in the Maint. Docs dept. at Jepp, On Tue, Mar 6, 2012 at 8:43 AM, Knut Aksnes-N

Re: Splitting on XML Documents

2012-01-26 Thread Doug Douglass
it fails. > > > > Could the split be converting the output to a string? That would explain > > the problem. > > > > Chris > > > > On Wed, Jan 25, 2012 at 5:03 PM, Doug Douglass >wrote: > > > >> Chris, > >> > >> I think the xm

Re: Splitting on XML Documents

2012-01-25 Thread Doug Douglass
Chris, I think the xml processing "fix" you've got there is a bit of red-herring. The xml processing instruction should only be necessary if you are converting the output of the xpath to a String prior to the xslt endpoint, whether directly or indirectly. Without any explicit conversion, the outp

Re: spring-ws component not propagating in headers to out message

2011-05-13 Thread Doug Douglass
ichard > > On Fri, May 13, 2011 at 7:22 PM, Doug Douglass >wrote: > > > Hello All, > > > > Subject says it all. Looking at the source code for > > SpringWebserviceProducer, it just sets the out body and does nothing with > > headers. > > > > There

spring-ws component not propagating in headers to out message

2011-05-13 Thread Doug Douglass
Hello All, Subject says it all. Looking at the source code for SpringWebserviceProducer, it just sets the out body and does nothing with headers. There's no spring-ws component in JIRA (yet?). Is there a different component to create the issue against? TIA, Doug

Re: CamelContext No Longer Auto-Wires Via Package Element?

2009-07-08 Thread Doug Douglass
FYI, regarding Spring auto-wiring when more than one bean of the same type is configured...see the Qualifier annotation: http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/beans/factory/annotation/Qualifier.html http://static.springsource.org/spring/docs/2.5.x/reference/beans

Re: configure SEDA URI/options with Spring PropertyPlaceholderConfigurer?

2009-06-22 Thread Doug Douglass
yPlaceHolderConfigurer. > > Here is a FAQ[1] for this, we will support it with coming up Spring 3.0. > > > > Willem > > > > Doug Douglass wrote: > >> Well, I've got something working, but it doesn't quite feel like "The > Camel > >>

Re: configure SEDA URI/options with Spring PropertyPlaceholderConfigurer?

2009-06-18 Thread Doug Douglass
Well, I've got something working, but it doesn't quite feel like "The Camel Way": Comments/suggestions are definitely welcome! Doug On Thu, Jun 18, 2009 at 1:11 PM, Doug Douglass wrote: > I'd like to move some SEDA endpoint options out of the Camel XM

configure SEDA URI/options with Spring PropertyPlaceholderConfigurer?

2009-06-18 Thread Doug Douglass
I'd like to move some SEDA endpoint options out of the Camel XML configuration and into a Spring PropertyPlaceholderConfigurer, but I'm struggling a bit. Here's a snip of the current Camel XML with the URIs I'm trying to configure marked with "-->": ${in.body}

Re: Camel-Spring and Bean post processors

2009-05-29 Thread Doug Douglass
This might be a red herring, but I think I've experienced something similar when using Spring's @ManagedResource with JPA @Transational in the same class (perhaps not the best practice, but that's a different topic). The @Transactional annotations were processed first, creating a proxy object, but

Re: Camel RSS and Atom components

2009-04-01 Thread Doug Douglass
Jeroen, Try using Spring's AbstractJUnit38SpringContextTests, or AbstractJUnit4SpringContextTests depending on the version of JUnit, to load up an application context containing a test Camel context defined via xml. And have spring autowire the context into you test class of course ;) Something l

Re: understanding SEDA and Thread processor

2009-02-05 Thread Doug Douglass
Thanks Roman for the JIRA link. My question initially came from experimenting with trying to provide multiple threads around the http component to increase throughput. I admit I'm having some general confusion trying to get the thread processor to behave "the way I think it should". Since I was at

understanding SEDA and Thread processor

2009-01-22 Thread Doug Douglass
Hello all, I'm looking for some advice regarding SEDA and threads (camel 1.5.0). I'd like to be able to use multiple threads to pull from a SEDA component. I've read the SEDA docs[1] including the section about Thread Pools[2], but I'm not quite able to get the behavior I want/expect. I've start