Re: Updating properties via JMX

2013-10-02 Thread Claus Ibsen
You can turn off cache (eg cache=false) and the Camel properties component / properties placeholder will lookup on each request. Though mind endpoints which has been looked up during startup will not be automatic updated, when a property is changed using JMX. You will have to use the dynamic-to w

Re: Web Services consumer scenario - advice / ideas?

2013-10-02 Thread Claus Ibsen
Hi You can use camel-jetty as a pure http based server http://camel.apache.org/jetty Or the camel-netty-http can be a http server http://camel.apache.org/netty-http Also camel-cxf can use dataFormat=MESSAGE which gives you the full xml content. Then that would be more similar to what camel-jett

Re: Camel + RESTLET in Tomcat/Jetty

2013-10-02 Thread Klaus777
Issue resolved as described here: http://stackoverflow.com/questions/19128361/restlet-on-camel-with-jetty/19148768#19148768 -- View this message in context: http://camel.465427.n5.nabble.com/Camel-RE

IdempotentConsumer; custom key

2013-10-02 Thread fs
Hi, we have implemented a IdempotentRepository that uses MongoDB for persisting the idempotent keys. It worked fine when we used a String as the idempotent key. But now we need to use a compound key (CompoundId) that consists of three fields of type String. The IdempotentRepository definition is

Web Services consumer scenario - advice / ideas?

2013-10-02 Thread alapaka
Hi all; sorry for the verbose post... I have a particular scenario for implementing a Web Services consumer: I have several services I would like to provide; some will be provided as REST and JSON, some as SOAP, some as all 3; For the SOAP/xml based services, I already have xml schema. The imple

Re: dynamicly change the url of the element after the camelcontext is started

2013-10-02 Thread Babak Vahdat
Hi Sorry for the confusion, given your concrete use-case I just added a test showing how you can achieve this "dynamic" behaviour: http://git-wip-us.apache.org/repos/asf/camel/diff/17f9678a Babak salemi wrote > Thanks Babak. > > When Spring comes up and it tries to resolve the properties for

Re: Moving from Spring 3.0.6 to 3.2.3 results in exception - Cannot find any Camel Context from the Application Context.

2013-10-02 Thread Christian Müller
You should mention the Camel version you are using... Best, Christian Am 02.10.2013 19:07 schrieb "MichaelAtSAG" : > Overview > > We have built a Camel application that runs as both stand-alone jar and > webapp in tomcat. The application works fine in Spring version 3.0.6, yet > results in except

Camel Ftp

2013-10-02 Thread Zulio84
Hello everybody, I'm trying to achieve the following scenario: 1. read a file using the FTP component, once you read the contents of this file via another endpoint FTP i fetch a second file; (In both cases, I use the inputstream content in the body). 2. Now I would like to replace the body of th

Re: Updating properties via JMX

2013-10-02 Thread PMulido
Fair enough. Let me rephrase it this way: Is there a way one could write an MBean to list / get / set properties that Camel currently accesses via the {properties:XYZ_VAR} syntax ? -- View this message in context: http://camel.465427.n5.nabble.com/Updating-properties-via-JMX-tp5740716p574078

Re: dynamicly change the url of the element after the camelcontext is started

2013-10-02 Thread salemi
Thanks Babak. When Spring comes up and it tries to resolve the properties for the beans, it doesn't use the PropertiesResolver and it uses PropertyPlaceholderConfigurer's method called processProperties which uses a PlaceholderResolvingStringValueResolver and you can't overwrite it ! - Ali

Re: The Camel Components Poster - PDF - FREE

2013-10-02 Thread gliesian
Oh, you are welcome. :) So... I ran a contest on 99Designs... this vehicle cost me ~ $339 (for the contest and extra advertising, trying to get designers). After the contest completed, I made the PDF available for free, as my goals are not to profit off of the electronic version, but to try and b

Camel + RESTLET in Tomcat/Jetty

2013-10-02 Thread Klaus777
As far as I understand, Camel by default uses the default RESTLET engine. How can I tell Camel to use Jetty for RESTLEY instead? I know there are ways to bundle an application and deploy it in Tomcat or Jetty. If I do that, however, the biggest question becomes how to integrate with RESTLET. I di

Simulating a periodic producer

2013-10-02 Thread prgtrdr
I'm sure there must be an easy way to do this but I'm coming up blank. Maybe someone has an idea. I'm trying to figure out how to restart a route once it has exhausted all messages. I'm trying to simulate an Orders stream that periodically sends prices to an ActiveMQ topic. I've created a bit o

Re: Apache Camel - Multicast - Is there a 'null' or a similar endpoint ?

2013-10-02 Thread arunodhaya80
Apologies for not making myself clear enough. As you could see, I am using Camel to route the request to a REST service to two bean methods. These bean methods enrich a single Entity through the AggregationStrategy configured in the multicast. My understanding is that the last exchange returned

Moving from Spring 3.0.6 to 3.2.3 results in exception - Cannot find any Camel Context from the Application Context.

2013-10-02 Thread MichaelAtSAG
Overview We have built a Camel application that runs as both stand-alone jar and webapp in tomcat. The application works fine in Spring version 3.0.6, yet results in exceptions when moved to use Spring version 3.2.3. The only change is moving the application Spring dependency from 3.0.6 to 3.2.3.

Re: Updating properties via JMX

2013-10-02 Thread Claus Ibsen
This seems more like a spring jmx question, if or how you can adjust its property placeholder functionality using JMX. On Tue, Oct 1, 2013 at 11:17 PM, PMulido wrote: > We are using JMX within Camel and using JConsole to maniputes MBeans and > routes / contexts etc. > > We are also using a jolo

Re: Need Help in configuring a router to run to run parallally & every 30 minutes

2013-10-02 Thread James Carman
Are you looking to use the competing consumers pattern? If so, then they'll "multicast" themselves. On Wed, Oct 2, 2013 at 11:54 AM, gudiseashok wrote: > Hi Hilderich > > The config which you gave is looks like perfect match for my requirement, > now only doubt I have is since we are adding mult

Re: Need Help in configuring a router to run to run parallally & every 30 minutes

2013-10-02 Thread gudiseashok
Hi Hilderich The config which you gave is looks like perfect match for my requirement, now only doubt I have is since we are adding multiple routes and bydefault camel behaviour is pipeline. Where do I need to ensure that this should happen in parrlell (multi-cast may be?) Regards Ashok Gudise

Re: Camel and Spring 3.1

2013-10-02 Thread Heiko
Hi, When I see the releasenote here: http://camel.apache.org/camel-2110-release.html It seems to be possible now to use profiles in order to separate the configuration for different environments like this: Ok,this would probably in my beans.xml But currently I´m not quite sure where I need to p

Camel developer's guide still refers to SVN

2013-10-02 Thread Dale King
The developer's guide still has lots of references to SVN, which no longer apply now that Camel is on git. Since you depend so heavily on others for fixes, you might want to make sure this document is accurate.

Re: The Camel Components Poster - PDF - FREE

2013-10-02 Thread Claus Ibsen
Robert the poster looks really good. Thanks for doing this. The community own you a round of beers. I assuming having a designer setting up this cost some $ out of your pocket. On Wed, Oct 2, 2013 at 3:27 PM, gliesian wrote: > > The Camel Components Poster - PDF - FREE > http://gliesian.com/cam

Re: Need Help in configuring a router to run to run parallally & every 30 minutes

2013-10-02 Thread gudiseashok
Hi Hilderich Thank you very much for your response, can I do that in XML configuration instead of Java DSL? Because Adding to this I want to run this for every 30 minutes, could you please suggest me how and where to do that? -- View this message in context: http://camel.465427.n5.nabble.com/

Re: Creating routes dynamically like a for()

2013-10-02 Thread mamouros
I can't see how this can help me. I don't want to listen for one exchange only and move on. I want to listen forever. When I say "create routes dynamically" I mean I would like to open as many smpp receivers as accounts are in my database. After the from(sql:) I want the routes to be a to(bean:) t

Re: Need Help in configuring a router to run to run parallally & every 30 minutes

2013-10-02 Thread Hilderich
Hello gudiseashok, When you are willing to start the route above flexible more than once than you should consider to create this route as a dynamic one: Maybe this is what you need? Cheers Hilderich -- View this message in context: http://camel.465427.n5.nabble.com/Need-Help-in-configurin

Re: Creating routes dynamically like a for()

2013-10-02 Thread Dale King
The confusion is whether you really mean that you want to CREATE new routes dynamically (which would be very unusual) or whether you really mean that you have some processing steps and you want to RUN those steps once for each record returned (which is much more common). In the later case, a sp

Re: Log dynamic filename

2013-10-02 Thread c.spiegel
works fine! Many thanks. -- View this message in context: http://camel.465427.n5.nabble.com/Log-dynamic-filename-tp5740747p5740756.html Sent from the Camel - Users mailing list archive at Nabble.com.

Need Help in configuring a router to run to run parallally & every 30 minutes

2013-10-02 Thread gudiseashok
As a brief description, I am connecting a remote directory, copying files to local directory and then indexing them with lucene. I am using sftp:delay for repeating for every 15 minutes. I would like to design my system like I mentioned below, 1) I want to do this route for multiple servers (exa

The Camel Components Poster - PDF - FREE

2013-10-02 Thread gliesian
The Camel Components Poster - PDF - FREE http://gliesian.com/camel/TheCamelComponentPosterWithWatermark.pdf The Camel Components Poster - PRINTED - NOT SO FREE http://fineartamerica.com/featured/the-camel-components-poster-robert-liguori.html -- Robert -- View this message in context: http:/

Re: Scala DSL lacks a way to specify return type of language expressions

2013-10-02 Thread Claus Ibsen
Yes as Dale points our, the Integer.class is to hint to the xpath engine that it should evaluate it as a number and not NodeSet / Node as it would do out of the box. So an improvement is needed in the Scala DSL. Fell free to log a JIRA and work on a patch. On Wed, Oct 2, 2013 at 2:19 PM, Dale Kin

Re: [Camel 2.8.5] No consumers available on endpoint / startupOrder don't work : Upgrade to Camel 2.10.4

2013-10-02 Thread Fladnag
In fact, the issue is still here in SMX 4.5.2 with Camel 2.10.6 Any call to getCamelContext() during initialization start the BlueprintCamelContext. An example of the issue : * Create a route with an endpoint injection : => The context is created and started when the producer is resolved :

Re: Camel + myBatis Issue

2013-10-02 Thread gquintana
To do batch insert/update with MyBatis, you must use a SqlSession with BATCH ExecutorType: or -- View this message in context: http://camel.465427.n5.nabble.com/Camel-myBatis-Issue-tp5740706p5740750.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Scala DSL lacks a way to specify return type of language expressions

2013-10-02 Thread Dale King
A conversion after the fact does not help in this case as evaluating the expression itself fails with an exception unless you tell the xpath what the correct result type will be. If you don't specify, it assumes node set. In the case of a count expression the result is a number which cannot be conv

Re: Log dynamic filename

2013-10-02 Thread James Carman
This is related to a security vulnerability which was reported recently. Can you try changing to a expression rather than a ? On Wed, Oct 2, 2013 at 7:49 AM, c.spiegel wrote: > Hi there, > > I have a route defined as follows: > > > > > ${date:now:MMddHHmmssSSS}.txt > > > ftp://bla"/> >

Log dynamic filename

2013-10-02 Thread c.spiegel
Hi there, I have a route defined as follows: ${date:now:MMddHHmmssSSS}.txt ftp://bla"/> The generated filename is (as supposed) the timestamp when it's created plus the suffix .txt. But the log entry is the pattern/expression how it's defined. The filename is 20131001120

Re: AW: Creating routes dynamically like a for()

2013-10-02 Thread mamouros
To further clarify, I have a database with smpp accounts. I want to query at runtime the database every predefined time, get the username and password and then open a consumer for each account either with separate from() routes passing the credentials or creating separate consumer templates. At r

FTP-producer charset java

2013-10-02 Thread tero
Hello, I am having troubles with the char encoding, sending data to a FTP server: the special chars like "ä" and similar are encoded wrong (e.g.: Südafrika -> Südafrika), even if I specify .setHeader(Exchange.CHARSET_NAME).constant("ISO-8859-1") which I understood is the way to define the encodi