How to load all properties from CamelContext

2021-03-18 Thread Michele Olsen
Hi, These 2 lines of code were working for me with Camel 2.22.0 to retrieve all properties from a CamelContext: PropertiesComponent p = (PropertiesComponent) context.getComponent("properties",false) return p.getPropertiesResolver().resolveProperties(context,false,pro.getLocations()) After

Re: Replacement for “-applicationContext” option in Main

2021-03-18 Thread Michele Olsen
/camel/blob/master/components/camel-spring-main/src/main/java/org/apache/camel/spring/Main.java#L73 > > >> On Wed, Mar 17, 2021 at 4:36 AM Michele Olsen >> wrote: >> >> Hi, >> My application is currently using version 2.22.0 of Apache-camel. It calls >>

Replacement for “-applicationContext” option in Main

2021-03-16 Thread Michele Olsen
Hi, My application is currently using version 2.22.0 of Apache-camel. It calls the run method of org.Apache.camel.spring.Main using a run argument of “-ac camel-config.xml”. I upgraded the camel version to 3.8.0 but now when the run method is called, I’m getting an error saying “Unknown

Camel 2.22.2 with bundle camel-elasticsearch-rest error

2019-01-24 Thread Michele Andreoli
t in the org.apache.servicemix.bundles.elasticsearch-client bundle there aren't imported packages, it is normal? It's a bug or I'm missing something? http://it.tinypic.com/r/24v3zaa/9 -- Michele Andreoli

BeanIO - CSV Stream - unmarshal error quote in field text

2016-12-07 Thread Michele
mapping file (section parser) to pass bean io but no result. Then, i tried this before to call unmarshal ${body.replaceAll("\"","")} but an error is thrown replaceAll on null object. Any idea? Environment JbossFuse 6.2 - With camel version 2.15.1.redhat-620133

File Issue: Append and Move file on completion whole process

2016-07-29 Thread Michele
it override all. How to avoid writing of last single row? Any idea? Thanks in advance. Best regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/File-Issue-Append-and-Move-file-on-completion-whole-process-tp5785634.html Sent from the Camel - Users mailing list

FTP Consumer Issue - File operation failed: 227

2016-07-24 Thread Michele
ception: org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed: 227 Entering Passive Mode Too many open files (Attacched log file log.txt <http://camel.465427.n5.nabble.com/file/n5785356/log.txt> ) Any idea? Thanks in advance Best Regards Michele -- View this message in context: http://camel.465427.

Re: FTP Consumer Issue - File operation failed: 227

2016-07-24 Thread Michele
Hi, thank you very much for your reply. I use FileZilla to check if are present file in folder. I restart Camel Context and now it works fine. But, how to prevent it happening again? Thanks again Kind greetings Michele -- View this message in context: http://camel.465427.n5.nabble.com

Re: FTP Consumer has strange behaviour

2016-05-16 Thread Michele
I hope it goes well. I tested it more than once and it work fine. Thank you for your support ;). Best Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/FTP-Consumer-has-strange-behaviour-tp5782537p5782598.html Sent from the Camel - Users mailing list a

Re: FTP Consumer has strange behaviour

2016-05-14 Thread Michele
Best regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/FTP-Consumer-has-strange-behaviour-tp5782537p5782584.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: FTP Consumer has strange behaviour

2016-05-13 Thread Michele
ks in advance. Best regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/FTP-Consumer-has-strange-behaviour-tp5782537p5782540.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: FTP Consumer has strange behaviour

2016-05-13 Thread Michele
Hi, I remove the include parameters from options and I retry it. The result is the same. In log file -rw-r--r-- 1 ftp ftp6070120 May 13 10:16 DDT_DA_SAP_20151123_123003.txt Thanks for your support. Best regard Michele -- View this message in context: http://camel.465427.n5

FTP Consumer has strange behaviour

2016-05-13 Thread Michele
DT_DA_SAP_20151123_123003.txt Please help me. Thanks in advance Best Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/FTP-Consumer-has-strange-behaviour-tp5782537.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Best Strategy to process a large number of rows in File

2016-04-26 Thread Michele
. Thanks a lot again for your support. Best regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Best-Strategy-to-process-a-large-number-of-rows-in-File-tp5779856p5781750.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Best Strategy to process a large number of rows in File

2016-04-18 Thread Michele
(Put in queue ~2msg/s in some process). My goal is to store the whole file splitted line by line in queue as soon as possible to increase reliability. Thank you a lot again. Best Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Best-Strategy-to-process

Re: Best Strategy to process a large number of rows in File

2016-04-18 Thread Michele
${body[0]} CompleteActionPath Thanks a lot again Best Regards Michele -- View this message

Re: Best Strategy to process a large number of rows in File

2016-04-16 Thread Michele
try using either JMS or ActiveMQ. So, Can ActiveMQ manage a large number of messages in few seconds or minutes? Or Do I need to defined a load balancer on Broker? Thanks a lot for your support. Best Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Be

Re: Best Strategy to process a large number of rows in File

2016-04-15 Thread Michele
let you know. Thanks a lot again for your support. Best Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Best-Strategy-to-process-a-large-number-of-rows-in-File-tp5779856p5781179.html Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Best Strategy to process a large number of rows in File

2016-04-15 Thread Michele
. But, Can I improve further processing performance? In addition, I noticed that Queue Size of Queue is low. Why? (Producer is slower than Consumer?) Thanks in advance. Best Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Best-Strategy-to-process-a-large

RE: Best Strategy to process a large number of rows in File

2016-04-13 Thread Michele
ss...) 6 instances of "org.apache.activemq.command.ActiveMQObjectMessage", loaded by "org.apache.felix.framework.BundleWiringImpl$BundleClassLoaderJava5 @ 0x781b26308" occupy 104.612.744 (22,86%) bytes. This result obtained introducing lazyloat on csv. Do I need to change my route? Thanks a

RE: Best Strategy to process a large number of rows in File

2016-04-13 Thread Michele
configuration is based on PooledConnection and to limit the amount of memory (Per-Destination) I set: But, after about 1h the system goes in OutOfMemory. Thanks you so much for your help. Best Regards Michele -- View this message in context

Re: Best Strategy to process a large number of rows in File

2016-04-13 Thread Michele
Now Out Of Memory is generated by: Heap dumped on OutOfMemoryError exception Thread causing OutOfMemoryError exception: Camel (IF_CBIKIT-Inbound-Context) thread #18 - seda://processAndStoreInQueue Please help me! Thanks a lot in advance Best Regards Michele -

Re: Understanding Pooled Connection Factory on ActiveMQ

2016-04-08 Thread Michele
Hi, sorry, but according to http://camel.apache.org/jms.html section Concurrent Consuming You can configure this option in one of the following ways: - On the JmsComponent (I believe during configuration PooledConnectionFactory), - On the endpoint URI or, - By invoking setConcurrentConsumers()

Re: Understanding Pooled Connection Factory on ActiveMQ

2016-04-07 Thread Michele
Hi Stevenson, I configured component activemq using Pooled Connection Factory. So, PooledConnection Factory regarded only Producer? I try to add a concurrentConsumers as option... Thank you so much Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com

Understanding Pooled Connection Factory on ActiveMQ

2016-04-07 Thread Michele
rom queue)? Environment: JBoss Fuse 6.2 based on Apache Camel and ActiveMQ. Thanks in advance Best Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Understanding-Pooled-Connection-Factory-on-ActiveMQ-tp5780689.html Sent from the Camel - Users mailing lis

Re: Best Strategy to process a large number of rows in File

2016-03-31 Thread Michele
and on tag systemUsage I set sendFailIfNoSpace="false". I'll work on this way to improve performance. Anyway, thanks a lot for your support. Best Regards Michele

Re: Best Strategy to process a large number of rows in File

2016-03-30 Thread Michele
tiveMQObjectMessage#27 at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196) Local Variable: org.apache.activemq.transport.tcp.TcpTransport#4 at java.lang.Thread.run(Thread.java:745) How can I improve the Store and forward? Thanks a log again for your support. Greetings

Re: Best Strategy to process a large number of rows in File

2016-03-30 Thread Michele
utStream] due java.lang.OutOfMemoryError: Java heap space and then LevelDB Stop and the process ends... I attach first OOM excpetion occurred during process oof.txt <http://camel.465427.n5.nabble.com/file/n5780003/oof.txt> Thanks for all Best regards Michele -- View this message in context:

Re: Best Strategy to process a large number of rows in File

2016-03-30 Thread Michele
I forgot this link http://activemq.apache.org/what-is-the-prefetch-limit-for.html and so I changed the consumer endpoint like this Thanks again. Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Best-Strategy-to-process-a-large-number-of-rows

Re: Best Strategy to process a large number of rows in File

2016-03-29 Thread Michele
nce Best Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Best-Strategy-to-process-a-large-number-of-rows-in-File-tp5779856p5779935.html Sent from the Camel - Users mailing list archive at Nabble.com.

Best Strategy to process a large number of rows in File

2016-03-28 Thread Michele
2.15.1 and Active MQ 5.11) Thanks in advance Best Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Best-Strategy-to-process-a-large-number-of-rows-in-File-tp5779856.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to validate Body Content in Map Object

2016-03-19 Thread Michele
language or CustomValidator. Probably i will use a CustomValidator driven a custom xml configuration. I have seen beanio and the question is: Is this a valid xml configuration file? thanks a lot for your suggestions Greetings Michele -- View this message in context: http://camel.465427.n5

Re: How to validate Body Content in Map Object

2016-03-16 Thread Michele
Hi Ranx, thanks so much. Exactly, key/values validation... I have different file with different criterions of validations and to create different Pojo is much expensive. Is there a compenent in camel with xml configuration to validate a Map Object? Thaks in advance Best Regards Michele

How to validate Body Content in Map Object

2016-03-15 Thread Michele
dvance Best Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/How-to-validate-Body-Content-in-Map-Object-tp5779118.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to configure jms consumer with dynamic selector

2016-03-02 Thread Michele
Hi, Thanks for your reply. Aggregator with completion timeout is a good idea. I try it. Can I use infinispan like a persistent repository? Thanks in advance Greetings Michele -- View this message in context: http://camel.465427.n5.nabble.com/How-to-configure-jms-consumer-with-dynamic

How to configure jms consumer with dynamic selector

2016-03-01 Thread Michele
Hi everyone, How to configure selector option of jms consumer to retrieve messages with date processed today -1? Example: from("jms:queue:for?selector=processDate=${date:now-1}").to("mock:result"). Process date in header. Thanks in advance. Greeting Michele -- View thi

Re: Quartz 2 Consumer with cron expression and avoiding some range of date

2016-02-23 Thread Michele
Hi Claus, thanks for your reply. In the meantime of jira ticket, can I extend QuartzComponent and QuartzEndpoint(where the Trigger is initialized) to resolve my requirement? Or can you provide me other suggestions? Thanks in advance Greeting Michele -- View this message in context: http

Quartz 2 Consumer with cron expression and avoiding some range of date

2016-02-22 Thread Michele
11:30 .modifiedByCalendar("myHolidays") // but not on holidays ... Thanks in advance. Greeting Michele -- View this message in context: http://camel.465427.n5.nabble.com/Quartz-2-Consumer-with-cron-expression-and-avoiding-some-range-of-date-tp5778071.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Error Handling and Redelivery Policy between routes

2016-01-30 Thread Michele
sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[:1.7.0_79] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)[:1.7.0_79] ... 08:50:21,319 | WARN | erRedeliveryTask | DeadLetterChannel| 198 - org.apache.camel.camel-core - 2.15.1.redhat-

Re: Error Handling and Redelivery Policy between routes

2016-01-29 Thread Michele
Caused by: [java.net.ConnectException - Connection refused: no further information] 16:55:27,131 | DEBUG | erRedeliveryTask | DeadLetterChannel | 198 - org.apache.camel.camel-core - 2.15.1.redhat-620133 | Redelivery delay calculated as 6 Thanks in advance Best regards Mich

Error Handling and Redelivery Policy between routes

2016-01-28 Thread Michele
Thanks in advance Best Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Error-Handling-and-Redelivery-Policy-between-routes-tp5776905.html Sent from the Camel - Users mailing list archive

Idempotent Component and DLQ Error Handler

2016-01-27 Thread Michele
CRMInsertTicketPath Best Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Idempotent-Component-and-DLQ-Error-Handler-tp5776787.html Sent

Re: Jetty Producer Dynamic uri based on info in header

2016-01-13 Thread Michele
]} CRMUpdatePath Have a nice day. Greetings Michele -- View this message in context: http://camel.465427.n5.nabble.com/Jetty-Producer-Dynamic-uri-based-on-info-in-header-tp5776187p5776192.html Sent from the Camel - Users mailing

Jetty Producer Dynamic uri based on info in header

2016-01-12 Thread Michele
Hi everyone, How to create dynamically uri for Jetty Component retrieving info in header of exchange? Es. ${body[id]} Thanks in advance. Best Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Jetty-Producer-Dynamic-uri-based

Avoid processing same message in route

2016-01-05 Thread Michele
it or any suggestions? Thanks in advance Greetings Michele -- View this message in context: http://camel.465427.n5.nabble.com/Avoid-processing-same-message-in-route-tp5775839.html Sent from the Camel - Users mailing list archive at Nabble.com.

Flatpack pipe delimiter in xml route

2015-12-30 Thread Michele
!): I also tried with \| and \\| but it doesn't work. Thanks in advance. Best Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Flatpack-pipe-delimiter-in-xml-route

How to configure correctly Error Handler for redelivery

2015-12-09 Thread Michele
to resolve redeliveries on ConnectionException? Thanks in advance Kind regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/How-to-configure-correctly-Error-Handler-for-redelivery-tp5774877.html Sent from the Camel - Users mailing list archive at Nabble.com.

Apache Camel Dozer - Cannot find class...

2015-12-07 Thread Michele
-620133 Thanks in advance Best Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-Dozer-Cannot-find-class-tp5774792.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel-cache usaed in Enricher Route

2015-12-06 Thread Michele
Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Camel-cache-usaed-in-Enricher-Route-tp5774747.html Sent from the Camel - Users mailing list archive at Nabble.com.

Restlet with oauth

2015-11-24 Thread Michele
camel route? Thanks in advance Bye Michele -- View this message in context: http://camel.465427.n5.nabble.com/Restlet-with-oauth-tp5774366.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to invoking external rest service in camel route

2015-11-21 Thread Michele
. (as reported in this post: http://camel.465427.n5.nabble.com/CXFRS-Producer-td5722162.html) Thanks for your help. Kind Greeting Michele -- View this message in context: http://camel.465427.n5.nabble.com/How-to-invoking-external-rest-service-in-camel-route-tp5774158p5774183.html Sent from

How to invoking external rest service in camel route

2015-11-21 Thread Michele
. Michele -- View this message in context: http://camel.465427.n5.nabble.com/How-to-invoking-external-rest-service-in-camel-route-tp5774158.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Questions about Camel's FTP component

2015-11-17 Thread Michele
Hi Derek, You can follow these topics http://camel.apache.org/oncompletion.html http://camel.apache.org/endpointcompleter.html Greetings Michele -- View this message in context: http://camel.465427.n5.nabble.com/Questions-about-Camel-s-FTP-component-tp5773919p5774001.html Sent from

Consuming Advisory Messages

2015-11-16 Thread Michele
://activemq.apache.org/advisory-message.html and change the example like this: So, No messages are detected/send when the message, that it failed the delivery, is moved in DLQ. Is wrong my configuration? I lost some information? Thanks in advance. Regards Michele -- View

Re: Questions about Camel's FTP component

2015-11-16 Thread Michele
/file2.html http://camel.apache.org/file.html This directory holds examples of the FTP component https://github.com/camelinaction/camelinaction2/tree/master/chapter6/ftp Regards, Michele -- View this message in context: http://camel.465427.n5.nabble.com/Questions-about-Camel-s-FTP-component

Re: Redelivery Policy set on Camel is ignored

2015-11-09 Thread Michele
you very much for your tips. Best regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Redelivery-Policy-set-on-Camel-is-ignored-tp5773409p5773536.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Redelivery Policy set on Camel is ignored

2015-11-09 Thread Michele
*" /> and i also tried to set it by setting redelivery policy property defined as but the policy is ignored, redeliveries are immediate. I am a bit 'confused. Sorry. Thanks in advance. Kind greeting

Re: Redelivery Policy set on Camel is ignored

2015-11-06 Thread Michele
: ** But the result is the same. Redelivery Policy is ignored. I need to configure a DMLC for caching messages to re-delivery? Thanks in advance. Greeting Michele -- View this message in context: http://camel.465427.n5.nabble.com/Redelivery-Policy-set-on-Camel

Redelivery Policy set on Camel is ignored

2015-11-05 Thread Michele
rds Michele -- View this message in context: http://camel.465427.n5.nabble.com/Redelivery-Policy-set-on-Camel-is-ignored-tp5773409.html Sent from the Camel - Users mailing list archive at Nabble.com.

Message Header is not propagated!

2015-11-05 Thread Michele
Hi all, I am new to Camel and I'm writing to ask for help. With Jboss Fuse 6.2 I implemented pattern Splitter+Process+Aggregator for my scenario. I noticed that from route with id FileToIncomingTickets to route ProcessMessageData and ReportingOnImport *header is not propagated* (When i log value

Re: Message Header is not propagated!

2015-11-05 Thread Michele
Hi, i resolved it following links reported below: http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html http://camel.apache.org/jms.html (transferExchange enabled) Sorry ;)! Thanks Regards Michele -- View this message in context: http://camel.465427.n5.nabble.com/Message

Camel, openmq and tomcat: hangup on shutdown?

2009-02-09 Thread Michele Bini
is I'm obviously doing something wrong, but what? I know it might be an ActiveMQ problem rather than a camel one but camel/activemq interactions are not so linear and so I'm asking here first. Thanks everybody in advance for their answers and suggestions, Michele import java.util.Enumeration