It looks like your main process is terminating after consuming the message.
If you are using spring dsl, here is how you can keep it running for ever. Main
referred here is org.apache.camel.spring.Main.
Refer here for more detailed explanation.
Hi
No need to install jetty server. Just include the jetty component and deploy
the build.
Follow this page in detail for instructions about writing routes / ssl support
/ etc.
https://camel.apache.org/jetty.html
You can run it in standalone mode.
As of now tokenizer does not evaluate properties/expression, so you have to
pass string value.
I am curious to know if one can refer/access current exchange object while
defining the route. If that is possible then something like this will work in
your case.
That is because the expression builder evaluates string to actual values during
route definition.
If you use the following syntax you will get new time for every timer run.
from(timer://foo?fixedRate=trueperiod=1000).transform(simple(Time is
It looks like in the sample code which starts camel context, you are also
stopping the context.
If you want timer to run continuously, your context should always be up and
running as well.
Can you also add a very long sleep command just to ensure that and test the
same ?
-Ravi
Enhancing the exception logging will help developer in such cases.
If detailed message is not provided by the exception, name of the exception
should be printed in logs .
In this case FailedToCreateRouteException should check if cause.getMessage() is
not null. In case it is null,
name of
Body of timer is null hence it will fail on the first message.
Try following and it will work as expected. You can use timer without spring.
from(timer://foo?fixedRate=trueperiod=1000).setBody(body().append(Time is
+ new Date())).to(file:target/reports/?fileName=sync.txt);
Naveen
You can access specific exchange property like this in the log expression :
${property.CamelCreatedTimestamp} but currently ${properties} does not evaluate
to any expression for simple language.
Clause, ExpressionBuilder already has a function but it is not used to build
functions
Can you please share the route details ?
Did you refer the following link ?
http://camel.apache.org/activemq-camel-tomcat.html
-Ravi
From: mikes300 [mikes...@yahoo.com]
Sent: Saturday, July 19, 2014 8:16 AM
To: users@camel.apache.org
Subject: Camel
Hi
You can check my example at the following URL. Refer route xml and
mail.properties on how encrypted passwords are used. That might help.
https://github.com/godbolerr/camel-example-mail/tree/master/src/main/resources
-Ravi
From: arvind
It seems your filter code is locking the file which is preventing camel from
deleting the same.
Do you see any .camelLock file created in the directory ?
-Ravi
-Original Message-
From: sakchakravarthi [mailto:ajit.kalyan.chakravar...@gmail.com]
Sent: Thursday, July 10, 2014 2:54 PM
To:
Can you share the complete route please ?
-Ravi
-Original Message-
From: sakchakravarthi [mailto:ajit.kalyan.chakravar...@gmail.com]
Sent: Tuesday, July 08, 2014 12:58 PM
To: users@camel.apache.org
Subject: File is not moved to .camel folder once it is processed
Hi
I have a file route
Hi
Have you tried following option ?
@CsvRecord ( separator = ,,generateHeaderColumns=true,quoting=true)
By deafult, is the quote value. This will take care of all the values with
quotes with ',' as seperator.
If you also want same behavior with column headers, you have to do something
like
1. Can you change System A to send content-type just like system B
[application/x-www-form-urlencoded]
2. If that is possible, you can access the form variables thru header values of
exchange in your custom bean, instead of using getBody..
-Ravi
From:
Rick
You can find camel mail example at the following location.
https://github.com/godbolerr/camel-example-mail
-Ravi
-Original Message-
From: Rick [mailto:rick0...@hotmail.co.uk]
Sent: Sunday, June 22, 2014 1:48 PM
To: users@camel.apache.org
Subject: New to Camel and also needing to
Ajit
What do you mean by Remote File Location. Is it on different machine which has
to be accessed thru FTP/SFTP ?
Please elaborate.
From: sakchakravarthi [ajit.kalyan.chakravar...@gmail.com]
Sent: Friday, June 13, 2014 10:59 AM
To:
Can you share the route specifics you currently have ?
-Ravi
From: blacar [bcr...@gmail.com]
Sent: Monday, May 12, 2014 4:32 PM
To: users@camel.apache.org
Subject: FTP endpoint on error
Hi guys,
I hope you can help me.
I want to create a route that read
Have you explored file:name option ?
You can add processor to the route which can set this option based on the
content size written to existing file so far. When limit is reached assign new
value to the camelFileName and reset the count to calculate content size in
processor.
For example:
You have to provide filename with some value.
http://camel.apache.org/content-enricher.html
-Original Message-
From: bharathramesh [mailto:bharathram...@hotmail.com]
Sent: Friday, May 09, 2014 3:44 PM
To: users@camel.apache.org
Subject: Pass filename from MQ Message to pollenrich or
Does your file has only one line with csv seperated values ?
Do you want whole file to be transferred to the other directory based on logic ?
What if two conditions are satisfied on one line ? value1=A and value2=B .
Here is the example you can start with ... you can use more features of
Claus
Even after adding RAW the output of key still comes as RAW(+) and not only + as
expected.
addParameter method of URISupport class should strip out the RAW() and just
retain + against passwd.
Here is what I tried.
EndpointConfiguration conf =
You can definitely do it.
Create route like this :
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
JAXBContext context = JAXBContext.newInstance(new
Class[]{Orders.class});
Look at the following URL which has various options for request-reply over jms .
http://camel.apache.org/jms.html
From: scottmiles [motgu...@gmail.com]
Sent: Friday, April 11, 2014 11:23 PM
To: users@camel.apache.org
Subject: Send response to file
Hi
1. You can use processor which will enable you to handle message thru
OrderService. [ http://camel.apache.org/processor.html ]
2. You can post to new routes based on the contents.
4. Contents of the body irrespective of the type of channel is available for
processing as a ${in.body}. Type
Try following.
from uri=jms:queue:Q.activemq1/
setBody
xpath/Customer/Order/id/text()/xpath
/setBody
setBody
simpleOrder with id ${in.body} received /simple
/setBody
to uri=jms:queue:Q.activemq2/
- Ravi
From: npa [npa.c...@gmail.com]
Are you trying to dynamically change directory from where you want to download
files ?
It seems it is not possible for to uri in ftp component.
You might want to use filter which can specify the pattern to select for
download . Something like ...
public class MyFileFilterT implements
Parenthesis '(' is not supported by simple language.
From: bonnahu [bonn...@gmail.com]
Sent: Friday, March 28, 2014 2:36 AM
To: users@camel.apache.org
Subject: Does simple expression support operator precedence by using
parenthesis or bracket?
hey guys,
You can use beanshell language to achieve the same result.
Ensure that you have h_event and h_state present in the headers with some
values otherwise NPE will be thrown.
filter
language language=beanshell (
Here is what you can do .
from(direct:start)
.to(http://localhost/Files.xml;)
.split(xpath(//file/text())).parallelProcessing()
.process(new Processor() {
Do you want to start/stop routes when camel app comes up or decide at runtime
when to stop the route ?
You can use JMX to stop a specific route when app is up and running.
Regards
Ravi
-Original Message-
From: chaij [mailto:jin.c...@indigoarc.com]
Sent: Tuesday, March 25, 2014 10:54
This is possible.
route
from
uri=jetty:http://localhost:/camelServlet/abc?; /
transform
constantHi/constant
/transform
/route
-Ravi
As Claus has pointed out in the earlier thread, depending on the configuration,
listing of files is passed on to the filter for processing. Any new file will
be picked up in the next iteration.
-Ravi
From: JKemp [kemp.ja...@gmail.com]
Sent: Saturday,
If custom filter is written then it will return true when both files are
present and then first file will be picked up but what about the second file.
During processing of second file, custom filter will return false ?
Need to check how it behaves ?
-Original Message-
From: Claus
Instead of using choice you can use recipientList and then build the URL on the
fly. This will take care of at least resolving which REST service to invoke.
Your route will look something like this.
from(servlet:///?matchOnUriPrefix=true)
.process(customProcessor)
You can use dynamic router feature of camel. Read the documentation carefully
as not returning null means it will loop infinitely.
http://camel.apache.org/dynamic-router.html
-Original Message-
From: Muhzin [mailto:rmuh...@gmail.com]
Sent: Monday, January 27, 2014 2:51 PM
To:
Bruce
Do you want to manually inspect files and copy files to some other area for
replay ?
Are you not using any messaging channel queue to store messages ?
You can use dumpAsXml to inspect the content but use the messaging channel
queue again to replay the messages.
Some custom filter can
can you provide following.
1. How many routes you have
2. Does each route have special processing ?
3. Does routing logic change frequently ?
4. Is any route used more than other which requires special configuration ?
- Ravi
From: Shing Hing Man
You can set the traceFilter for tracer which is nothing but defining predicate.
Custom predicate can be defined as you want. It can be just one string or
pattern of strings[destinations] you want to trace.
This is the solution I can think of in the current context.
Tracer tracer = new
You might want to have a look at the following sample. It does have namespace
defined for root element.
You can build this string as you like with more child routes.
CamelContext context = new DefaultCamelContext();
context.setTracing(true);
Your second logging will log headers from the response sent by the http4
invocation. I am able to see the values and these are not blanked out.
Tried out with following path.
from(timer://foo?fixedRate=truedelay=0period=1000)
Once you install Fuse IDE, you can create Camel specific projects and also
create Camel Context xml.
-Original Message-
From: gadido30 [mailto:gadid...@gmail.com]
Sent: Wednesday, January 22, 2014 11:36 AM
To: users@camel.apache.org
Subject: Apache Camel and Jboss FUSE IDE
Hi All,
I
Claire cmth...@gmail.com wrote:
Hi,
I have been trying to pass one value from one bean to one bean.
*bean id=test ref=Process method=readFilePath('test1')/* // this
bean return test1. So I would like to pass that value (test1) into another
bean. I wonder if there is a way I can pass that
Claire cmth...@gmail.com wrote:
Hi,
I have been trying to pass one value from one bean to one bean.
*bean id=test ref=Process method=readFilePath('test1')/* // this
bean return test1. So I would like to pass that value (test1) into another
bean. I wonder if there is a way I can pass that
atiato tangoatia1...@gmail.com wrote:
Kind reminder ...
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-maven-plugin-2-12-1-Problem-tp5744328p5744713.html
Sent from the Camel - Users mailing list archive at Nabble.com.
This e-mail and any files transmitted with it
atiato tangoatia1...@gmail.com wrote:
Kind reminder ...
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-maven-plugin-2-12-1-Problem-tp5744328p5744713.html
Sent from the Camel - Users mailing list archive at Nabble.com.
This e-mail and any files transmitted with it
atiato tangoatia1...@gmail.com wrote:
Kind reminder ...
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-maven-plugin-2-12-1-Problem-tp5744328p5744713.html
Sent from the Camel - Users mailing list archive at Nabble.com.
This e-mail and any files transmitted with it
Can you share the sample xml message ? Does it have namespace in it ?
From: John Dubchak [j...@johndubchak.com]
Sent: Friday, November 15, 2013 1:42 AM
To: users@camel.apache.org
Subject: xpath filter question
Hi,
I am trying to create a JavaDSL route
47 matches
Mail list logo