Re: error in schema

2011-04-05 Thread Willem Jiang
Hi, There is no http://activemq.apache.org/schema/core/activemq-core.xsd You may consider to replace it schema file which can be found in here[1] [1]http://activemq.apache.org/schema/core/ On 4/6/11 7:39 AM, dead_devil_66 wrote: Greetings. I have this schema for camel-context.xml: http://pas

Re: Acknowledgement mechanism

2011-04-05 Thread Willem Jiang
There is acknowledgementModeName option in the camel-jms component, you can set it to be CLIENT_ACKNOWLEDGE, then you can do what you want to do :) On 4/4/11 10:27 PM, ctapobep wrote: When I receive a JMS message, I want to check it whether it's valid: - if it is, then I want to send acknowle

Re: destoring sequence of camel context and beans

2011-04-05 Thread Willem Jiang
On 4/1/11 6:20 PM, ext2 wrote: Thanks,Claus: The real problem is spring doesn't understand the camel's xml schema. For example: the camel processor may dependency on a spring bean by the beanId; but the spring know nothing about this; So I am wondering if camel has carefully deal the

Re: camel-core-osgi

2011-04-05 Thread Willem Jiang
On 4/2/11 6:33 AM, Donald Whytock wrote: I was able to build an app with OsgiDefaultCamelContext, but I had to add a ServiceTracker to wait for org.apache.camel.spi.TypeConverterLoader to be registered. Before I did that, my bundles were trying to create SEDA queues before camel-core had finishe

Re: camel-example-cxf pom.xml

2011-04-05 Thread Willem.Jiang
I just cleaned up the file which name has 2.8-SNAPSHOT in my ~/.m2/ and start to run 'mvn clean install' from examples/camel-example-cxf and can't get the error that you reported again. Willem -- View this message in context: http://camel.465427.n5.nabble.com/camel-example-cxf-pom-xml-tp426867

error in schema

2011-04-05 Thread dead_devil_66
Greetings. I have this schema for camel-context.xml: http://pastie.org/1761075 but Eclipse IDE is telling me that there is an error in the line where i begin the declaration of broker:broker tag: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for elemen

Re: type converter not loading

2011-04-05 Thread Fernando Ribeiro
It seems to be the issue discussed at http://fernandoribeiro.eti.br/2011/01/10/issues-with-routes-in-progress-fuse-4-2/. Let me know if it the case. Thanks. On Wed, Mar 30, 2011 at 6:31 PM, Donald Whytock wrote: > Okay...I bundled camel-core-osgi separately, created a bundle that > instantiates

Re: Howto use delay message brokerage in a Camel Route using AMQ_SCHEDULED_DELAY

2011-04-05 Thread Gert Villemos
Setting the scheduledSupport=true did the trick. And looking at the Activemq page describing the delay header fields, the second line clearly states that you have to do this to use the properties. Sight! Poor reading skills on my side. Just for anybody else who needs to set this and wonder where t

Re: Scheduling routes with RoutePolicy

2011-04-05 Thread public_phil
Hi Mikael, I had the exact same problem with Camel 2.6. This was my configuration: public void configure() throws Exception { Calendar c = Calendar.getInstance(); c.add(Calendar.MINUTE, 1); SimpleScheduledRoutePolicy simple = new SimpleScheduledRoutePolicy(); simple.setR

Re: Scheduling routes with RoutePolicy

2011-04-05 Thread public_phil
Hi Mikael, I had the exact same problem with Camel 2.6. This was my configuration: public void configure() throws Exception { Calendar c = Calendar.getInstance(); c.add(Calendar.MINUTE, 1); SimpleScheduledRoutePolicy simple = new SimpleScheduledRoutePolicy(); simple.setR

Re: assertMockEndpointsSatisfied Question

2011-04-05 Thread jpalmer1026
Thanks Claus. Much appreciated! -- View this message in context: http://camel.465427.n5.nabble.com/assertMockEndpointsSatisfied-Question-tp4284338p4284597.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: interceptFrom & ref

2011-04-05 Thread ctapobep
Didn't know, thanks a lot! Will try. -- View this message in context: http://camel.465427.n5.nabble.com/interceptFrom-ref-tp4283865p4284572.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Why camel:convertBodyTo type='org.w3c.dom.Document' can't work?

2011-04-05 Thread davsclaus
Ha ha that shows how complex it is to use the JDK API to do a DOM -> String transformation. With Camel its just as simple as asking it for the type. String xml = exchange.getIn().getBody(String.class); See its just 1 line of code. - Claus Ibsen - FuseSource Email: cib...@fu

Re: interceptFrom & ref

2011-04-05 Thread Claus Ibsen
On Tue, Apr 5, 2011 at 2:52 PM, ctapobep wrote: > I guess would be logically correct to include such an attribute to refer to > the endpoints instead of copy/pasting of URIs. > The source code has a TODO in there about that, so yeah its a known issue that interceptXXX uses uris. However you can a

Re: assertMockEndpointsSatisfied Question

2011-04-05 Thread Claus Ibsen
On Tue, Apr 5, 2011 at 5:52 PM, jpalmer1026 wrote: > Hi, > > I'm trying to use the assertMockEndpointsSatisfied() method to assert that > all the expectations of the Mock endpoints are valid. In my test, I'm > passing in 2 messages to a topic and calling mock.expectedMessageCount(3) > and the test

assertMockEndpointsSatisfied Question

2011-04-05 Thread jpalmer1026
Hi, I'm trying to use the assertMockEndpointsSatisfied() method to assert that all the expectations of the Mock endpoints are valid. In my test, I'm passing in 2 messages to a topic and calling mock.expectedMessageCount(3) and the test is passing (I can actually pass in any arbitrary number to exp

Re: interceptFrom & ref

2011-04-05 Thread ctapobep
Yes, but I'm talking about interception, not about route. -- View this message in context: http://camel.465427.n5.nabble.com/interceptFrom-ref-tp4283865p4283904.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: interceptFrom & ref

2011-04-05 Thread Olivier.Roger
You can definde EndPoint Object and referer to them ... ... -- View this message in context: http://camel.465427.n5.nabble.com/interceptFrom-ref-tp4283865p4283901.html Sent from the Camel - Users mailing list archive at Nabble.com.

interceptFrom & ref

2011-04-05 Thread ctapobep
I guess would be logically correct to include such an attribute to refer to the endpoints instead of copy/pasting of URIs. -- View this message in context: http://camel.465427.n5.nabble.com/interceptFrom-ref-tp4283865p4283865.html Sent from the Camel - Users mailing list archive at Nabble.com.

Routing from restlet to activemq

2011-04-05 Thread Michael Dewitte
Hi, I'd like to have a rest interface for my clients to publish events on a topic (with some transformation and filtering in between). To do that, I thought about using a route like this : http://camel.apache.org/schema/spring";> http://localhost:9080/Events?restletMethod=post"/> But as rest

Re: Scheduling routes with RoutePolicy

2011-04-05 Thread mikaelfj
Hi, Took a look at the source for 2.7 and I can see that this particular method has been changed as a result of CAMEL-3575 - which is exactly the problem that we experience. I'll make the same change to 2.6 to see if that fixes the problem. /Mikael -- View this message in context: http://camel

Re: aggregator - error handling default does not propogate error

2011-04-05 Thread Claus Ibsen
> You need to handle the exception in your aggregation strategy. The > Camel book (chapter 8) shows your options for that. > I dont recall if we got any wiki documentation for that. Contributions > is welcome p265. How to handle errors with the aggregation strategy is discussed with the splitter E

Re: aggregator - error handling default does not propogate error

2011-04-05 Thread Claus Ibsen
On Tue, Apr 5, 2011 at 1:03 PM, Mond Raymond wrote: > I want to get data from three sources: > >       from(fromURI).multicast().to("seda:coreVehicleData", > "seda:warrantyVehicleData", "seda:accessoryVehicleData"); > > > from("seda:coreVehicleData").to("bean:coreVehicleData").to("seda:vehicleData

Re: aggregator - completionTimeout

2011-04-05 Thread Mond Raymond
I will fire up the PDF reader ;-) Thanks Claus -- View this message in context: http://camel.465427.n5.nabble.com/aggregator-completionTimeout-tp4283669p4283687.html Sent from the Camel - Users mailing list archive at Nabble.com.

aggregator - error handling default does not propogate error

2011-04-05 Thread Mond Raymond
I want to get data from three sources: from(fromURI).multicast().to("seda:coreVehicleData", "seda:warrantyVehicleData", "seda:accessoryVehicleData"); from("seda:coreVehicleData").to("bean:coreVehicleData").to("seda:vehicleDataAggregator"); from("seda:warrantyVehicleData").

Re: aggregator - completionTimeout

2011-04-05 Thread Claus Ibsen
The task runs once a second. http://camel.apache.org/aggregator2 So the wiki is wrong, I will fix that. If you want a timeout after 5 seconds, then just set that value to 5 sec. Then that background tasks, which runs once per sec. will detect that its overdue (> 5 sec) and trigger completion. Th

aggregator - completionTimeout

2011-04-05 Thread Mond Raymond
Folks I am confused by the documentation: Time in millis that an aggregated exchange should be inactive before its complete. Camel has a background task that runs once a minute to check for inactive aggregated exchanges. This option can be set as either a fixed value or using an Expression which

Re: Does activemq/jms component have keepalive option?

2011-04-05 Thread James Strachan
If you don't set any ConnectionFactory on the ActiveMQ component, you should have pooling setup correctly which should pool a single connection. e.g. just set the brokerURL property on the ActiveMQ component. Whats your spring XML look like? On 4 April 2011 16:54, Tom Howe wrote: > I have a simp

Re: Why camel:convertBodyTo type='org.w3c.dom.Document' can't work?

2011-04-05 Thread davsclaus
Its not null. Its just how the org.w3c.Document output itself in its toString method. You have the data there. - Claus Ibsen - FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: