Camel Quartz in datasource cluster when Jobs added with no trigger must be durable.

2013-12-16 Thread xielei
If you get the exception:
org.quartz.SchedulerException: Jobs added with no trigger must be durable.

Add job.durability=true in endpoint url to resolve it. For example:
quartz2://examples/example?cron=0%2F10+*+*+*+*+%3FdeleteJob=falsejob.name=test1stateful=truejob.durability=true

Why it isn't mentioned in document? I found it in source code.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Quartz-in-datasource-cluster-when-Jobs-added-with-no-trigger-must-be-durable-tp5744830.html
Sent from the Camel - Users mailing list archive at Nabble.com.


It should be document issue

2013-12-11 Thread xielei
Quartz2 Component http://camel.apache.org/quartz2.html   

Configuring quartz.properties file section

bean id=quartz
class=org.apache.camel.component.quartz2.QuartzComponent
property name=propertiesFile
value=com/mycompany/myquartz.properties/
/bean

The bean id shoud be quartz2 !



--
View this message in context: 
http://camel.465427.n5.nabble.com/It-should-be-document-issue-tp5744642.html
Sent from the Camel - Users mailing list archive at Nabble.com.


【help】base64 no echo

2013-07-03 Thread xielei
The code:

public static void main(String[] args) throws Exception {
CamelContext context = new DefaultCamelContext();
context.addRoutes(new RouteBuilder() {
public void configure() {
from(stream:in?promptMessage=Enter something:
).marshal().gzip().to(stream:out);
}
});
context.start();
Thread.sleep(6);
context.stop();
}

When I input text, there is no output. Why?



--
View this message in context: 
http://camel.465427.n5.nabble.com/help-base64-no-echo-tp5735131.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: 【help】base64 no echo

2013-07-03 Thread xielei
Sorry, it is base(), not gzip() method.



--
View this message in context: 
http://camel.465427.n5.nabble.com/help-base64-no-echo-tp5735131p5735153.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: 【help】base64 no echo

2013-07-03 Thread xielei
Thanks! The commons-codec is wrong, it should be v1.8.



--
View this message in context: 
http://camel.465427.n5.nabble.com/help-base64-no-echo-tp5735131p5735168.html
Sent from the Camel - Users mailing list archive at Nabble.com.