Re: jetty-component : deploy into Tomcat or other j2ee-server

2009-03-27 Thread Willem Jiang
No, you can't start a jetty-http-endponit with that configuration. Since the jetty-http component will start a Jetty connector and setup the servlet for listening the http request and call the camel processor for further processing. If you want leverage the Tomcat or other web container to do Http

Re: Camel JMS Component (ActiveMQ) Repeatedly Reconnects

2009-03-27 Thread greenbean
Hmmm I still get the same error. I test by sending a text message to a queue using JConsole to invoke the sendMessage operation on the queue. Errors start showing up in the log as soon as the message is sent. It shows up in the queue. It is not processed. I instead keep seeing the message

Re: jetty-component : method GET

2009-03-27 Thread Claus Ibsen
On Fri, Mar 27, 2009 at 5:27 PM, pevgen wrote: > > Thank you, Claus > > And can't i found GET query string in http-Exchange ? only as param=value in > headers ? I think you can get access to the HttpRequest object like this HttpServletRequest req = exchange.getIn().getBody(HttpServletRequest.clas

Re: jetty-component : deploy into Tomcat or other j2ee-server

2009-03-27 Thread pevgen
Thank you. Of couse, i red this article. But i don't uderstand how i can listen on a jetty-http-endpoint in exaple's configuration ? Claus Ibsen-2 wrote: > > On Fri, Mar 27, 2009 at 3:48 PM, pevgen wrote: >> >> Hello. >> >> Can i deploy my http-consumer-endpoint (like jetty-endpoint) in Tomca

Re: jetty-component : method GET

2009-03-27 Thread pevgen
Thank you, Claus And can't i found GET query string in http-Exchange ? only as param=value in headers ? Claus Ibsen-2 wrote: > > On Fri, Mar 27, 2009 at 3:46 PM, pevgen wrote: >> >> Hello. >> >> I have a jetty-endpoint. >> for example : >> http://localhost:1234/base/"/> >> >> >> Can i get

Re: PAYLOAD access API changed with camel from camel 1.3.x.x => 1.5.1.1 ?

2009-03-27 Thread mario_horny
Sorry to have wasted your time, guys. The API IS still there and works as described. Was just a wrong configuration of my eclipse environment :-( ! Best regards, Mario William Tam wrote: > > That's strange. The APIs didn't change (looking at camel-1.5.1-fuse) > . The getMessage() method is

Re: Jaxb Encoding

2009-03-27 Thread Claus Ibsen
Hi You want the XML outputted to write encodoing="iso-8859-1" in the XML declaration? Try checking the JAXB API how to set the encoding. That will help us. You can set a Exchange property with the encoding, however not all components/dataformats know this one. There is a constant on Exchange.CHA

Re: PAYLOAD access API changed with camel from camel 1.3.x.x => 1.5.1.1 ?

2009-03-27 Thread mario_horny
Hi Claus, I already tried List elements = exchange.getIn().getBody(List.class); before I opend the request. But this throws an exception that tells me that there is no converter from CxfMessage => List available. Trying out Object body = exchange.getIn().getBody(); tells me that body's cla

Re: PAYLOAD access API changed with camel from camel 1.3.x.x => 1.5.1.1 ?

2009-03-27 Thread William Tam
That's strange. The APIs didn't change (looking at camel-1.5.1-fuse) . The getMessage() method is still there. On Fri, Mar 27, 2009 at 11:35 AM, mario_horny wrote: > > Hi guys, > > I'm using camel 1.5.1.1 coming with artix 5.5. > > I was trying to get back to a code snipped that Willem has prov

Re: PAYLOAD access API changed with camel from camel 1.3.x.x => 1.5.1.1 ?

2009-03-27 Thread Willem Jiang
I just check the test code in Camel 1.x branch Message inMessage = exchange.getIn(); if(inMessage instanceof CxfMessage) { CxfMessage message = (CxfMessage) inMessage; List elements = message.getMessage().get(List.class); assertNotNull("We should get the elements here" , elements)

Re: PAYLOAD access API changed with camel from camel 1.3.x.x => 1.5.1.1 ?

2009-03-27 Thread Claus Ibsen
On Fri, Mar 27, 2009 at 4:35 PM, mario_horny wrote: > > Hi guys, > > I'm using camel 1.5.1.1 coming with artix 5.5. > > I was trying to get back to a code snipped that Willem has provided to me a > couple of months ago (back when I was still using artix 5.1 with camel > 1.3.x.x) that showed how to

PAYLOAD access API changed with camel from camel 1.3.x.x => 1.5.1.1 ?

2009-03-27 Thread mario_horny
Hi guys, I'm using camel 1.5.1.1 coming with artix 5.5. I was trying to get back to a code snipped that Willem has provided to me a couple of months ago (back when I was still using artix 5.1 with camel 1.3.x.x) that showed how to access a message in PAYLOAD mode: public void process(Exchange

Re: jetty-component : deploy into Tomcat or other j2ee-server

2009-03-27 Thread Claus Ibsen
On Fri, Mar 27, 2009 at 3:48 PM, pevgen wrote: > > Hello. > > Can i deploy my http-consumer-endpoint (like jetty-endpoint) in Tomcat or > other j2ee server ? Yes see this link http://camel.apache.org/tutorial-on-using-camel-in-a-web-application.html eg you can package your application as a standa

Re: jetty-component : method GET

2009-03-27 Thread Claus Ibsen
On Fri, Mar 27, 2009 at 3:46 PM, pevgen wrote: > > Hello. > > I have a jetty-endpoint. > for example : > http://localhost:1234/base/"/> > > > Can i get a query-string in the "myProcesor", if i send a message by method > GET ? If i use the method POST, it work fine. But a message body have null >

jetty-component : deploy into Tomcat or other j2ee-server

2009-03-27 Thread pevgen
Hello. Can i deploy my http-consumer-endpoint (like jetty-endpoint) in Tomcat or other j2ee server ? Thank you. Evgeny -- View this message in context: http://www.nabble.com/jetty-component-%3A-deploy-into-Tomcat-or-other-j2ee-server-tp22743212p22743212.html Sent from the Camel - Users mailing

jetty-component : method GET

2009-03-27 Thread pevgen
Hello. I have a jetty-endpoint. for example : http://localhost:1234/base/"/> Can i get a query-string in the "myProcesor", if i send a message by method GET ? If i use the method POST, it work fine. But a message body have null inside, if i use the method GET. I use Camel 2.0-M1. Thank you,

Jaxb Encoding

2009-03-27 Thread Tobias Emmerich
Hallo together, i want to set the encoding from standart UTF-8 to iso-8859-15 in my "Camel Root". The source till now is like this: i searched for somthing like: Is there a standard way to set the encoding like this or is the only way writing my on jaxb class? Thanks for help Tobias

Re: Camel 2.0 - Multicast issue ??

2009-03-27 Thread Willem Jiang
Hi I need to clear one thing, mulicast processor don't wait for the out message. It just delegates the calling of it following processor parallelly or sequentially. If we want to inspect the response , we could do it in the aggregation strategy. Willem Claus Ibsen wrote: > Hi > > You can use t

Re: Camel 2.0 - Multicast issue ??

2009-03-27 Thread Claus Ibsen
Hi Sorry the people that uses gmail, that is an nice mail app, do not see the quotes as it filter them by default. And show you only the relevant part. On Fri, Mar 27, 2009 at 10:56 AM, Gary Jones wrote: > [Hge snip] > > Can we try to keep the noise down, please? That last email was 1120 >

Re: Camel 2.0 - Multicast issue ??

2009-03-27 Thread Gary Jones
[Hge snip] Can we try to keep the noise down, please? That last email was 1120 lines, over 1100 of which were just quoted text from the previous half dozen emails or so, all of which are in the archives if anyone needs to refer back to them and doesn't have them locally. "Be brief without bei

Re: Camel 2.0 - Multicast issue ??

2009-03-27 Thread Claus Ibsen
Hi Just for to record. I create 2 tickets for these. CAMEL-1494, CAMEL-1495 2009/3/27 Claus Ibsen : > Hi > > You can use the wireTap for fire and forget style DSL. > > 1) > However I currently does not support specifying multiple destinations > in one line. > > 2) > However I was wondering if we

Re: Camel 2.0 - Multicast issue ??

2009-03-27 Thread Claus Ibsen
Hi You can use the wireTap for fire and forget style DSL. 1) However I currently does not support specifying multiple destinations in one line. 2) However I was wondering if we could improve the logic in multicast to inspect the MEP and if not Out capable it should not wait/expect a response. Mi

Re: Camel 2.0 - Multicast issue ??

2009-03-27 Thread Willem Jiang
Hi Charles Here an example of how to make the multicast parallel in Spring from Camel unit test. http://svn.apache.org/repos/asf/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/multicastAggregator.xml Willem Willem Jiang wrote: > Hi Charles, > > Camel mul

Re: Camel 2.0 - Multicast issue ??

2009-03-27 Thread cmoulliard
Hi Willem, Many thanks. By the way, It should be interesting to have a real parallel DSL word in the camel syntax for simple case like this. The route could be written with the assumption that no OUT message is waited by the calling process e.g. ... An extension of this could

Re: Deploying same camelContext.xml in and out of OSGi

2009-03-27 Thread cmoulliard
Hi, We are at the crossroads ("à la croisée des chemins in french"). It will be very difficult to maintain Camel projects runnable in OSGI and non-OSGI environments. OSGI projects are really specific because they depends on bundles, packages must be exported, imported in the MANIFEST file, proced

Re: Camel 2.0 - Multicast issue ??

2009-03-27 Thread Willem Jiang
Hi Charles, Camel multicast supports to send the exchange parallely. You just need to set the customer aggregation strategy to return a right exchange for aggregation like this, since we don't when the bean's exchange is returned. public class MyCustomerAggregationStrategy implements AggregationS

Re: Camel 2.0 - Multicast issue ??

2009-03-27 Thread cmoulliard
Many thanks Willem. In fact, I tried to use the multicast as a workaround because I was blocked to call directly the bean:feedback after the step converting the content of WS into InputReportIncident. I have the same problem as we have with the setHeader that you solved remark : In my case, it co

Camel / ServiceMix portage to .NET (C#, VB.NET)

2009-03-27 Thread cmoulliard
Hi, I post this message to ask to the users 's community if people are interested of a Camel / ServiceMix / Cxf porting to .NET (using C# or VB.NET as language) ? Regards, - Charles Moulliard SOA Architect My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/ -- Vie