Re: Does activemq/jms component have keepalive option?

2011-04-04 Thread Ashwin Karpe
Hi, Have you considered using a PooledConnectionFactory instead of the ActiveMQConnectionFactory. This will allow you not to create fresh connections each time. Cheers, Ashwin... - - Ashwin Karpe Apache Camel Committer & Sr Principal C

Re: Howto use delay message brokerage in a Camel Route using AMQ_SCHEDULED_DELAY

2011-04-04 Thread Steve Smith
Hi Gert, First check: have you enabled schedulerSupport="true" in your broker config? For a worked example of using AMQ_SCHEDULED_DELAY see here: https://github.com/tarka/Camel-Async-Test/tree/amq-delay-header It uses XML configuration rather than Java but should be easily portable. Cheers,

Howto use delay message brokerage in a Camel Route using AMQ_SCHEDULED_DELAY

2011-04-04 Thread Gert Villemos
As part of my routes, I need a processor to calculate and set a delay in the distribution. The message should be released to the Activemq topic/queue, but only send to subscribers when the delay has expired. AMQ_SCHEDULED_DELAY seems ideal for this. But I cant get it to work. In my processor bean

Re: Failed to create route

2011-04-04 Thread jpalmer1026
Actually, I figured it out. Silly mistake on my part. I was usinginstead of (note the 'file' keyword before the colon). -- View this message in context: http://camel.465427.n5.nabble.com/Failed-to-create-route-tp4282517p4282652.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Failed to create route

2011-04-04 Thread jpalmer1026
I declared my Properties component as a bean as described in my post. -- View this message in context: http://camel.465427.n5.nabble.com/Failed-to-create-route-tp4282517p4282634.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Failed to create route

2011-04-04 Thread Hadrian Zbarcea
Do you have a properties placeholder [1] for your properties and/or is it at the expected location? Hadrian [1] http://camel.apache.org/properties.htm On Apr 4, 2011, at 3:10 PM, jpalmer1026 wrote: > Hi, > > I'm trying to use the camel properties component to externalize a properties >

Failed to create route

2011-04-04 Thread jpalmer1026
Hi, I'm trying to use the camel properties component to externalize a properties file. It looks like the properties file is getting read, but I'm getting the following exception when the app tries to read the externalized properties: Exception in thread "main" org.apache.camel.RuntimeCamelExcepti

Re: String processing with Apache Camel with Spring DSL

2011-04-04 Thread Richard Kettelerij
Looking at the example string, I think you need a component that is capable of parsing fixed-width records. This can be accomplished using either of the following Camel components: - camel-bindy (POJO based), http://camel.apache.org/bindy.html - camel-flatpack (XML based), http://camel.apache.org/

Does activemq/jms component have keepalive option?

2011-04-04 Thread Tom Howe
I have a simple route that goes from("file:/some/path").to("activemq:some/queue"); >From truss and activeMq admin page, I notice that it is constantly connecting/closing the connections. Is there a way to make the endpoint retain a connection to make it more efficient? Thanks, Tom

Re: Route Question

2011-04-04 Thread Christian Müller
You can combine the content based router [1] and the simple language [2] to something like: from("seda:a") .choice() .when(simple("${header.CamelFileName} regex 'foo.*'")) .to("seda:b") .when(simple("${header.CamelFileName} re

Re: Recommended approach for JMS polling consumer

2011-04-04 Thread Hadrian Zbarcea
I would use option [1], using probably quartz instead of timer. Hadrian On Apr 4, 2011, at 11:09 AM, Paul Lowry wrote: > Hi, > > I am using Camel 2.4.0 to define routes in XML (Spring configuration > files). I want my route to read all messages from a JMS queue, at > regular intervals. I also w

Re: dot generation with maven plugin -> classNotFoundException

2011-04-04 Thread Michael Dewitte
Thanks for the answer, but it didn't solve the problem... :-( 2011/4/4 David Karlsen > You can probably work around it by adding: > http://repo1.maven.org/maven2/org/slf4j/slf4j-simple/ > to the plugins dependency list. > > 2011/4/4 Michael Dewitte > > > Hi, > > > > I was trying to get some vis

Improvement of the Idempotent Repository

2011-04-04 Thread Christian Müller
Hello list! I'm thinking about to add a timestamp property to the idempotent repository (at least to the JDBC and JPA based one). The reason is the following: The individual records in our batch file doesn't have a unique id which we can use as key for the idempotent consumer. Our solution was to

Recommended approach for JMS polling consumer

2011-04-04 Thread Paul Lowry
Hi, I am using Camel 2.4.0 to define routes in XML (Spring configuration files). I want my route to read all messages from a JMS queue, at regular intervals. I also want to keep my route as simple as possible, for easy maintenance. When I look for info about this, there's lots of advice but nothi

Re: dot generation with maven plugin -> classNotFoundException

2011-04-04 Thread David Karlsen
You can probably work around it by adding: http://repo1.maven.org/maven2/org/slf4j/slf4j-simple/ to the plugins dependency list. 2011/4/4 Michael Dewitte > Hi, > > I was trying to get some visualisation of my developped route, and so I > tried the mvn camel:dot target on my route. > But then I g

dot generation with maven plugin -> classNotFoundException

2011-04-04 Thread Michael Dewitte
Hi, I was trying to get some visualisation of my developped route, and so I tried the mvn camel:dot target on my route. But then I got the following stacktrace. Any clue ? I use Camel 2.7.0 and my route is configured via Spring XML... [INFO] Running Camel embedded to load Spring XML files from cl

maven plugin

2011-04-04 Thread Mark Webb
I am testing some routes and would like to create some sample routes to "play" with. I am using maven to create these projects with the following command: mvn archetype:create -DgroupId=a.b.c.d -DartifactId=MyRouter -DarchetypeArtifactId=camel-router -DarchetypeGroupId=org.apache.camel This comm

Re: Route Question

2011-04-04 Thread Claus Straube
Hi. yes: http://camel.apache.org/schema/spring";> You can find this in the documentation:http://camel.apache.org/file2.html Claus On 04.04.2011 16:36, jpalmer1026 wrote: Hi, I'm working on an app where I need to conditi

Route Question

2011-04-04 Thread jpalmer1026
Hi, I'm working on an app where I need to conditionally route files based on filename. Ideally I'd like the list of filenames that need to be matched to be read in from an external file. Is there a simple way to do this using Camel? Something like the following?

Acknowledgement mechanism

2011-04-04 Thread ctapobep
When I receive a JMS message, I want to check it whether it's valid: - if it is, then I want to send acknowledgement to the replyTo and to continue the workflow - if it's not valid, then I want to send back an error and stop the chain of execution What mechanism in Camel would you advise? Seems l

Re: String processing with Apache Camel with Spring DSL

2011-04-04 Thread Muhammad Rayhan
Thanks John for the reply I tend to agree with you on POJO doing the parsing dirty work. Creating new POJO is actually the thing we want to avoid. Our team prefer configuring Spring DSL rather than using POJO. On this case where the parsing will be too complex, however, POJO maybe the cleanest sol

Re: Why camel:convertBodyTo type='org.w3c.dom.Document' can't work?

2011-04-04 Thread davsclaus
It has to be valid XML to be convertable to DOM. So fill in eg Hello World as the message body to have a valid XML content. - Claus Ibsen - FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Came

RE: http not cleaning up tmp files when exchange is stopped

2011-04-04 Thread davsclaus
Thanks. Can you post the route with the stop that fails deleting the tmp file? And if possible feel free to create a JIRA ticket about this issue http://camel.apache.org/support - Claus Ibsen - FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davscla

Re: JBoss 5.1.0 -> 6.0.0.Final (Camel Issues)

2011-04-04 Thread davsclaus
Can you guys try the attached JAR on the following JIRA https://issues.apache.org/jira/browse/CAMEL-3825 As its the JAR we want to ship officially from camel-extra for JBoss 6 support. - Claus Ibsen - FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter:

Re: Turn a route into a component

2011-04-04 Thread Sorin Silaghi
Hi, Thanks I think that helps. I am implementing a HTTP based protocol and I'd like to do it as an added layer. Sorin. On Mon, Apr 4, 2011 at 1:48 PM, Claus Straube wrote: > Hi. > > I'm not sure what you want to do, but perhaps the context component is > something for you. > > Claus > >

Re: Turn a route into a component

2011-04-04 Thread Claus Straube
Hi. I'm not sure what you want to do, but perhaps the context component is something for you. Claus On 04.04.2011 11:49, Sorin Silaghi wrote: Hi Is there any way to rurn a route into a camel component ? I'd like to do this because I want to add some higher level logic to an existing co

Re: Scheduling routes with RoutePolicy

2011-04-04 Thread mikaelfj
Hi, I've been trying it out using the noAutoStartUp() - which seems to make it work, i.e. let the route begin in a stopped state and then having a cron-schedule to start it at a given point in time. However, I need to have it to start and then stop a few hours later, but this does not work. If I

Re: multiple databases used in mybatis or ibatis in one route

2011-04-04 Thread Michael Dewitte
Hello, thanks to Claus and Richard, it worked ! So, to further help anyone who would have the same need : I wanted to be able to use MyBatis pointing to 2 different datasources in the same route. I use Camel 2.7.0 on ServiceMix (trunk). Using the spring dsl, my configuration was : http://www.s

Turn a route into a component

2011-04-04 Thread Sorin Silaghi
Hi Is there any way to rurn a route into a camel component ? I'd like to do this because I want to add some higher level logic to an existing component. regards Sorin

Re: String processing with Apache Camel with Spring DSL

2011-04-04 Thread John McDonald
If you are using Spring then I would be looking at a POJO to do this parsing work - routing to it using the beanRef - this would encapsulate your string manipulation and leave camel to perform delivery and routing. There are predicates and conditionals you could use in your dsl - but for my t

String processing with Apache Camel with Spring DSL

2011-04-04 Thread Muhammad Rayhan
Hi, this is my first email to this mailing-list. Although already knowing for some time, I only recently got the opportunity to deploy integration solution using Apache Camel. And Camel did wonder! I and my fellow friends were amazed by the concept and simplicity of Apache Camel Now, I have anothe

Re: Exchange.MAXIMUM_CACHE_POOL_SIZE is not affecting producers created by recipientList

2011-04-04 Thread Marco Crivellaro
Excellent! That is something I was looking for since Camel 2.5! -- View this message in context: http://camel.465427.n5.nabble.com/Exchange-MAXIMUM-CACHE-POOL-SIZE-is-not-affecting-producers-created-by-recipientList-tp4257273p4279856.html Sent from the Camel - Users mailing list archive at Nabbl

Re: Where to put...

2011-04-04 Thread Christian Schneider
That´s up to you. Camel does not enforce any naming scheme. For the spring config typical names are *-context.xml. If you use the java dsl then the class you need to extend is RouteBuilder. So often it is called *RouteBuilder but again it is not enforced. Christian Am 04.04.2011 00:52, schrie