Re: problems loading jetty - "Illegal context spec:null"

2010-03-20 Thread Willem Jiang
Hi, You got this kind of exception, because you didn't specify the context path. Please change the RouteBuilder configure method like this from("jetty:http://localhost:9080/?matchOnUriPrefix=true";).to("mock:one"); Willem hdev wrote: Hi, when I try to start a CamelContext with a simple rou

Re: ScheduledPollConsumer - poll() behavior?

2010-03-20 Thread tide08
So, would it make sense that in my customConsumer that extends ScheduledPollConsumer, I override doStart() to schedule more tasks? Is this thread-safe to do? @Override protected void doStart() throws Exception { if (log.isDebugEnabled()) { log.debug("Starting consume

Re: Problem with Http component and redeliveryPolicy

2010-03-20 Thread Claus Ibsen
Hi Remember to state the versions you are using. See this wiki page please http://camel.apache.org/support.html On Sat, Mar 20, 2010 at 2:13 PM, Yari Marchetti wrote: > Hi everyone, > i configured Camel with a route like: > > >     > >     >        java.net.ConnectException >                  

Re: Synchronous MEP across camel contexts

2010-03-20 Thread Claus Ibsen
On Fri, Mar 19, 2010 at 9:22 AM, Meise, Christoph wrote: > Interestingly the Direct component is able to span across context. Imagine > you have two spring files with each containing route definitions. All > external interface endpoints ("from:" and the final "to:") are declared in a > third sp

Re: Proposal for a new camel-bean-validation component based on jsr 303

2010-03-20 Thread Claus Ibsen
What would the difference be between just invoking a JSR-303 bean using .to("bean:foo?method=validateMyFooPlease") And just have a void method definition with the JSR-303 @ annotations? I assume JSR-303 will throw some exception if the validation failed? I recon I need to see a more concrete exam

Re: JPA consumer starts up, but is not polling

2010-03-20 Thread Claus Ibsen
Hi Try to get a JPA example working on Tomcat without Camel. JPA is not that trivial to get working on various contains as it got classloading tricks to do for the JPA stuff. So I would look for a JPA + Tomcat. Maybe there is a example WAR ready to just try out. And if you use Hibernate for JPA t

Problem with Http component and redeliveryPolicy

2010-03-20 Thread Yari Marchetti
Hi everyone, i configured Camel with a route like: java.net.ConnectException GET http://localhost:81"; /> but i found 2 problems: 1) the exponential backoff and delay seems to not be working correctly With the above configuration i s

problems loading jetty - "Illegal context spec:null"

2010-03-20 Thread hdev
Hi, when I try to start a CamelContext with a simple route import org.apache.camel.builder.RouteBuilder; import org.apache.camel.impl.DefaultCamelContext; public class Main { public static void main(String[] args) throws Exception { DefaultCamelContext camelContext;