RAW xml to SOAPMessage convertion in CXF WS endpiont

2009-06-18 Thread trivedi kumar b
Hi, I have a webservice endpoint(implemented with CXF and dataFormat as "MESSAGE").. the endpoint receives RAW xml message always instead of POJO object and the input request is a MTOM message. Now I want to extract the SOAPBody and attachments (MTOM based) from this RAW XML. Can someone tell me

Re: configure SEDA URI/options with Spring PropertyPlaceholderConfigurer?

2009-06-18 Thread Doug Douglass
Well, I've got something working, but it doesn't quite feel like "The Camel Way": Comments/suggestions are definitely welcome! Doug On Thu, Jun 18, 2009 at 1:11 PM, Doug Douglass wrote: > I'd like to move some SEDA endpoint options out of the Camel XML > configuration and into a

Re: Executing a Quartz Endpoint on demand

2009-06-18 Thread sriramch
I apologize for not posting my route which is listed below. What you suggest would work if I had only 1 step after my quartz end-point. However I have 3 route steps in my my route. I'd have to break-up my route into 2 which would make my Spring DSL configuration a little crazy. Hence I am looking

configure SEDA URI/options with Spring PropertyPlaceholderConfigurer?

2009-06-18 Thread Doug Douglass
I'd like to move some SEDA endpoint options out of the Camel XML configuration and into a Spring PropertyPlaceholderConfigurer, but I'm struggling a bit. Here's a snip of the current Camel XML with the URIs I'm trying to configure marked with "-->": ${in.body}

Re: Executing a Quartz Endpoint on demand

2009-06-18 Thread Hadrian Zbarcea
I am not sure what you are trying to do, it would help to post your route. The quarz component provides the mechanism to trigger an event at predetermined moments of time, which will cause some things to happen, like a crontab job. Actually even the syntax is very similar to crontab. If

Executing a Quartz Endpoint on demand

2009-06-18 Thread sriramch
I have defined a Quartz endpoint which I'd also like to from an on-demand service (outside the schedule defined by the Quartz endpoint configuration). However when I try this using ProducerTemplate:sendBody method, I get an exception that says 'You cannot send messages to this endpoint'. Is there

Re: Body lost with Jetty component

2009-06-18 Thread SwenVogel
ok, one more question... the console output is now fine: Process body = HelloWorld Process body = HelloWorld but i get not "HelloWorld" as HTTP response from curl until i add transform(body()) to the route: from("jetty:http://localhost:9080/myapp/myservice";) .process(testProcessor) .p

Re: Body lost with Jetty component

2009-06-18 Thread SwenVogel
Yes, no it works. I have downloaded Camel 2.0-M2 Release and i get the correct console output! Thanks for your quick answer. -- View this message in context: http://www.nabble.com/Body-lost-with-Jetty-component-tp24091800p24093508.html Sent from the Camel - Users mailing list archive at Nabble.

Re: Body lost with Jetty component

2009-06-18 Thread SwenVogel
Im using binary distribution version 2.0-M1 -- View this message in context: http://www.nabble.com/Body-lost-with-Jetty-component-tp24091800p24093362.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Message body lost when message moved by exception clause

2009-06-18 Thread RuneB
A couple of more points: * 1.6.0 behaves like 1.6.1, as far as I can tell. * Loss of message body only occurs if *unmarshalling has taken place*. We've an element like this: If I replace this element (and the bean calls it's for), with a bean call that simply throws a

Re: Body lost with Jetty component

2009-06-18 Thread Willem Jiang
Hi, Which version of Camel are you using? It looks like you are using a old camel version which doesn't enable the stream caching , so you can't read the input stream more than twice. Willem SwenVogel wrote: > Hi, > > im playing around with the jetty component and encountered the problem that >

Body lost with Jetty component

2009-06-18 Thread SwenVogel
Hi, im playing around with the jetty component and encountered the problem that the message body is lost after reading. My test processor class is: private static final class TestProcessor implements Processor { public void process(Exchange e) throws Exception { Message out = e.getO

Re: XML Validation with multiple XSLT schema files.

2009-06-18 Thread SwenVogel
The problem is that all schemas must be present at the time of validating. This is because the element declarations ar spread across differnet schema files. But i think it should work when setting the Schema used by the ValidatingProcessor manually: ValidatingProcessor processor = new Validati

Re: Can I call umarshall/marshall process/endpoint from a camel bean ?

2009-06-18 Thread Charles Moulliard
For me too. Camel bindy uses the echange for classloading of the model classes and use converter BTW, I think that I will create a BindyContext (like JAXBcontext) that I could use to parse the messages without Camel Charles Moulliard Senior Enterprise Architect Apache Camel Committer **

Re: Camel Mail: Alternate body is included twice

2009-06-18 Thread Jörn Kottmann
Claus Ibsen wrote: Hi Cool. I believe I have fixed it already. See other mails in this mail thread. Sorry did not see that mail, thanks :-) Jörn

Camel http: How to disable cookies ?

2009-06-18 Thread Jörn Kottmann
Hi, we are using camel http to poll a xml feed, tough after a few days we get 400 Bad Request replies from the server. Analyzing of the network traffic showed that on each request the http server is setting a new cookie, after 2 two days our get request is too long and the apache http server rej

Re: Camel Mail: Alternate body is included twice

2009-06-18 Thread Claus Ibsen
Hi Cool. I believe I have fixed it already. See other mails in this mail thread. On Thu, Jun 18, 2009 at 11:39 AM, Jörn Kottmann wrote: > Claus Ibsen wrote: > >> Hi >> >> Thanks for reporting. >> >> On Tue, Jun 16, 2009 at 10:06 AM, Jörn Kottmann >> wrote: >> >> >>> Hello, >>> >>> the camel mai

Re: Camel Mail: Alternate body is included twice

2009-06-18 Thread Jörn Kottmann
Claus Ibsen wrote: Hi Thanks for reporting. On Tue, Jun 16, 2009 at 10:06 AM, Jörn Kottmann wrote: Hello, the camel mail component has a feature to send a mail in text/plain and text/html. To do that the text/html content is placed in the message body, the text/plain content in the header

Re: Can I call umarshall/marshall process/endpoint from a camel bean ?

2009-06-18 Thread Claus Ibsen
Hi I cannot see how we can easily add support for using Camel DataFormat as a POJO without the Exchange parameter. On Thu, Jun 18, 2009 at 11:25 AM, Claus Ibsen wrote: > Hi > Yeah but do not use DataFormat but use your own POJO that just does what > Camel does to invoke the real marshaller / u

Re: Can I call umarshall/marshall process/endpoint from a camel bean ?

2009-06-18 Thread Claus Ibsen
Hi Yeah but do not use DataFormat but use your own POJO that just does what Camel does to invoke the real marshaller / unmarshaller logic. You do not have to try shoehorn this into DataFormat that cannot work without Exchange. Use POJO and let Camel invoke your POJO as a "data format" On Thu, J

Re: Can I call umarshall/marshall process/endpoint from a camel bean ?

2009-06-18 Thread Charles Moulliard
This is what I have done but unfortunately, Exchange is a required parameter in both methods of DataFormat ( http://camel.apache.org/maven/camel-core/apidocs/org/apache/camel/model/dataformat/DataFormatType.html ): void *marshal

Re: Message body lost when message moved by exception clause

2009-06-18 Thread Claus Ibsen
On Thu, Jun 18, 2009 at 10:51 AM, RuneB wrote: > > Hi, > > The message body is definitely there when the message is consumed from the > original queue. > > It's in the moving to the destination queue, as a result of an exception, > that the message body is lost. > > I'm inspecting the destination

Re: Message body lost when message moved by exception clause

2009-06-18 Thread RuneB
Hi, The message body is definitely there when the message is consumed from the original queue. It's in the moving to the destination queue, as a result of an exception, that the message body is lost. I'm inspecting the destination queue using the ActiveMQ admin tool. Also, we have a bean that

Re: Can I call umarshall/marshall process/endpoint from a camel bean ?

2009-06-18 Thread Claus Ibsen
Hi The Data Format abstraction in Camel is a thin layer. So you could create your own POJO layer you can invoke. And in the impl of the POJO layer you more or less do the same as Camel does, but without the Exchange as parameter. On Thu, Jun 18, 2009 at 9:58 AM, Charles Moulliard wrote: > Hi, >

Re: Message body lost when message moved by exception clause

2009-06-18 Thread Claus Ibsen
Hi No we have not have this reported before. Could you create a small unit test that demonstrates this bug / issue? Do you say you loose the body when you consume it from the JMS queue? Or do you lose the body before its sent to the JMS queue? eg when you use a JMS queue browser can you see the bo

Message body lost when message moved by exception clause

2009-06-18 Thread RuneB
After upgrading from 1.5.0 to 1.6.1, we find that that exception clauses such as this one my.package.SomeException true cause the message body to be *empty* after the message has been moved to tpforholdArbeidskoe. (tpforholdArbeidskoe is a message queue

Can I call umarshall/marshall process/endpoint from a camel bean ?

2009-06-18 Thread Charles Moulliard
Hi, I would like to know if it is possible for a camel bean to call an unmarshall/marshall endpoint/process (I don't know if it must be considerate as an endpoint or process) from a Camel bean ? In a normal routing, we call unmarshall/marshall like this : What I would like

Re: How to prevent routes from started twice?

2009-06-18 Thread Claus Ibsen
On Thu, Jun 18, 2009 at 9:42 AM, akuhtz wrote: > > Hi, I've tested it yesterday and it works fine. Thanks a lot for that. > Maybe > you can check my comments after your last commit to enable manual start if > the shouldStartContext flag is set to false. Can you create a small unit test to inclu

Re: How to prevent routes from started twice?

2009-06-18 Thread akuhtz
Hi, I've tested it yesterday and it works fine. Thanks a lot for that. Maybe you can check my comments after your last commit to enable manual start if the shouldStartContext flag is set to false. -- View this message in context: http://www.nabble.com/How-to-prevent-routes-from-started-twice--tp

Re: How to prevent routes from started twice?

2009-06-18 Thread Claus Ibsen
Hi I have committed a fix. Please try a SNAPSHOT and test if it works for you. On Mon, Jun 15, 2009 at 1:20 PM, akuhtz wrote: > > Hi Claus, > > I created the JIRA task > https://issues.apache.org/activemq/browse/CAMEL-1711. Simple project and a > logfile is attached. > -- > View this message in

Re: Any news on "Consuming a remote FTP server triggered by a route"

2009-06-18 Thread Claus Ibsen
On Thu, Jun 18, 2009 at 9:00 AM, ohecker wrote: > > Hello, > > the documentation of Camel-FTP states that concering "Consuming a remote FTP > server triggered by a route" an improvement for Camel 2.0 ist planned. I did > not find an JIRA entry about this so i am wondering if there is any news > ab

Any news on "Consuming a remote FTP server triggered by a route"

2009-06-18 Thread ohecker
Hello, the documentation of Camel-FTP states that concering "Consuming a remote FTP server triggered by a route" an improvement for Camel 2.0 ist planned. I did not find an JIRA entry about this so i am wondering if there is any news about this. Thanks Oliver -- View this message in context: