Re: Messages not persisted during broker restart

2010-05-06 Thread Willem Jiang
Hi, I think you need to post this issue into ActiveMQ user mailing list instread of the camel one. This is an ActiveMQ related issue :) Willem usha Kanteti wrote: HI, I am newbi to JMS and here is the trouble that I see. 1) I started the jms broker and producer and my producer code produ

Re: need create a route which can handle several encoding

2010-05-06 Thread Willem Jiang
Hi You can set the encoding on each exchange by set the exchange property with the name Exchange.CHARSET_NAME("CamelCharsetName") and value that you want. You can do it with DSL setProperty(Exchange.CHARSET_NAME, ExpressionBuilder.constantExpression("UTF-8")) or Spring config UTF

Re: [HEADS UP] Camel-cxf component in Camel 2.3 will require CXF 2.2.8

2010-05-06 Thread Willem Jiang
I also updated the OSGi meta data of camel-cxf for this requirement. Willem William Tam wrote: I just want to point it out (as noted in the release wiki page). As the result of CAMEL-2614, we has eliminated custom CXF interceptors that parse message in PAYLOAD mode will require CXF 2.2.8. Ho

[HEADS UP] Camel-cxf component in Camel 2.3 will require CXF 2.2.8

2010-05-06 Thread William Tam
I just want to point it out (as noted in the release wiki page). As the result of CAMEL-2614, we has eliminated custom CXF interceptors that parse message in PAYLOAD mode will require CXF 2.2.8. However, other modes (POJO and MESSAGE) are unaffected (they will not require CXF 2.2.8). Thanks,

need create a route which can handle several encoding

2010-05-06 Thread mcrive
Hi, my route gets a feed (string) from a web service and distribute it to several endpoint. when I get the feed I might get it in UTF-8 or ISO-8859-I and I would like to respect this encoding when distributing the feed to the endpoint(s). The feed is stored as body of the exchange. At the moment

Re: Recieving BlobMessages routed with Camel

2010-05-06 Thread GibKing
On my way home i thought about it and came to the conclusion that there maybe a bug in camel handling the outgoing exchange. Im going to look at the camel-source if i can find anything... -- View this message in context: http://old.nabble.com/Recieving-BlobMessages-routed-with-Camel-tp28367084p2

Re: Recieving BlobMessages routed with Camel

2010-05-06 Thread GibKing
Hi Claus, this actually works only with a single route. public class FileHandler{ @Handler public void onMessage(Exchange exchange){ exchange.getIn().getBody().getClass() == ActiveMQBlobMessage } but with this routing(tested on single broker and network of 2 brokers):

Re: Recovery From Netty Connection Drop

2010-05-06 Thread Gareth Collins
Hello Claus, I see there is a fix checked in already! Thank you! I will test it out today and confirm it is good (at least for my requirement). thanks again, Gareth Claus Ibsen-2 wrote: > > Hi > > I created a couple of tickets to improve/fix camel-netty > https://issues.apache.org/activemq/

Re: Recovery From Netty Connection Drop

2010-05-06 Thread Claus Ibsen
Hi I have committed fixes to camel-netty today. Can you test it on your system. It should now support re-connection and proper shutdown and whatnot. Mind that I have aligned and added the options so it matches the one we got in camel-mina. eg sync is now default true etc. Updated wiki page http

Data not inserted into DB (Camel Bean / EclipseLink / Spring DM / SMX 4.2) !!

2010-05-06 Thread Charles Moulliard
Hi, I use Camel 2.2 on SMX4.2 with Spring. I have created a route calling a camel bean POJO exposed as a Spring DM service. Everything works fine, no error is returned but my data are not saved in the DB. Config : Route public void configure() throws Exception {

Messages not persisted during broker restart

2010-05-06 Thread usha Kanteti
HI, I am newbi to JMS and here is the trouble that I see. 1) I started the jms broker and producer and my producer code produced 10 messages to the topic "myTopic". I see these messages in jconsole with EnqueueCount=10 in "myTopic" 2) I didn't configure any consumers for this topic "myTopic"

Re: log component

2010-05-06 Thread Claus Ibsen
Hi Yes see the wiki documentation and the first example http://camel.apache.org/logeip.html On Thu, May 6, 2010 at 3:08 PM, Charles Moulliard wrote: > Hi, > > I would like to know if it is possible using the log component to > printout a message to the console with the message id ? > > from() >

log component

2010-05-06 Thread Charles Moulliard
Hi, I would like to know if it is possible using the log component to printout a message to the console with the message id ? from() .log(">>> Message saved in the DB : " + ) Kind regards, Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apache Camel Committer

Re: Camel startup dependencies in OSGI/Karaf

2010-05-06 Thread Bengt Rodehav
Perfect! 2010/5/5 Guillaume Nodet : > I've created https://issues.apache.org/activemq/browse/CAMEL-2693 for that. > > On Thu, Apr 29, 2010 at 14:06, Bengt Rodehav wrote: > >> Hello Willem, >> >> Yeah, I guess it could potentially be a lot of service dependencies. >> Remember though that these dep

Re: Question using OSGI / Bean / osgi:service

2010-05-06 Thread Charles Moulliard
Hi, I have found the error. I must use the syntax "beanRef" and not "bean" in the javaDSL Kind regards, Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apache Camel Committer *** - Blog : http://cmoulliard.blogspot

Re: Question using OSGI / Bean / osgi:service

2010-05-06 Thread Charles Moulliard
Hi Willem, I get the same error if I use the syntax : .bean("com.goodyear.emea.gicl.esb.service.Persistence", "save") Caused by: org.apache.camel.component.bean.MethodNotFoundException: Method with name: save not found on bean: com.goodyear.emea.gicl.esb.service.Persistence. ... at org.

Re: intercept SOAP message

2010-05-06 Thread Willem Jiang
Hi If you take a look at camel cxf wiki page[1], you will find what you need. There are topics you may take a look: "How to get and set SOAP headers in POJO mode" "How to get and set SOAP headers in PAYLOAD mode". [1]http://camel.apache.org/cxf.html Willem trivedi kumar b wrote: Hi, I have a

Re: Question using OSGI / Bean / osgi:service

2010-05-06 Thread Charles Moulliard
Hi Willem, I will make a test but I think that if I use package name "com.goodyear.emea.gicl.esb.service.Persistence" instead of the spring ref, camel will instantiate an object locally and in this case, it will not aware of the spring injection !! Kind regards, Charles Moulliard Senior Enterpr

Re: Question using OSGI / Bean / osgi:service

2010-05-06 Thread Willem Jiang
Hi Charles, Maybe something is wrong with the OSGi service which is consumed within Spring DM. I need to dig your test case for it. Can you try to using the interface name "com.goodyear.emea.gicl.esb.service.Persistence" instead of "sapPersistence" as the camel-bean's name ? As camel-osgi su

Re: Recovery From Netty Connection Drop

2010-05-06 Thread Claus Ibsen
Hi I created a couple of tickets to improve/fix camel-netty https://issues.apache.org/activemq/browse/CAMEL-2698 https://issues.apache.org/activemq/browse/CAMEL-2699 I got the first one committed, and will work on the 2nd ticket. On Thu, May 6, 2010 at 6:33 AM, Claus Ibsen wrote: > Hi > > Well