Re: Fwd: Using Apache Camel as Transport for Apache CXF with SOAP over JMS

2008-07-07 Thread Willem Jiang
Woo, You show me lots of issues and patches in one mail. It will take a time for me to digest them ;) First I should thank you for chosing the CXF and Camel. I' will head to the CamelDestination error first, but I can't get the project for the url that your mentioned in the mail. Can you sh

Re: Can not compile examples from 1.4 snapshot

2008-07-07 Thread Willem Jiang
Hi You may need to upgrade your JDK, or put the JAXB 2.1 jars into the JDK endorse directory. For JDK6, Updates 1-3, JAXB 2.0 is used by default, Updates 4+ JAXB 2.1 is used. In Camel 1.4-snapshot ,we are using JAXB 2.1. If you are using JDK 1.5 , we may not meet this problem, since JAXB on

Re: MS SQL Message Service endpoint

2008-07-07 Thread Vadim Chekan
I reviewed the tutorial "http://activemq.apache.org/camel/tutorial-jmsremoting.html"; once again looking for something I may miss. 1. It is not mentioned which version of Camel it address, 1.3 or 1.4(snapshot?) 2. It is not clear, does tutorial reviews the existing example or it assumes the reade

Re: Can not compile examples from 1.4 snapshot

2008-07-07 Thread Vadim Chekan
I'm having problems with comiling camel/trunk too. java version "1.6.0_02" Java(TM) SE Runtime Environment (build 1.6.0_02-b06) Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing) [INFO] [bundle:bundle] [WARNING] Warning building bundle org.apache.camel:camel-csv:bundle:1.4-SNAPSH

Re: Can not compile examples from 1.4 snapshot

2008-07-07 Thread Christian Schneider
Hmm ... but when I only have the binary distribution there is no parent pom. Any idea how we can change this? Does it make sense to ditribute the parent pom in the binary distributrion or is there a better way to solve the problem? However this can be solved I think the examples should work us

Re: MS SQL Message Service endpoint

2008-07-07 Thread Vadim Chekan
I used Eclipse to create my class. Linked the project to camel-core.jar. Then deployed (copied) the jar to lib/optional. I thought that camel scans all jars in there but now I think I may be mistaken. Should I add my jar to classpath environment variable? I did not use Maven because I've never

RE: How can I set the content of the body when I left a bean and before to go to the next bean ?

2008-07-07 Thread cmoulliard
Here it is : Class Unmarshall errorHandler(deadLetterChannel("seda:errors").maximumRedeliveries(1).useExponentialBackoff()); from("file:///c:/temp") .unmarshall(jaxb) .to("activemq:queue:myqueue"); Class Transform errorHandler(deadLetterChannel("seda:errors").maximumRedeliveries(1).useExponent

RE: spring DeadLetterChannel redelivery config

2008-07-07 Thread vguna
Hi. Ehhw. I'm afraid I'm not too deep into camel yet. camel:run means that it is a maven target on the source distribution of camel? I can try that of course... Claus Ibsen wrote: > > Hi > > Can you try running it outside ActiveMQ eg from camel:run. To see that it > works. Then we can identi

RE: spring DeadLetterChannel redelivery config

2008-07-07 Thread Claus Ibsen
Hi Can you try running it outside ActiveMQ eg from camel:run. To see that it works. Then we can identify the problem with ActiveMQ later. I have added a unit test to camel-spring that works with your configuration. It gets the DeadLetterChannel that is configured as a spring bean and uses the r

RE: How can I set the content of the body when I left a bean and before to go to the next bean ?

2008-07-07 Thread Claus Ibsen
Hi Could you post your route configuration in full please? Med venlig hilsen Claus Ibsen .. Silverbullet Skovsgårdsvænget 21 8362 Hørning Tlf. +45 2962 7576 Web: www.silverbullet.dk -Original Message- From: cmoulliard [mailto:[EMAIL PROTECTED] Sent:

Is it possible to send a message towards 2 endpoints but the message is unmarshalled for one of the two destinations ?

2008-07-07 Thread cmoulliard
Hi, Is it possible to send a message towards 2 endpoints (in //) but the message is unmarshalled for one of the two destinations (and not for the other) and if an error occurs everything is rollbacked ? Idea: From("file:c:///temp") .parrallel( .to("bean:saveContent".unmarshall(jaxb)) .to("activ

Strange behaviour of bean processor

2008-07-07 Thread S.R.
I'm trying to understand how the routes work, and especially, how the bean processors interact and make replies (for InOut pattern). I have a following code: // Processor Processor proc = new Processor() { public void process(Exchange exchange) throws Exception { //

RE: How can I set the content of the body when I left a bean and before to go to the next bean ?

2008-07-07 Thread cmoulliard
Here is what I define in my route : errorHandler(deadLetterChannel("seda:errors").maximumRedeliveries(1).useExponentialBackoff()); Regards, Charles Claus Ibsen wrote: > > Hi > > Could you show the route config? > No the DLC should kick in, there should be a default DLC to catch the > situat

Re: camel-example-osgi - imported packages?

2008-07-07 Thread cmoulliard
Hi Claus, You are right. The Camel-osgi example is not a good one because the META-INF file does not exist and could not be generated (like this is possible with maven + bnd : http://www.aqute.biz/Code/Bnd) from the repository. Like you mention, the wiki web site has to be updated in order to exp

RE: spring DeadLetterChannel redelivery config

2008-07-07 Thread vguna
Hi again. I recently encountered that the redeliveryPolicy still doesn't work as expected. Basically it does the redelivery - but with default settings as it seems. Tried this configuration in activemq.xml with camel 1.4 snapshot: http://activemq.apache.org/camel/schema/spring";>

Fwd: Using Apache Camel as Transport for Apache CXF with SOAP over JMS

2008-07-07 Thread Eduard Hildebrandt
Hello all, first of all I'd like to thank you for you good work. I'm really enjoying working with Apache Camel. I'd like to use Apache CXF with Apache Camel as transport and trying to implement a webservice using SOAP over JMS. I'm thinking that I identified some bugs in Apache Camel. ISSUE #1:

RE: How can I set the content of the body when I left a bean and before to go to the next bean ?

2008-07-07 Thread Claus Ibsen
Hi Could you show the route config? No the DLC should kick in, there should be a default DLC to catch the situation and move the invalid message to a default LOG category at WARN level. So the ClassCastException should be caught and retried 6 times and moved to a WARN log, by the DLC. Med ve

RE: How can I set the content of the body when I left a bean and before to go to the next bean ?

2008-07-07 Thread cmoulliard
I have made the test with the last build but the problem is always there. Is this logical that the message could not delivered to the deadletterchannel configurated (in the routing) when I have a ClassCastException in the bean Converter ? Claus Ibsen wrote: > > Hi > > BTW: You can get the bui

RE: spring DeadLetterChannel redelivery config

2008-07-07 Thread vguna
Hi Claus. Sure: https://issues.apache.org/activemq/browse/CAMEL-683 Regards, Veit Claus Ibsen wrote: > > Hi > > Thanks a lot for sharing this. Handy for others as well. > There could be an issue with the initial delay vs. repated delay. > > Do you mind creating a JIRA ticket for this - th

RE: How can I set the content of the body when I left a bean and before to go to the next bean ?

2008-07-07 Thread Claus Ibsen
Hi BTW: You can get the builds from the apache maven snapshot repo, so you don't have to build camel locally. See: http://activemq.apache.org/camel/download.html Med venlig hilsen Claus Ibsen .. Silverbullet Skovsgårdsvænget 21 8362 Hørning Tlf. +45 2962

RE: How can I set the content of the body when I left a bean and before to go to the next bean ?

2008-07-07 Thread cmoulliard
Claus, I use Camel 1.4-SNAPSHOT but I haven't made a build since around two weeks. Regards, Charles Claus Ibsen wrote: > > Hi Charles, > > I will try to hack a unit test that demonstrates your route and bean > chain, to help identify the problem. > > What version of Camel are you using? >

RE: spring DeadLetterChannel redelivery config

2008-07-07 Thread Claus Ibsen
Hi Thanks a lot for sharing this. Handy for others as well. There could be an issue with the initial delay vs. repated delay. Do you mind creating a JIRA ticket for this - then its not forgotten. Would be nice with a special delay for the first redelivery and then another setting for the repeate

RE: How can I set the content of the body when I left a bean and before to go to the next bean ?

2008-07-07 Thread Claus Ibsen
Hi Charles, I will try to hack a unit test that demonstrates your route and bean chain, to help identify the problem. What version of Camel are you using? Have you tried with the latest 1.4-SNAPSHOT version of Camel? Med venlig hilsen Claus Ibsen .. Silver

Re: spring DeadLetterChannel redelivery config

2008-07-07 Thread vguna
Hi James. Thanks for the reply. It seems to work now. For all, who asking themselves how a xml configuration for this will look like, here's an example: http://activemq.apache.org/camel/schema/spring";> Still one problem l

Re: Can not compile examples from 1.4 snapshot

2008-07-07 Thread Willem Jiang
FYI the below snapshot repository is in the camel-parent pom.xml for a long time :) Willem Christian Schneider wrote: Could this repository simply be added to the normal pom? Then people who try the snapshot would have no problems with this. On the other hand the repository entry could be remo

RE: How can I set the content of the body when I left a bean and before to go to the next bean ?

2008-07-07 Thread cmoulliard
Hi Claus, Unfortunately, what you propose does not work. For your information, my activemq is defined in my camelcontext as a vm queue. When I use in my route "direct" endpoint instead of "activemq", the object transformed is well send to the "save" bean. From("File:///c:/temp") .unmarshall(jax

RE: How can I set the content of the body when I left a bean and before to go to the next bean ?

2008-07-07 Thread Claus Ibsen
Hi I assume since the original input is from a file you are doing an InOnly message exchange pattern (MEP). So whenever you receive a message from the jms queue:myqueue and it hasn't a reply-to set it should also be a InOnly message out-of-the-box. So I would expect that if you set the altere

RE: Starting Camel context causes JMX exception.

2008-07-07 Thread Claus Ibsen
I think the implementation will create a new id if not provided. The new tracer interceptor outputs a formatting with the node id that gets generated a new uid for optional ids. Med venlig hilsen Claus Ibsen .. Silverbullet Skovsgårdsvænget 21 8362 Hørning