Duplicate bean definition error, using xml endpoint tag with spring boot application

2021-11-10 Thread lb
Trying to use the tag in a Spring Boot 2.5.6 application, Spring refuses to start, but terminates with an error: The bean 'myendpoint' could not be registered. A bean with that name has already been defined and overriding is disabled. camel.xml, made visible by @Configuration @ImportResour

Re: infinispan Idempotent and RemoteCacheManager

2016-04-07 Thread lb
In your new route you have skipDuplicate="false" so it won't block any message -- View this message in context: http://camel.465427.n5.nabble.com/infinispan-Idempotent-and-RemoteCacheManager-tp5780600p5780705.html Sent from the Camel - Users mailing list archive at Nabble.com.

UriParam multi value

2016-02-11 Thread lb
Hi, I would like to know if there is way to have a multi value UriParam that accepts a comma delimited list of elements like: - definition: @UriParam private List options; - add thing to registry: registry.bind("option1", new MyOption("1")); registry.bind("option2", new MyOpti

Re: Camel beanio mapping file outside the war

2016-01-27 Thread lb
I've tested the following snippet on camle 2.17-SNAPSHOT and it works as expected: On Wed, Jan 27, 2016 at 2:04 PM, Claus Ibsen wrote: > Hi > > Yes this i not possible. You cannot refer to ENV in the mapping field in > beanio. > > That would require an ENH which I have logged: > http

Re: Adding Routes to a running Camel Context

2014-02-06 Thread lb
I did something similar, maybe not the best, in an OSGi project I was working on, I've uploaded some of the code in my sandbox repository: https://github.com/lburgazzoli/lb-sandbox-java/tree/master/sbox-camel/src/main/java/com/github/lburgazzoli/sandbox/camel— lb On Thu, Feb 6, 2014 at

Re: Bindy component: more than one model object per package

2014-01-27 Thread lb
There is a PR on Camel's GitHub mirror ( https://github.com/apache/camel/pull/83) aimed to fix CAMEL-5958. As today that patch removes package support in bindy so it can be only incorporate in a version on which API breaks are permitted. https://github.com/lburgazzoli/camel https://issues.apache.o

Re: [camel-bindy] bindy ignore bean class type

2013-12-24 Thread lb
I fixed CAMEL-5958 in my own repo on GitHub (https://github.com/lburgazzoli/camel) I would greatly appreciate any feedback before to open a pull request. -- View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-bindy-ignore-bean-class-type-tp5725275p5745206.html Sent from

Re: building camel : disable camel-manual

2013-12-18 Thread lb
Fixed, thx -- View this message in context: http://camel.465427.n5.nabble.com/building-camel-disable-camel-manual-tp5744596p5744989.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: building camel : disable camel-manual

2013-12-12 Thread lb
I forgot to mention that the proxy need authentication so http.proxyHost and http.proxyPort are not enough :-( -- View this message in context: http://camel.465427.n5.nabble.com/building-camel-disable-camel-manual-tp5744596p5744681.html Sent from the Camel - Users mailing list archive at Nab

Re: building camel : disable camel-manual

2013-12-11 Thread lb
Proxy is properly configured and dependencies are downloaded without problems. The only issue is with camel-manual. — lb On Wed, Dec 11, 2013 at 10:05 PM, Christian Müller wrote: > You can also consider to configure your Maven proxy settings... > Best, > Am 11.12.2013 12:50 sc

building camel : disable camel-manual

2013-12-11 Thread lb
Hi, I'm trying to build camel behind a corporate firewall and the build fails for camel-manual: [INFO] --- exec-maven-plugin:1.2.1:java (generate-manual) @ camel-manual --- java.net.ConnectException: Connection timed out: connect at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Na

Split hierarchical-flat file

2013-12-09 Thread lb
Hi all, I have a file which has the following content (fixed length record): Main Header record (starts with HR) Sub Header record (starts with SH) Data record (starts with DR) Sub Header record (starts with SH) Data record (starts with DR) Sub Header record (starts with SH) Data record (starts

Re: testing camel : ClassNotFoundException - org.apache.camel.core.xml.AbstractCamelEndpointFactoryBean

2013-11-20 Thread lb
ystem property to the Java process as you launch > it > inside IntelliJ: > > -Duser.dir=/users/home/xyz/camel/camel-bindy > > Just to see if THAT is the problem or not. > > Babak > > > lb wrote > > Hi, > > now I've got the same problem if I run the sa

Re: testing camel : ClassNotFoundException - org.apache.camel.core.xml.AbstractCamelEndpointFactoryBean

2013-11-20 Thread lb
avaeye.com/) (Chinese) > Twitter: willemjiang > Weibo: 姜宁willem > > > > > > On Tuesday, November 12, 2013 at 3:25 AM, lb wrote: > > > It works if I run the test (after clean install) from the camel-bindy > > subproject, I does not if I test it from the root, is

Re: testing camel : ClassNotFoundException - org.apache.camel.core.xml.AbstractCamelEndpointFactoryBean

2013-11-11 Thread lb
logspot.com/) > (English) > http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) > Twitter: willemjiang > Weibo: 姜宁willem > > > > > > On Monday, November 11, 2013 at 5:24 AM, lb wrote: > > > Hi, > > I'm trying to execute a s

testing camel : ClassNotFoundException - org.apache.camel.core.xml.AbstractCamelEndpointFactoryBean

2013-11-10 Thread lb
Hi, I'm trying to execute a single test in camel main (github) and the test fails because of a ClassNotFoundException: org.apache.camel.core.xml.AbstractCamelEndpointFactoryBean. Here the command i use: [luca@juniper apache-camel]# mvn -Dtest=*BindyComplexCsvUnmarshallTest* test ... Tests in erro

Re: Using Bindy for multiple record types in the same file

2013-07-12 Thread lb
ot;,"order")) .to("log:ORDER?level=INFO&showHeaders=false") .when(predicateCustomer) .unmarshal(new BeanIODataFormat("beanio-mapping.xml","customer")) .to("log:CUSTOMER?level=INFO&showHeaders=f

Re: @CsvRecord reject

2013-03-05 Thread lb
As today if you have more bind-annotated classes you have to place them in separate packages, I'm supposed to work on this issue as soon as I have a little time. https://issues.apache.org/jira/browse/CAMEL-5958 -- View this message in context: http://camel.465427.n5.nabble.com/CsvRecord-rej

Re: A little problem with annotation @CsvRecord

2013-02-26 Thread lb
You may use the following syntax: .unmarshall().bindy(BindyType.Csv,Your Class.class) Bear in mind that the current implementation does scan the package of the viventi class thus you should not have any other bindy-annotated class in the same root package. On Monday, February 25, 2013, jeff wrot

Re: [camel-bindy] bindy ignore bean class type

2013-01-14 Thread lb
Hi, if you give me some hint I may start working on it (not sure to have enough skill but I may try). thx -- View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-bindy-ignore-bean-class-type-tp5725275p5725566.html Sent from the Camel - Users mailing list archive at Nabb

Re: [camel-bindy] bindy ignore bean class type

2013-01-11 Thread lb
Done: https://issues.apache.org/jira/browse/CAMEL-5958 -- View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-bindy-ignore-bean-class-type-tp5725275p5725402.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: [camel-bindy] bindy ignore bean class type

2013-01-11 Thread lb
Shall I open a Jira? -- View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-bindy-ignore-bean-class-type-tp5725275p5725393.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: [camel-bindy] bindy ignore bean class type

2013-01-11 Thread lb
That is the method I'm currently using but according to the class BindyAbstractFactory, bindy scan the packages of the class used as parameter instead of the class itself, isn't it? -- View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-bindy-ignore-bean-class-type-tp572

Re: [camel-bindy] bindy ignore bean class type

2013-01-11 Thread lb
What about to add an additional parameter to the bindy method in fluent language? Like an enum or a constant to instruct bindy to perform a package scan or to use the class configured. -- View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-bindy-ignore-bean-class-typ

Re: [camel-bindy] bindy ignore bean class type

2013-01-10 Thread lb
I think the problem is in BindyAbstractFactory.java : /** * method uses to initialize the model representing the classes who will * bind the data. This process will scan for classes according to the * package name provided, check the annotated classes and fields. * *

Re: [camel-bindy] bindy ignore bean class type

2013-01-10 Thread lb
Hi, it works if the beans are in a different package not if they are in the same one -- View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-bindy-ignore-bean-class-type-tp5725275p5725291.html Sent from the Camel - Users mailing list archive at Nabble.com.

[camel-bindy] bindy ignore bean class type

2013-01-10 Thread lb
Hi all, it looks like camel-bindy does not take into account the class specified in the method: bindy(BindyType.Csv, MyCamelBeans.TEST.class) I have class MyCamelBeans which includes several "bindies" among which I have a really simple MyCamelBeans.TEST: class MyCamelBeans { @Csv

Re: [camel-bindy] Handle implied decimal field

2012-11-28 Thread lb
Patch for both implied decimal and format attached to CAMEL-5827 (https://issues.apache.org/jira/browse/CAMEL-5827). Still lot of work to do but as it is my first patch to an Apache project, I would like to know if it goes the right way :-) -- View this message in context: http://camel.46542

Re: [camel-bindy] Handle implied decimal field

2012-11-27 Thread lb
In org.apache.camel.dataformat.bindy.FormatFactory for non "BigNumbers" the Format object is chosen as follow: if (clazz == float.class || clazz == Float.class) { return pattern != null ? new FloatPatternFormat(pattern, getLocale(locale)) : new FloatFormat(); } I've noticed that the DataFi

Re: [camel-bindy] Handle implied decimal field

2012-11-20 Thread lb
thx - could you point me to some relevant code for learning purpose? -- View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-Handle-implied-decimal-field-tp5723003p5723019.html Sent from the Camel - Users mailing list archive at Nabble.com.

[camel-bindy] Handle implied decimal field

2012-11-20 Thread lb
Hy all, is tenere any way to handle numbers represented with implied decimals? I mean, the communication with some legacy systems often relies on old protocols and formats not easy to change and among that you may have to deal with fixed lenght records on which decimal numbers are not represented