Spring Context shutting down camel routes when activemq connection is lost

2017-01-20 Thread Adithi Jagannathan
Hi, I have an application using spring-boot, Apache Camel and active MQ. The camel routes are activeMQ queue polling routes. This is the *camel-conext.xml* http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:amq="ht

Simple CDI setup with Weld

2017-01-20 Thread Tim Dudgeon
Hi, I'm trying to setup a simple Java SE app using Camel CDI and Weld. The docs state that this can be run using the org.apache.camel.cdi.Main class. However when running this I get an exception: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/deltaspike/cdise/api/CdiCo

Re: Camel Bindy - Mixed fixed and variable length processing?

2017-01-20 Thread Claus Ibsen
Hi I dont think this is a good use-case for using bindy when you have such a special format. I would write my own formatter, just read the line and parse it yourself in a java bean and transform to the POJO model you like. On Wed, Jan 18, 2017 at 3:15 PM, Michel Betancourt wrote: > Hi Camel U

Re: Simple CDI setup with Weld

2017-01-20 Thread Antonin Stefanutti
Hi Tim, DeltaSpike is only used by this Main class to bootstrap Camel CDI in Java SE. So the dependency is optional to avoid polluting the classpath for other target runtimes. In the Camel examples, we add it to the Camel Maven plugin dependency, see: https://github.com/apache/camel/blob/6e95a

Camel component for Government system XY

2017-01-20 Thread Josef Ludvíček
Hello Camel users, I'd like to ask if you're aware of any camel component for any Country specific governmnet system. I'm working on componnet for ISDS (Informacni System Datovych Schranek) run by Czech Government. Source here [1]. Wery short description - ISDS is kind of e-mail. It can send and

Groovy and Camel PermGen troubles with Java 1.7

2017-01-20 Thread artaxerxe
As you know, Java isn't getting rid of PermGen memory area until Java 1.8. This means that if you are loading a lot of classes using a Java 1.7 JVM without assuring they are cleared when no longer needed, you will sooner or later get a PermGen OutOfMemory error. I'm using Camel 2.16.3 inside an OS

Re: Camel component for Government system XY

2017-01-20 Thread souciance
1) I would think it is better to create a separate component if it is a specific system you are creating this for. Makes it easier for others to use. 2) I am not sure for Camel specifically but usually government systems have APIs which theY expose and you integrate to them via their API. On Fri,

Re: Simple CDI setup with Weld

2017-01-20 Thread Tim Dudgeon
Thanks. Adding Deltaspike explicitly was the solution. Tim On 20/01/2017 12:11, Antonin Stefanutti wrote: Hi Tim, DeltaSpike is only used by this Main class to bootstrap Camel CDI in Java SE. So the dependency is optional to avoid polluting the classpath for other target runtimes. In the Ca

Re: Groovy and Camel PermGen troubles with Java 1.7

2017-01-20 Thread Zoran Regvart
Hi Andrei, it seems that there are leftover references to the Script classes which causes them not to be garbage collected. I've created a patch that I believe will solve this and logged a JIRA issue[1] You can test if this helps in your case by modifying the `GroovyLanguage.java` as in[1] and rep

Re: pollEnrich and variable file names - time stamp

2017-01-20 Thread GaryLeeMills
is this the right place for these questions? if not please send me to the correct place. thank you -- View this message in context: http://camel.465427.n5.nabble.com/pollEnrich-and-variable-file-names-time-stamp-tp5792827p5792872.html Sent from the Camel - Users mailing list archive at Nabble

Re: pollEnrich and variable file names - time stamp

2017-01-20 Thread souciance
You seem to be using JBoss Fuse. Shouldn't you be asking this on the JBoss Fuse form? Still, it is a bit hard to know what your requirement is. Do you want to poll files that begin with some string? You can use the file language and set the filename dynamically like: CMAS_LPD22_MPDE1A_PG2*-${date

SFTP Multiple Files Using Camel

2017-01-20 Thread praneeth101
Hi, I am using spring XML for configuring routes and one of my route does SFTP'ing files from local to remote server. But i observed that only one file is transferred at a time. I have a requirement where i need to send all the files in a directory at once over sftp to remote machine. How

Re: pollEnrich and variable file names - time stamp

2017-01-20 Thread Claus Ibsen
See this page http://camel.apache.org/content-enricher.html Notice what those boxes says about dynamic values in poll enrich and which Camel version. If you just want to pickup a file, then you can just do that use and and build the file name dynamically, and set the resultType of simple to be

Re: pollEnrich and variable file names - time stamp

2017-01-20 Thread GaryLeeMills
thanks for a reply, but no, I shouldn't be asking this question on a JBoss Fuse site. Because this is Camel Spring framework. I am using Camel Spring. The EIP is the pollEnrich. this is the problem. it doesn't ( at least I can't figure it out ) allow for dynamic fileName as you can see from my post

Re: pollEnrich and variable file names - time stamp

2017-01-20 Thread GaryLeeMills
thanks Clause, I will try this and get back with you. I appreciate your response. I do actually have an aggregator : and this works fine. it is the ability to accept files on the other path to the pollEnrich EIP. where it says fileName=CMAS... I need this to be dynamic due to a timestamp at th