Re: @PropertyInject vs @Value in camel-spring-boot

2018-03-21 Thread Wilson MacGyver
e other kind of testing. > > > > The issue you hit with CamelTestSupport is possible to fix, you can > > log a JIRA. I havent had found the time to fix it yet. > > And CamelTestSpringSupport could potentially be improved for running > > with Spring Boot too. > > &

Re: @PropertyInject vs @Value in camel-spring-boot

2018-03-20 Thread Wilson MacGyver
Oh really? So would you suggest I just don’t extend any base class at all? On Tue, Mar 20, 2018 at 10:53 AM Claus Ibsen <claus.ib...@gmail.com> wrote: > On Tue, Mar 20, 2018 at 3:21 PM, Wilson MacGyver <wmacgy...@gmail.com> > wrote: > > Oh I didn’t know that there wa

Re: @PropertyInject vs @Value in camel-spring-boot

2018-03-20 Thread Wilson MacGyver
t; at > org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:239) > > at > org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1300) > > > > > > > > > > Thanks > > > > > > On Su

Re: @PropertyInject vs @Value in camel-spring-boot

2018-03-18 Thread Wilson MacGyver
bit about where you > put that @ProjectInject. > And what version of camel and SB are you using. And have you tried > with a newer version > > On Sat, Mar 17, 2018 at 6:03 AM, Wilson MacGyver <wmacgy...@gmail.com> > wrote: > > Hi there, > > > > I'm using

@PropertyInject vs @Value in camel-spring-boot

2018-03-16 Thread Wilson MacGyver
Hi there, I'm using camel-spring-boot I add hello = world in my application.properties I notice if I use @PropertyInject("hello") private String hello I get Property with key not found in properties from text but if I use @Value("${hello}") it works. this surprise me, since I was under

trim for fixlength only trim one direction

2017-08-24 Thread Wilson MacGyver
Hi, I was noticing for bindy my fixedlength fields, where I set trim to true is no longer working then I spotted this https://github.com/apache/camel/blob/camel-2.19.2/components/camel-bindy/src/main/java/org/apache/camel/dataformat/bindy/BindyFixedLengthFactory.java#L226 the problem is

Re: setPropertyPlaceholderLocations for apache camel main

2017-06-23 Thread Wilson MacGyver
Thank you! On Fri, Jun 23, 2017 at 10:00 AM Claus Ibsen <claus.ib...@gmail.com> wrote: > Hi > > Thanks I logged a ticket > https://issues.apache.org/jira/browse/CAMEL-11441 > > On Wed, Jun 21, 2017 at 10:16 PM, Wilson MacGyver <wmacgy...@gmail.com> > wr

setPropertyPlaceholderLocations for apache camel main

2017-06-21 Thread Wilson MacGyver
I follow https://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html and use main.setPropertyPlaceholderLocations("example.properties"); to set my property file. but I run into Error: java: setPropertyPlaceholderLocations(java.lang.String) has protected access in

Re: camel-test 2.18.3 not in mvn repo?

2017-03-14 Thread Wilson MacGyver
Ah, thanks for the tip! On Tue, Mar 14, 2017 at 4:20 PM, Zoran Regvart <zo...@regvart.com> wrote: > Hi Wilson, > before you do that, to save time, try `mvn -U ...` to force update > artifacts from Maven central repository, > > zoran > > On Tue, Mar 14, 2017 at 9:16

Re: camel-test 2.18.3 not in mvn repo?

2017-03-14 Thread Wilson MacGyver
rg/apache/camel/camel-test/2.18.3/ > > Cheers, > Taariq > > > On 14 Mar 2017 9:20 PM, "Wilson MacGyver" <wmacgy...@gmail.com> wrote: > > I noticed camel-test 2.18.3 is not in mvn repo, is there a reason? > > https://mvnrepository.com/artifact/org.apache

camel-test 2.18.3 not in mvn repo?

2017-03-14 Thread Wilson MacGyver
I noticed camel-test 2.18.3 is not in mvn repo, is there a reason? https://mvnrepository.com/artifact/org.apache.camel/camel-test Thanks, Mac -- Omnem crede diem tibi diluxisse supremum.

Re: JSonPath expression works in online validator but not within Camel route

2016-04-29 Thread Wilson MacGyver
nothing came through as far as I can tell in your email for any of the example output On Fri, Apr 29, 2016 at 12:18 PM, catshout wrote: > Dear community, > > I've following JSON body > > > > the expression > > > > gives > > > > in an online JSonPath validator but an empty

Re: Camel Large File Processing Issues

2016-04-18 Thread Wilson MacGyver
no, the 2 route setup should be more like this. from(ftp_endpoint).to(file://) this will download the file to directory of your choice then another route would be a directory monitor via file component from("file:?delete=true") .process ... this will start the file process when the download

Re: camel zipfile memory based?

2015-12-04 Thread Wilson MacGyver
t of the box, and avoiding to read the > entire content into memory. > > On Thu, Dec 3, 2015 at 9:27 PM, Wilson MacGyver <wmacgy...@gmail.com> > wrote: > > according to http://camel.apache.org/zip-dataformat.html > > > > zip data format is memory based, ie, the ent

camel zipfile memory based?

2015-12-03 Thread Wilson MacGyver
according to http://camel.apache.org/zip-dataformat.html zip data format is memory based, ie, the entire file content is loaded into the memory. is this also true for http://camel.apache.org/zip-file-dataformat.html I don't see the same warning here. Thanks, Mac -- Omnem crede diem tibi

Re: action at the end of the split

2015-08-16 Thread Wilson MacGyver
Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.linkedin.com/pub/christian-mueller/11/551/642 On Sat, Aug 15, 2015 at 4:08 AM, Wilson MacGyver wmacgy...@gmail.com wrote: thanks, that sadly

Re: action at the end of the split

2015-08-14 Thread Wilson MacGyver
. Ok, this assignment is made more than once redundantly per each splitted element, but header properties you create on the original message are retained (hopefully :-) Jens Von meinem iPhone gesendet Am 10.08.2015 um 21:49 schrieb Wilson MacGyver wmacgy...@gmail.com: I'm sorry my

Re: action at the end of the split

2015-08-14 Thread Wilson MacGyver
properties it will exist through the whole life cycle of the request. Best regards, Luis 2015-08-14 17:49 GMT-03:00 Wilson MacGyver wmacgy...@gmail.com: tried that, sadly no go. any header I set within the split, isn't accessible outside of the split block either. On Tue, Aug 11, 2015

Re: action at the end of the split

2015-08-10 Thread Wilson MacGyver
V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member https://www.linkedin.com/pub/christian-mueller/11/551/642 On Mon, Aug 10, 2015 at 4:35 AM, Wilson MacGyver wmacgy...@gmail.com wrote: public class SplitTest extends CamelTestSupport

Re: action at the end of the split

2015-08-09 Thread Wilson MacGyver
PM, Wilson MacGyver wmacgy...@gmail.com wrote: I figured out what I was doing wrong. It's because I was using filter with bean. I didn't realize I had to add an end() to terminate the filtering from() .split(body().tokenize(\n)).streaming() .process() /do stuff .filter

Re: action at the end of the split

2015-08-06 Thread Wilson MacGyver
be doing some more inside the splitter and you may need 2 x end On Thu, Jul 23, 2015 at 7:45 PM, Wilson MacGyver wmacgy...@gmail.com wrote: hmm, if I understand you correctly, this isn't working for me. I have from() .split(body().tokenize(\n)).streaming() .process() /do stuff

Re: action at the end of the split

2015-07-24 Thread Wilson MacGyver
On 23/07/15 19:03, Claus Ibsen wrote: You must be doing some more inside the splitter and you may need 2 x end On Thu, Jul 23, 2015 at 7:45 PM, Wilson MacGyver wmacgy...@gmail.com wrote: hmm, if I understand you correctly, this isn't working for me. I have from() .split(body().tokenize(\n

action at the end of the split

2015-07-23 Thread Wilson MacGyver
Hi, I'm processing a large file. so I use .split and .streaming to process it a record at a time. I would like to send an email alert upon completion of processing the file. but I can't figure out where to do that. I know I can check to see if it's the last exchange using property

Re: action at the end of the split

2015-07-23 Thread Wilson MacGyver
. On Thu, Jul 23, 2015 at 7:21 PM, Wilson MacGyver wmacgy...@gmail.com wrote: Hi, I'm processing a large file. so I use .split and .streaming to process it a record at a time. I would like to send an email alert upon completion of processing the file. but I can't figure out where

Re: using spock to test camel

2015-07-03 Thread Wilson MacGyver
. The only downside I see is the limited refactoring capabilities the IDE can provide resulting from it using groovy. Tim On 02/07/2015 16:08, Wilson MacGyver wrote: Hi, Has anyone ever used spock to test camel before? I notice only junit and test-ng are supported. I didn't know

Re: use gradle to build apache camel application

2015-07-03 Thread Wilson MacGyver
/07/2015 19:15, Rafael Ponte wrote: I'm working on a web project (with Camel integrated to Spring), so it's deployed on Tomcat container. On Thu, Jul 2, 2015 at 3:08 PM Wilson MacGyver wmacgy...@gmail.com wrote: so do you just use the application plugin to build it? are you using

using spock to test camel

2015-07-02 Thread Wilson MacGyver
Hi, Has anyone ever used spock to test camel before? I notice only junit and test-ng are supported. I didn't know if anyone has ever tried it. Thanks, Mac -- Omnem crede diem tibi diluxisse supremum.

Re: use gradle to build apache camel application

2015-07-02 Thread Wilson MacGyver
dependencies. What problem do you have? On Thu, Jul 2, 2015 at 2:41 PM Wilson MacGyver wmacgy...@gmail.com wrote: I know camel has excellent support for maven. and even has a mvn plugin. has anyone ever used gradle with camel application development before? -- Omnem crede diem tibi

Re: use gradle to build apache camel application

2015-07-02 Thread Wilson MacGyver
On Thu, Jul 2, 2015 at 2:52 PM Wilson MacGyver wmacgy...@gmail.com wrote: not really problem per se. just wanted to know how smooth it's working. for example, in mvn you can run camel by using mvn camel:run how do you do that with gradle? On Thu, Jul 2, 2015 at 1:43 PM, Rafael Ponte

Re: spring boot, jpa, entitymanagers and Java DSL

2015-06-15 Thread Wilson MacGyver
actually camel is pretty smart. if you create one and put it in the registry, it will find it by type and use it automatically. so in my startCamel code. I do this SimpleRegistry reg = new SimpleRegistry(); EntityManagerFactory factory =

Re: Is there a tools to convert java dsl to xml ?

2015-06-09 Thread Wilson MacGyver
I'm the opposite. I avoid XML, and use Java DSL exclusively. I really like the way it reads, and easy to test using camel test On Tue, Jun 9, 2015 at 10:48 AM Dan Moore dmo...@katasi.com wrote: I also am a new user and tend to like XML. Maybe that will change as I get used to Camel. I don't

using JPA to update database

2015-06-01 Thread Wilson MacGyver
Hi, here is what I'm trying to do, but I'm not sure if I'm on the right track or not. I have a inbound file that I want to process, and use it to either create or update existing rows in a table. I know I can do this using camel-jdbc, but I wanted to see if it can be done with jpa I know to use