Re: routingSlip and async destinations

2010-05-11 Thread Jon Anstey
In RoutingSlipCreator maybe add a slip like "jms:foo?exchangePattern=InOut,jms:bar?exchangePattern=InOut" instead of just the plain endpoint URIs. On Tue, May 11, 2010 at 7:12 PM, Scott Parkerson wrote: > Camel riders, > > I've got a route that makes use of the Routing Slip EIP. Right now, a > pr

Re: routingSlip and async destinations

2010-05-11 Thread Jon Anstey
Of course, in your case use activemq:foo not jms:foo :) On Tue, May 11, 2010 at 8:51 PM, Jon Anstey wrote: > In RoutingSlipCreator maybe add a slip like > "jms:foo?exchangePattern=InOut,jms:bar?exchangePattern=InOut" instead of > just the plain endpoint URIs. > > On Tue

Re: Out of Memory Crash with Seda (Camel 2.1.0)

2010-05-12 Thread Jon Anstey
Since JMX objects are piling up in your case, if you don't need JMX management of Camel concepts individually (like, you just start and stop Camel as a whole) you could just disable JMX altogether: -Dorg.apache.camel.jmx.disabled=true or http://camel.apache.org/schema/spring";> ... On

Re: camel-maven-plugin and System Properties

2010-05-26 Thread Jon Anstey
Try something like this: org.apache.camel camel-maven-plugin 2.2.0 java.util.logging.config.file logging.properties

Re: webservice to transform/enrich content

2010-05-26 Thread Jon Anstey
Try the following as the CXF endpoint URI cxf:// http://192.168.5.1:9763/services/myservice?wsdlURL=/services/myservice%3Fwsdl On Wed, May 26, 2010 at 2:04 PM, Francois Lefoll < francois.lef...@racinegroup.com> wrote: > > Hi, > > I got a remote webservice and I'm trying to use it to transform/en

Re: Deployment strategies

2010-05-31 Thread Jon Anstey
I haven't watched this myself, but there is a webinar on Camel deployment titled "Get Started with Camel Deployment" here: http://fusesource.com/resources/video-archived-webinars That may help you out before the next book update. On Mon, May 31, 2010 at 1:37 PM, Taariq Levack wrote: > Great, I

Re: How Do We Specify Operation To Choose In Camel CXf

2010-06-01 Thread Jon Anstey
You just have to set the operationName header before invoking the CXF endpoint. Something like this if you want to do this within a route: ... myOperation ... On Tue, Jun 1, 2010 at 4:01 PM, Carlo Camerino wrote: > Hi, > > how do you specify the operation which camel

Re: Wiki web page : camel aggregator not up to date for camel 2.x

2010-06-07 Thread Jon Anstey
Were you looking at http://camel.apache.org/aggregator.html or http://camel.apache.org/aggregator2.html? aggregator2.html has the most up to date config for Camel 2.3 and greater versions. On Mon, Jun 7, 2010 at 9:34 AM, Charles Moulliard wrote: > Hi, > > I think that the wiki page of camel aggre

Re: Is Camel working with Websphere MQ/MQseries as well?

2010-06-26 Thread Jon Anstey
For WMQ another user posted some notes here: http://camel.465427.n5.nabble.com/Camel-and-IBM-MQ-Series-td476223.html#a476223 I would say in general most JMS brokers should be supported. I've seen a few folks over the

Re: example using produce annoation with ref

2010-08-18 Thread Jon Anstey
There could be an example in the unit tests of the camel-spring module - you may want to check there. You should be able to define an endpoint in the Spring XML file like http://camel.apache.org/schema/spring";> ... and then ref that endpoint in the annotation. Let me know if this doesn't w

Re: IBM Websphere MQ <--> Camel routes

2011-02-01 Thread Jon Anstey
targetClient is a WMQ option so you need to set that on the JMS destination name, not the Camel endpoint URI: ... .setHeader("CamelJmsDestinationName", constant("queue:///MY_QUEUE?targetClient=1")) .to("ibmmq:queue:MY_QUEUE?useMessageIDAsCorrelationID=true"); On Tue, Feb 1, 2011 at 11:35 AM, Clau

Re: errorHandlerRef - camel route vs camel context

2009-08-11 Thread Jon Anstey
Yeah, the scope of the error handler is different in those two cases. When added to the camelContext, it applies to all routes in the context. When applied to a single route, it only applies to that route. On Tue, Aug 11, 2009 at 10:10 AM, Charles Moulliard wrote: > Hi, > > I would like to know i

Re: errorHandlerRef - camel route vs camel context

2009-08-11 Thread Jon Anstey
I think I jumped the gun here... that was a bit obvious :) Charles, are you noticing other differences in behavior? On Tue, Aug 11, 2009 at 10:19 AM, Jon Anstey wrote: > Yeah, the scope of the error handler is different in those two cases. When > added to the camelContext, it applies

Re: errorHandlerRef - camel route vs camel context

2009-08-11 Thread Jon Anstey
ld say yes. If this is not the case, we probably need to fix it :) > > > Regards, > > Charles Moulliard > Senior Enterprise Architect > Apache Camel Committer > > ********* > blog : http://cmoulliard.blogspot.com > > > On Tue, Aug 11, 2009 at 2:5

Re: human friendliness of camel

2009-10-06 Thread Jon Anstey
I know lately I've been designing most of my Camel apps using a combination of Spring configuration and Java RouteBuilder classes... something like ... http://camel.apache.org/schema/spring";> Which keeps things nice and separated. Also, if visualization is something

Re: reading endpoints from a properties file

2009-10-14 Thread Jon Anstey
You should be able to use a PropertyPlaceholderConfigurer [1] to load up the properties file and then use a URI like uri="${serviceOne}" [1] http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/beans/factory/config/PropertyPlaceholderConfigurer.html On Wed, Oct 14, 2009 at 2:2

Re: reading endpoints from a properties file

2009-10-14 Thread Jon Anstey
Oh yeah, forgot about that issue! FYI there is a workaround before we upgrade to Spring 3 http://cmoulliard.blogspot.com/2009/05/trick-to-pass-uri-declared-in-property.html On Wed, Oct 14, 2009 at 2:47 PM, tide08 wrote: > > Unfortunately spring property place holder cannot replace vars in camel

Re: Running Camel Examples with Maven in version 2.0.0

2009-10-15 Thread Jon Anstey
Whoa, that is bad. I tried out the latest from http://repo2.maven.org/maven2/org/apache/camel/apache-camel/2.0.0/apache-camel-2.0.0.tar.gzand it only seems that examples/camel-example-tracer/pom.xml has the SNAPSHOT (still bad of course but not as bad as all examples containing SNAPSHOTs!). Btw wh

Re: Running Camel Examples with Maven in version 2.0.0

2009-10-15 Thread Jon Anstey
No worries. Thanks for reporting this. I think I have a fix for the next release :) On Thu, Oct 15, 2009 at 11:20 AM, Ryadh Amar wrote: > > Hi Janstey, > Looks like I was wrong, I really believed that all the examples were > affected... > Excuse the haste :D > But as you've noticed, camel-tracer

Re: Problem of skipped items/stories in Camel RSS reader

2009-11-05 Thread Jon Anstey
Yeah, I considered using Apache Abdera to do the RSS support under the hood but at the time it was just a bit of code in a sandbox. Now, its still not released anywhere :) I guess for now we'll just stick with ROME. Though, maybe in the future we can consider Abdera if it is better. On Thu, Nov 5,

Re: Geronimo 2.2 Release Status

2009-11-15 Thread Jon Anstey
I have no idea about the Geronimo release plans. I've copied the Geronimo users list for further info. On Sun, Nov 15, 2009 at 4:51 PM, frapien wrote: > > How are the plans? Will Geronimo 2.2 get out this year? > Are there any open isues? Releaseplan speaks from Proposed Release date: > 3Q2009 >

Re: Release plans for Camel 2.1

2009-11-15 Thread Jon Anstey
I think we're aiming to have 2.1 available by the end of the year. On Sun, Nov 15, 2009 at 5:15 PM, frapien wrote: > > are there any release plans with dates for Camel 2.1? > http://camel.apache.org/camel-210-release.html > Thanks for sharing, Frank > -- > View this message in context: > http://

Re: Cyclic dependency in latest 2.1-SNAPSHOT

2009-11-17 Thread Jon Anstey
Oops! Will fix that up right away. On Tue, Nov 17, 2009 at 3:46 PM, Claus Ibsen wrote: > Hi > > This was a bad commit recently. > > Jonathan, you should move the jms based test you added in camel-test > to camel-jms. > camel-test should just be the test API and have no dep. on any other > than t

Re: Are sources not published for snapshot builds by design?

2009-11-24 Thread Jon Anstey
Hey guys, I just updated Hudson to deploy source jars and kicked off a new build. Lemme know if it doesn't work. On Tue, Nov 24, 2009 at 4:40 PM, Claus Ibsen wrote: > On Tue, Nov 24, 2009 at 8:05 PM, Barry Kaplan wrote: > > > > Its a bit painful to have to generate and install the source jars

Re: Are sources not published for snapshot builds by design?

2009-11-24 Thread Jon Anstey
Oh, and it *shouldn't* add too much to the build time... famous last words ;) On Tue, Nov 24, 2009 at 9:19 PM, Jon Anstey wrote: > Hey guys, > > I just updated Hudson to deploy source jars and kicked off a new build. > Lemme know if it doesn't work. > > > On Tue,

Re: Are sources not published for snapshot builds by design?

2009-11-25 Thread Jon Anstey
So I enabled javadoc too yesterday, which does take a long time to generate... The build should now only be deploying source jars. On Tue, Nov 24, 2009 at 9:19 PM, Jon Anstey wrote: > Oh, and it *shouldn't* add too much to the build time... famous last words > ;) > > > On Tu

Re: Are sources not published for snapshot builds by design?

2009-11-27 Thread Jon Anstey
tions: https://issues.apache.org/jira/browse/INFRA-2352 On Fri, Nov 27, 2009 at 3:13 AM, Claus Ibsen wrote: > On Wed, Nov 25, 2009 at 1:53 PM, Jon Anstey wrote: > > So I enabled javadoc too yesterday, which does take a long time to > > generate... The build should now only be d

Re: How to break from routing slip in camel on exception?

2009-12-01 Thread Jon Anstey
Just took a look into this and found that setting the Exception on the Exchange doesn't really break you out of the routing slip as you want. I'm gonna fix that up on the trunk. But, throwing an Exception from a recipient does stop the routing slip. See this test case for an example http://svn.apac

Re: How to break from routing slip in camel on exception?

2009-12-01 Thread Jon Anstey
FYI I've fixed this on the trunk here http://svn.apache.org/viewvc?rev=885876&view=rev On Tue, Dec 1, 2009 at 3:39 PM, Jon Anstey wrote: > Just took a look into this and found that setting the Exception on the > Exchange doesn't really break you out of the routing slip as y

Re: How to break from routing slip in camel on exception?

2009-12-01 Thread Jon Anstey
on is thrown by the > recipient. I guess I need to upgrade to the latest version. Thanks for the > quick fix. > > > > janstey wrote: > > > > FYI I've fixed this on the trunk here > > http://svn.apache.org/viewvc?rev=885876&view=rev > > > > On

Re: maven pom unable to resolve artifact?

2009-12-14 Thread Jon Anstey
Try adding this repo: camel.internal.maven.repository Camel internal Maven Repo http://svn.apache.org/repos/asf/camel/m2-repo On Mon, Dec 14, 2009 at 3:23 PM, Gareth Williams < gareth.willi...@firstclarity.com> wrote: > > I have a camel 2.0 project, and I am using maven. if i type > mvn

Re: Help to understand xpath expression in camel routebuilder

2009-12-14 Thread Jon Anstey
The xpath expression is going to be evaluated against the incoming message body. So, if we have a message like: http://dzone.com/insurance";> ... the first when clause will evaluate to true since the xpath expression is searching for any element like "TravelInsuranceRequest". The namespace bit

Re: start/stop routes programmatically

2009-12-14 Thread Jon Anstey
You can set custom ids for each route like this: from("activemq:queue1").id("InboundRoute").to("activemq:queue2"); from("activemq:queue2").id("ProcessingRoute").to("activemq:queue3"); in the Spring DSL you can just use standard id attributes like: ... ... On Mon, Dec 14, 2009 at 9:45 PM, boday

Re: start/stop routes programmatically

2009-12-14 Thread Jon Anstey
"); > from("activemq:queue2").routeId("ProcessingRoute").to("activemq:queue3"); > > Willem > > > Jon Anstey wrote: > >> You can set custom ids for each route like this: >> >> from("activemq:queue1").id("InboundRoute&qu

Re: Help to understand xpath expression in camel routebuilder

2009-12-15 Thread Jon Anstey
On Tue, Dec 15, 2009 at 9:43 AM, Kenneth H wrote: > > Hi Jon, > > Your answer definitely helped. I have a couple of more questions though: > > 1. Where can I read about the ".namespace()" function syntax? I still don't > get why "ins" is used in both functions. I tried w3schools but didn't find >

Re: Help to understand xpath expression in camel routebuilder

2009-12-15 Thread Jon Anstey
On Tue, Dec 15, 2009 at 11:26 AM, Kenneth H wrote: > > > 1. Where can I read about the ".namespace()" function syntax? I still > don't > > get why "ins" is used in both functions. I tried w3schools but didn't > find > > it. > > > >Did you find this page? > >http://www.w3schools.com/XML/xml_namesp

Re: Maven problem

2009-12-15 Thread Jon Anstey
Hmm... the pom.xml file looks fine from the actual Apache snapshot repo https://repository.apache.org/content/repositories/snapshots/org/apache/camel/camel-spring-integration/2.1-SNAPSHOT/camel-spring-integration-2.1-SNAPSHOT.pom I'm assuming cde.foobar.com is an internal URL for you? :) Your Nex

Re: Maven problem

2009-12-15 Thread Jon Anstey
Also maybe try deleting your local cache of that file. Like delete the following: c:\.m2\org\apache\camel\camel-spring-integration On Tue, Dec 15, 2009 at 12:36 PM, Jon Anstey wrote: > Hmm... the pom.xml file looks fine from the actual Apache snapshot repo > > > https://repositor

Re: Help to understand xpath expression in camel routebuilder

2009-12-15 Thread Jon Anstey
On Tue, Dec 15, 2009 at 1:33 PM, Kenneth H wrote: > > > On Tue, Dec 15, 2009 at 11:26 AM, Kenneth H wrote: > > > > > 1. Where can I read about the ".namespace()" function syntax? I still > > don't > > > get why "ins" is used in both functions. I tried w3schools but didn't > > find > > > it. > >

Re: Help to understand xpath expression in camel routebuilder

2009-12-15 Thread Jon Anstey
On Tue, Dec 15, 2009 at 1:33 PM, Kenneth H wrote: > > > On Tue, Dec 15, 2009 at 11:26 AM, Kenneth H wrote: > > > > > 1. Where can I read about the ".namespace()" function syntax? I still > > don't > > > get why "ins" is used in both functions. I tried w3schools but didn't > > find > > > it. > >

Re: Help to understand xpath expression in camel routebuilder

2009-12-16 Thread Jon Anstey
In JBI applications, each SU has its own classloader so I *think* if you make sure that your custom classes are available on the Camel SU's classpath and the JMS SU's classpath all will be well. On Tue, Dec 15, 2009 at 5:50 PM, Kenneth H wrote: > > > > One last novice question. In the statement:

Re: Help to understand xpath expression in camel routebuilder

2009-12-16 Thread Jon Anstey
Have you created a mapping file for your custom class? You need to provide JiBX with a mapping file so it knows how to do the marshalling. In the article, they've defined one for their classes in InsuranceSMDZone/jibx/InsuranceMapping.xml On Wed, Dec 16, 2009 at 1:43 PM, Kenneth H wrote: > > > j

Re: Help to understand xpath expression in camel routebuilder

2009-12-16 Thread Jon Anstey
Hmm... JBI deployment question eh... not really sure how to help you off the top of my head to be honest! Maybe try us...@servicemix.apache.org? On Wed, Dec 16, 2009 at 2:35 PM, Kenneth H wrote: > > - sorry for all the posts Jon... > > If you look at the original Ant build file, you see ("." inf

Re: The latest camel java archetype (2.1.0) is not working correctly

2009-12-23 Thread Jon Anstey
Darn! Looks like a change I made to support Maven 3 broke Maven 2. I've put a fix on trunk so the artifact/group substitution will work for next time. On Wed, Dec 23, 2009 at 2:59 PM, Ryadh Amar wrote: > > Hello Community, > When I run the following > mvn archetype:generate -DarchetypeGroupId=org

Re: Publish source jar files to maven repository

2010-01-06 Thread Jon Anstey
I set up Hudson to deploy the source jars a while ago but there was some problem... the issue is tracked here https://issues.apache.org/jira/browse/INFRA-2352 Hopefully we can get a resolution to this soon! On Wed, Jan 6, 2010 at 9:10 AM, Willem Jiang wrote: > Hi > > We publish the source jar w

Re: How does Camel work with ActiveMQ ?

2010-01-26 Thread Jon Anstey
Here is some AMQ documentation about that http://activemq.apache.org/enterprise-integration-patterns.html On Tue, Jan 26, 2010 at 12:57 PM, Claus Ibsen wrote: > On Tue, Jan 26, 2010 at 5:21 PM, BenXS wrote: > > > > Hi Ashwin, > > thank you for response. But this procedure seems to me rather > l

Re: Procedure to format AND checkstyle in Eclipse according to Camel rules ?

2009-01-27 Thread Jon Anstey
Spot on Ramon. You can also tell Maven where your Eclipse workspace actually is like so mvn -Psetup.eclipse -Declipse.workspace.dir=/path/to/your/workspace On Tue, Jan 27, 2009 at 9:28 AM, Ramon Buckland wrote: > cc'd to dev@ > > Thanks Charles, I have/had the same question. > > Once it is in e

Re: splitter bean as expression

2009-01-30 Thread Jon Anstey
Also, theres some test code here http://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/SplitterMethodCallTest.java http://svn.apache.org/repos/asf/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/processor/SpringSplitterMethodCallT

Re: restlet usage / process

2009-02-02 Thread Jon Anstey
The latest 2.0-SNAPSHOT should contain the fix since its dated Feb 1 http://people.apache.org/maven-snapshot-repository/org/apache/camel/apache-camel/2.0-SNAPSHOT/apache-camel-2.0-20090201.110840-21.zip On Mon, Feb 2, 2009 at 3:32 PM, nojonojo wrote: > > > I see that http://issues.apache.org/ac

Re: content router question

2009-02-09 Thread Jon Anstey
Try using a bean expression in a choice route from("direct:start").choice() .when().method("myBean", "bodyContainsOne").to("mock:x") .otherwise().to("mock:y"); where the bean looks like static class MyBean { public static boolean bodyContainsOne(@Body String messageBody) { return

Re: DSL and XPath

2009-02-10 Thread Jon Anstey
When using XPath, the message body must be valid XML. You can modify your message body from "body" to "" (or something like that) to get around this error. Or you can use some other expression language that doesn't require XML messages to do the checking (Java bean, EL, Groovy, etc.) On Tue, Feb 1

Re: content router question

2009-02-11 Thread Jon Anstey
Hmmm looks like my response to this question didn't make it to the old mail list. I sent to users@camel.apache.org but it looks like nabble is only showing stuff from camel-u...@activemq.apache.org On Mon, Feb 9, 2009 at 1:15 PM, Jon Anstey wrote: > Try using a bean expression in

Re: content router question

2009-02-11 Thread Jon Anstey
ed, Feb 11, 2009 at 2:26 PM, Jon Anstey wrote: > > Hmmm looks like my response to this question didn't make it to the > old > > mail list. I sent to users@camel.apache.org but it looks like nabble is > only > > showing stuff from camel-u...@activemq.apache.org

Re: Newbie Question - Content Filtering

2009-02-19 Thread Jon Anstey
Try filtering using a custom bean expression instead. Something like this from("jms:queue:testQueue").filter().method("myTestDBFilter", "hasNewContent").to("jms:queue:otherTestQueue"); Where your bean would be something like this class TestDBFilter { public static boolean hasNewConte

Camel Article

2009-03-23 Thread Jon Anstey
I recently wrote up an article on Apache Camel for DZone. Check it out if you're interested! http://architects.dzone.com/articles/apache-camel-integration -- Cheers, Jon http://janstey.blogspot.com/

Re: SCA Integration

2009-04-01 Thread Jon Anstey
On Wed, Apr 1, 2009 at 4:38 AM, Willem Jiang wrote: > Are you kidding ? I think we'll be getting a lot of this today. Just take a peek at James' latest blog post ;) lol! > > The SCA that I am talking about is Service Component Architecture, and > Apache tuscany[1] provides an implementation

Re: Visio stencil of the EIP patterns relooked for Apache Camel

2009-04-17 Thread Jon Anstey
Charles, Very nice icons! The gear one looks cool. This will certainly ease the creation of pretty EIP diagrams. Incidentally I toyed with the idea of creating a stencil for my icons here http://architects.dzone.com/sites/all/files/riderAutoEips1_0.jpg ... but never got started on it. I find graph

Re: Visio stencil of the EIP patterns relooked for Apache Camel

2009-04-17 Thread Jon Anstey
re is a picture of what I have done for the second part of my tutorial ( > http://cwiki.apache.org/confluence/download/attachments/113428/routing.jpg > ). > So you see the icons in action > > Regards, > > Charles > > On Fri, Apr 17, 2009 at 3:06 PM, Jon Anstey wrote: > &g

Re: Composed Message Processor

2009-04-19 Thread Jon Anstey
FYI there are some docs on the composed message processor here http://camel.apache.org/composed-message-processor.html as well as a unit test here http://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ComposedMessageProcessorTest.java On Sun, Apr 19, 2009

Re: Camel Printing

2009-05-15 Thread Jon Anstey
As far as interest goes, I think a lot of people would find this very useful. From my own experience I know message queuing + label printing is very popular in the manufacturing sector. Looking forward to more on this project! :) On Fri, May 15, 2009 at 7:32 AM, Martin Gilday wrote: > Hi, > > Th

Re: RSSUri format

2009-05-20 Thread Jon Anstey
This was fixed recently (see https://issues.apache.org/activemq/browse/CAMEL-1496) and so will be available in the next release. 2.0-SNAPSHOT contains the fix if you want to try it out. SNAPSHOTS are in this repo https://repository.apache.org/content/groups/snapshots-group On Wed, May 20, 2009 at

Re: Enterprise Integration Patters Icons for OpenOffice Draw

2009-06-15 Thread Jon Anstey
Nice work Marco! Mind if I attach this to the Camel wiki? I think this will be useful to a lot of people. On Mon, Jun 15, 2009 at 11:28 AM, Marco Garbelini wrote: > Hi, > > I went through the trouble of "converting" some of the icons from the Visio > stencil available at the Camel documentation p

Re: Enterprise Integration Patters Icons for OpenOffice Draw

2009-06-15 Thread Jon Anstey
FYI I've added it to this page http://cwiki.apache.org/confluence/display/CAMEL/Enterprise+Integration+Patterns On Mon, Jun 15, 2009 at 1:25 PM, Marco Garbelini wrote: > Hi, > > Not at all, go ahead. That's the idea. > > /Marco > > > On Mon, Jun 15, 2009 at 5:1

Re: Velocity component use of org.apache.camel.velocity.resourceUri header

2009-07-21 Thread Jon Anstey
That header is actually what the camel-velocity component *sets* on the message. You can't use it to dynamically configure the template. To do that you'll probably need to create a custom bean that creates a velocity endpoint and sends to it based on what template you need. Something like pub

Re: Velocity component use of org.apache.camel.velocity.resourceUri header

2009-07-22 Thread Jon Anstey
Yeah, you kinda have to read it a few times to catch that :) I've updated the docs to be a bit more explicit. If you want to extend VelocityEndpoint to reload templates most of the work is already done in the onExchange method (it already creates a new velocity context every time). Though, if you

Re: File Component (2.0-M2) not polling

2009-07-22 Thread Jon Anstey
I think your main method is terminating before Camel has a chance to do anything. org.apache.camel.spring.Main actually starts up a new main thread and waits for completion so it doesn't exit right away. If it fits your usecase, I would recommend just using org.apache.camel.spring.Main. Cheers, J

Re: How to replace hard coded URIs?

2013-05-07 Thread Jon Anstey
Take a look at http://camel.apache.org/properties.html to see how to use a property for a URI. On Mon, May 6, 2013 at 11:00 AM, Al Ferguson wrote: > Hi, > > I defined the following route that works very well. > > However, I have to read the URIs of the 3 services from ZooKeeper nodes. > > How t

Re: How to replace hard coded URIs?

2013-05-07 Thread Jon Anstey
Ah you wanted dynamic URIs - I thought you meant you wanted the initial route configured at startup (i.e. once). enrich() doesn't support dynamic URIs ATM. See https://issues.apache.org/jira/browse/CAMEL-4596 for more info and work around. Basically you have to create a bean that then uses a consum

Re: How do we have the "log:" component log to a file?

2013-05-07 Thread Jon Anstey
The log component utilizes whatever underlying logging mechanism you are using, like log4j or logback, etc. For log4j just google something like org.apache.log4j.RollingFileAppender and you'll find config options to add to log4j.properties. On Tue, May 7, 2013 at 5:35 PM, Chris Wolf wrote: > I

Re: Error when start camel-jackson

2013-05-07 Thread Jon Anstey
What version of Karaf are you using? I just tried Karaf 2.3.1, ran the following and all was well" features:chooseurl camel 2.11.0 features:install camel-jackson On Tue, May 7, 2013 at 10:19 PM, skysw...@gmail.com wrote: > Hi > > When I want to start camel-jackson 2.11.0 in karaf, I got the fo

fw: hello

2013-07-21 Thread Jon Anstey
http://personeelsservice-kwb.nl/tcxfv/hniyxuwxstblt janstey 7/21/2013 5:52:25 PM

Re: fw: hello

2013-07-21 Thread Jon Anstey
Please don't click this link. Some hacker in Belarus hijacked my account today and sent this out. Cheers, Jon On 2013-07-21 2:23 PM, "Jon Anstey" wrote: > http://personeelsservice-kwb.nl/tcxfv/hniyxuwxstblt > > > > > > > > > > > > > >

Re: camel threshold

2013-08-12 Thread Jon Anstey
Routes keep going until they are paused or stopped. Your best bet is probably a custom RoutePolicy http://camel.apache.org/routepolicy.html that does the custom throttling (pausing or stopping a route i guess) after X exchanges. On Mon, Aug 12, 2013 at 7:53 AM, kiranreddykasa wrote: > Hi > > How

Re: Scala DSL - How do I give a route an id?

2012-07-30 Thread Jon Anstey
Did you try using routeId? from("direct:start") .routeId("foo") ... On Mon, Jul 30, 2012 at 1:59 PM, Lance Walton wrote: > Hi. > > I'm using the Scala DSL to add routes to the CamelContext. However, I also > want to be able to remove some of these routes from the CamelContext la

Re: Scala DSL - How do I give a route an id?

2012-07-30 Thread Jon Anstey
hat I want to do but with the Scala DSL. > > Regards, > > Lance > > > > On 30 Jul 2012, at 17:46, Jon Anstey wrote: > > > Did you try using routeId? > > > >from("direct:start") > > .routeId("foo") > > ... >

Re: DSL trim on body of type string

2012-08-01 Thread Jon Anstey
Try this: from(...).transform().simple("${in.body.trim()}")... On Wed, Aug 1, 2012 at 8:47 AM, cgsk wrote: > Hi There, > > I need to do trim() on the body of type String in the DSL. Is there any > staright way out in camel by using transform/convertor/regex? I dont prefer > writing something so

Re: Shutting down camel from a test!

2011-03-11 Thread Jon Anstey
If you just want to start a simple Camel app and then shutdown, there is no requirement to use a test case - you can just use a standard main method like in the jms-file example: http://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-jms-file/src/main/java/org/apache/camel/example/jmst

Re: Bridging from JMS to Websphere

2011-03-11 Thread Jon Anstey
FYI when I was successfully using that targetClient option mentioned in the wiki, it was connecting to WMQ with the new OSGi client libs (ex com.ibm.mq.osgi.directip_7.0.1.1.jar, com.ibm.msg.client.osgi*_7.0.1.1.jar). Not sure if that makes any different here. Cheers, Jon On Fri, Mar 11, 2011 at

Re: Dynamic URI in Java DSL

2011-03-11 Thread Jon Anstey
>From the compoment page http://camel.apache.org/freemarker.html you can use the CamelFreemarkerResourceUri header for this: from("direct:in"). setHeader("CamelFreemarkerResourceUri").constant("path/to/my/template.ftl"). to("freemarker:dummy"); Just use a simple expression instead of constant

Re: Custom exclusiveReadLockStrategy in Servicemix + Camel

2011-06-23 Thread Jon Anstey
Are you using the same exact version of Camel in your pom.xml and SMX install? On Thu, Jun 23, 2011 at 2:15 PM, Laurentiu Trica < laurentiu.tr...@moredevs.ro> wrote: > Hi everyone, > > I have a problem using the exclusiveReadLockStrategy for Ftp2 component. > I implemented the GenericFileExclusiv

Re: example app to embed camel-web-console

2011-06-23 Thread Jon Anstey
Yeah, what Taariq suggested should work. Keep in mind that when you specify camel-web as a dependency, the maven-jetty-plugin will overlay the camel webconsole web app in your own web app and run it as one web app. You would probably have to have multiple executions of the maven-jetty-plugin in you

Re: example app to embed camel-web-console

2011-06-23 Thread Jon Anstey
Instead of maven-jetty-plugin use the newer jetty-maven-plugin which does overlay properly org.mortbay.jetty jetty-maven-plugin 7.2.2.v20101205 since this is an overlay (2 WARs merged into 1), the web.xml file from the Camel web console is overwritten by your

Re: example app to embed camel-web-console

2011-06-27 Thread Jon Anstey
Now it depends on what jar you are talking about but in general since a WAR classloader is flat, you can't have two versions of the same class... so you will either have to find some way of using the same version of this jar in your application as Camel uses or separate this into 2 WARs. On Fri, J

Re: Custom exclusiveReadLockStrategy in Servicemix + Camel

2011-06-27 Thread Jon Anstey
he same version but it doesn't work either. > > Any other ideas? > > On Thu, Jun 23, 2011 at 4:28 PM, Jon Anstey wrote: > > > Are you using the same exact version of Camel in your pom.xml and SMX > > install? > > > > On Thu, Jun 23, 2011 at 2:15 P

Re: why i building camel2.7.2 use maven install error?

2011-06-30 Thread Jon Anstey
FYI I can build Camel trunk fine with IBM JDK 1.6.0 on Linux. So least that platform works :) janstey@duffman:/x1/asf/camel/trunk$ mvn --version Apache Maven 3.0.2 (r1056850; 2011-01-08 21:28:10-0330) Java version: 1.6.0, vendor: IBM Corporation Java home: /opt/ibm-java-i386-60/jre Default locale:

Re: why i building camel2.7.2 use maven install error?

2011-06-30 Thread Jon Anstey
Yeah, I built with mvn clean install -Dtest= Trying now without the -Dtest= On Thu, Jun 30, 2011 at 11:50 AM, Daniel Kulp wrote: > On Thursday, June 30, 2011 11:29:00 AM Jon Anstey wrote: > > FYI I can build Camel trunk fine with IBM JDK 1.6.0 on Linux. So least > that > &

Re: XML to XSLT in camel using Queue's

2011-07-04 Thread Jon Anstey
If you want to send an element to a queue, you can just use xpath something like from("file:/path/to/my/files").setBody().xpath("/foo/bar").to("jms:queue:myQueue"); that will take the element and send that to myQueue. For information about using Camel in a blueprint container see http://camel.a

Re: ProducerTemplate is not started

2011-07-04 Thread Jon Anstey
What version of Camel are you using? Wondering if you are using a SNAPSHOT such that the code may have changed since Friday :) On Mon, Jul 4, 2011 at 8:43 AM, ctapobep wrote: > Dunno why, but from time to time my integration tests fail with: > > /java.lang.IllegalStateException: ProducerTemplate

Re: Is ActiveMQComponent automatically pooled?

2011-07-20 Thread Jon Anstey
Looks like org.apache.activemq.pool.PooledConnectionFactory is used by default if you don't override the connectionFactory property. Cheers, Jon On Wed, Jul 20, 2011 at 12:24 PM, Brendan Long wrote: > The ActiveMQ section of the help isn't clear on this. In one of the > examples, it looks like

Re: To set client authentication false in SSL communication using Camel-netty 2.6

2011-08-01 Thread Jon Anstey
Most likely this was just the most common configuration used. Setting the auth required to false is possible though. To do this you'll need to set the sslHandler property on the producer URI. For example: ...to("netty:tcp://localhost:12345?sslHandler=#myHandler"); You can see how the default SSL

Re: maxConcurrentConsumers and idling

2011-08-01 Thread Jon Anstey
That looks like a new property in Spring 3... we should add that option to camel-jms but for now you should be able to make your own custom JmsConfiguration class (extending the Camel JmsConfiguration one) and override configureMessageListenerContainer to set up your idleConsumerLimit value. You ca

Re: maxConcurrentConsumers and idling

2011-08-01 Thread Jon Anstey
FYI idleConsumerLimit will be configurable in the next release of Camel (2.9) see https://issues.apache.org/jira/browse/CAMEL-4290 On Mon, Aug 1, 2011 at 2:41 PM, Claus Ibsen wrote: > Hi Tommy > > Fell free to create a JIRA ticket as I there may be new/missing > options from DMLC that we have no

Re: maxConcurrentConsumers and idling

2011-08-01 Thread Jon Anstey
t around until shutdown in any case. > > > This one is currently supported in camel-jms but even with > concurrentConsumers=2&maxConcurrentConsumers=20&IdleTaskExecutionLimit=1, > the consumer count stays at 20 after idling > 5 minutes. > > > On Mon, Aug 1

Re: Can't use jersey library classes within processor

2011-08-02 Thread Jon Anstey
Make sure you are using m2eclipse as well. Like Willem said, adding a dependency to your pom.xml file will get the lib added to the project classpath. A good m2eclipse reference is here http://www.sonatype.com/books/m2eclipse-book/reference/ Cheers, Jon On Tue, Aug 2, 2011 at 4:32 AM, Willem Jian

Re: To set client authentication false in SSL communication using Camel-netty 2.6

2011-08-03 Thread Jon Anstey
Good idea. I've created https://issues.apache.org/jira/browse/CAMEL-4303 to track this. On Wed, Aug 3, 2011 at 3:59 AM, Claus Ibsen wrote: > On Mon, Aug 1, 2011 at 6:02 PM, Jon Anstey wrote: > > Most likely this was just the most common configuration used. Setting the > &

Re: How print header without square brackets

2011-08-04 Thread Jon Anstey
The brackets are there I'm guessing because your file_header header is some sort of Java collection? You can most likely do an inline trim or substring using another scripting language instead of "simple" - Groovy for example http://camel.apache.org/groovy.html. But it would be just as easy to crea

Re: camel-example-cxf-proxy need help

2011-08-04 Thread Jon Anstey
Some more context from the logs would help like maybe the full stack trace so we can see which bit is failing. Cheers, Jon On Thu, Aug 4, 2011 at 4:22 PM, chandraprabha wrote: > Hi All, > > Please help . > > I am using the camel-example-cxf-proxy profile with fuse camel . > > I deployed it as it

Re: Strange behavior of Camel-Bindy and windows

2011-08-05 Thread Jon Anstey
Hi Achim, This could be a Windows only problem occurring... but you could try putting a before the unmarshal to see if loading the file content into memory will workaround this. Cheers, Jon On Fri, Aug 5, 2011 at 12:11 PM, Achim Nierbeck wrote: > Hi > > I do have a very strange behavior with >

Re: Maven dependencies for camel-ftp

2011-08-23 Thread Jon Anstey
What was the error message and what Camel version are you using? camel-ftp shouldn't require camel-spring. On Tue, Aug 23, 2011 at 12:45 PM, Tristan23 wrote: > I made a simple example using Camels FTP component. For that I added > camel-ftp > to my pom.xml file. > > Unfortunately when runni

Re: Cipher type definable?

2011-08-25 Thread Jon Anstey
Don't think there is an option for that. You'll have to manually configure a JSch instance with the ciphers you want. Cheers, Jon On Thu, Aug 25, 2011 at 10:58 AM, laxad wrote: > I am using SFTP component and my new requirement is to specify the type of > cipher going to be used for the transfe

  1   2   >