Re: loading xml file

2012-02-13 Thread Claus Ibsen
On Tue, Feb 14, 2012 at 8:36 AM, Samruben wrote: > Thank you for your reply. > > I have gone through it. Is there any demo example implemented this concept > in already existing camel examples? > No there is no examples. > -- > View this message in context: > http://camel.465427.n5.nabble.com/l

Re: loading xml file

2012-02-13 Thread Samruben
Thank you for your reply. I have gone through it. Is there any demo example implemented this concept in already existing camel examples? -- View this message in context: http://camel.465427.n5.nabble.com/loading-xml-file-tp5481677p5481741.html Sent from the Camel - Users mailing list archive at

Re: loading xml file

2012-02-13 Thread Claus Ibsen
Hi You can take a look at this little example, its about loading a Camel XML route and adding it as a route to Camel: http://camel.apache.org/loading-routes-from-xml-files.html On Tue, Feb 14, 2012 at 8:00 AM, Samruben wrote: > Hi > I am a new user to camel. > > Could you provide me some exampl

Re: quartz compoent in camel 2.6

2012-02-13 Thread Claus Ibsen
Hi You need to add camel-quartz JAR to the classpath, and the quartz libraries itself. If you use maven that is easy as you just add a dependency to camel-quartz. On Tue, Feb 14, 2012 at 5:38 AM, madhu wrote: > hi, > how to use quartz component in camel 2.6 with spring dsl. i need to shedule > a

loading xml file

2012-02-13 Thread Samruben
Hi I am a new user to camel. Could you provide me some example in which, the service should load the xml from file system(the xml contains the flow for the service) and should execute it when a service is called. Thank you. -- View this message in context: http://camel.465427.n5.nabble.com/l

RE: about netty encoder and encoders...

2012-02-13 Thread xiangqiuzhao
I change the URI with .to("netty:tcp://localhost:6789?encoder=#myEncoder&decoder=#myDecoder&sync=true"). but the same exception be throw. the whole code like: Object decoder = new LengthDecoder(); //appctx.getBean("mydecoder"); Object encoder = new MessageEncoder(10); //appctx.ge

quartz compoent in camel 2.6

2012-02-13 Thread madhu
hi, how to use quartz component in camel 2.6 with spring dsl. i need to shedule a job using it. i tried like this http://camel.465427.n5.nabble.com/quartz-compoent-in-camel-2-6-tp5481467p5481467.html S

Re: About SQS deletion of Message (or policy?)

2012-02-13 Thread Willem Jiang
Just another thought, you can consider to inject a new Synchronization which deletes the message as you want by using the Policy API. You can find an example here[1] [1]http://svn.apache.org/repos/asf/camel/trunk/components/camel-spring-security/src/main/java/org/apache/camel/component/spring/se

Re: About SQS deletion of Message (or policy?)

2012-02-13 Thread Willem Jiang
Hi If you take a look at the code of SqsConsumer[1] you will see the processCommit method. You can extends the SqsConsumer yourself to implement that logic yourself. Maybe we could consider to expose that kind of strategy API to user in Camel 3.0. [1]http://svn.apache.org/repos/asf/camel/tru

Re: No component found with scheme: context

2012-02-13 Thread Willem Jiang
It's more complicated then we thought. Please check out this thread in the Fuse forum[1]. [1]http://fusesource.com/forums/thread.jspa?threadID=3696&tstart=0 On Mon Feb 13 17:00:19 2012, Naira & Kobo wrote: Hi Ashwin, Thanks for responding. My application bundle is importing the same version of

Re: HolderOutInterceptor Exception in a "complex" camel-cxf route

2012-02-13 Thread Willem Jiang
Can you try to invoke the service cxf: directly ? Maybe you don't prepare the parameter rightly. On Tue Feb 14 00:40:36 2012, amasse wrote: Hi, I'm writing the following route : from("cxf:") to.("log:fromService") .process(new Processor() { // prepare body to call cxf: } .to("cxf:") .proce

Re: camel and spring in a webapp

2012-02-13 Thread Babak Vahdat
Hi again, Now I think I've got your question, well I could indeed reproduce the behaviour you're suffering from: Using [1] I did specify the package "org.apache.camel.converter" inside [2] *as well*, that's the content became: org.apache.camel.tests.typeconverterscan org.apache.camel.converter

Re: camel and spring in a webapp

2012-02-13 Thread Babak Vahdat
Hi not really sure if I get your question right but for this purpose, as the name already says, simply use fully qualified class name (FQN) [1] of your converter inside TypeConverter file. As an example look at [2]. [1] http://camel.apache.org/type-converter.html#TypeConverter-WritingyourownTypeC

Re: Dynamic reloading of routes with SpringXML

2012-02-13 Thread Babak Vahdat
Hi The loadRoutesDefinition() is deprecated at the CamelContext level and has been leveraged to ModelCamelContext [1] where you can make use of setDataFormats() as well. Also note that as a side effect the Impl class org.apache.camel.impl.DefaultCamelContext now implements this new ModelCamelCont

Re: 2.9.0 - Seda non-existent JMX methods

2012-02-13 Thread Tim
lol sry Babak. My jira searching skills apparently need work as I did a search for it before emailing and found nothing. :P On Mon, Feb 13, 2012 at 3:26 PM, Babak Vahdat wrote: > Hi > > This was reported by another user as well [1] and has been already fixed > for > the upcomming Camel releases (

Re: 2.9.0 - Seda non-existent JMX methods

2012-02-13 Thread Babak Vahdat
Hi This was reported by another user as well [1] and has been already fixed for the upcomming Camel releases (2.9.1 & 2.10.0). [1] http://camel.465427.n5.nabble.com/JMX-queue-size-operation-fails-Camel-2-9-0-td5233089.html Babak -- View this message in context: http://camel.465427.n5.nabble.co

Re: camel and spring in a webapp

2012-02-13 Thread David Delbecq
Yes, i got mistaken during debugging. Seems my camel does load the converter twice. One doing using qualified names (META-INF) and one using package scan. The second one is failling. I used an old jboss-camel librairy to make it work, but i still have the useless double loading. If someone can

Re: Dynamic reloading of routes with SpringXML

2012-02-13 Thread louisparks
It appears as though the method loadRoutesDefinition was deprecated in 2.9. Is there another prefered method to do this then? I also need a way to load in the DataFormats in dynamically the same way. I can't seem to find anything to allow for that. Any help is appreciated. Thanks, Louis -- Vi

HolderOutInterceptor Exception in a "complex" camel-cxf route

2012-02-13 Thread amasse
Hi, I'm writing the following route : from("cxf:") to.("log:fromService") .process(new Processor() { // prepare body to call cxf: } .to("cxf:") .process(new Processor() { // extract the result // update getOut() to return the result to the cxf: } the issue is : java.lang.NullPointerE

2.9.0 - Seda non-existent JMX methods

2012-02-13 Thread Tim
I'm using seda in my project and pre-2.9.0 I used to check the queue size using queueSize() via JMX. After the upgrade to 2.9.0, queueSize gives an exception saying that it's missing the method (camelId does the same but I don't use that one). The strange thing is that the code for 2.9.0 doesn't e

RE: about netty encoder and encoders...

2012-02-13 Thread Boller, Stefan
Hi, please try ".to("netty:tcp://localhost:6789?encoder=#myEncoder&decoder=#myDecoder&sync=true")". Please note the "#" sign in the url, which marks a reference. Best regards, STefan -Original Message- From: xiangqiuzhao [mailto:xiangqiuz...@gmail.com] Sent: Montag, 13. Februar 2012 1

Re: camel and spring in a webapp (camel does not work on jboss?)

2012-02-13 Thread Willem Jiang
Hi, I still don't get how the "org/apache/camel/converter" is loaded. Do you use OSGi related technology? I think you get work around it by using the camel-jboss component[1] to handle the issue of vfszip. [1]http://camel.apache.org/camel-jboss.html Willem On 2/13/12 6:33 PM, David Delbecq

Re: camel and spring in a webapp

2012-02-13 Thread Willem Jiang
Hi If you take a look at the code of CorePackageScanClassResolver you will find the the packages which are returned will not be scanned. On 2/13/12 6:10 PM, David Delbecq wrote: Here i what i see in sources of camel-core-2.9.0 package org.apache.camel.impl.converter; import java.io.IOExcept

Re: Passing input stream to the route

2012-02-13 Thread Willem Jiang
Hi, You may get some idea by checking out the code of StreamComponent. But you still need to find a way to tell the StreamConsumer to pick up the Stream when your callback API is called. Maybe you can pass let the callback all the StreamConsumer process method directly when the stream is ready

about netty encoder and encoders...

2012-02-13 Thread xiangqiuzhao
if i use encoders and decoders property, the program is ok. Object decoder = new LengthDecoder(); //appctx.getBean("mydecoder"); Object encoder = new MessageEncoder(10); //appctx.getBean("myencoder"); SimpleRegistry registry = new SimpleRegistry();

Re: How to include additional data to soap header (WSSE,WSA) with camel-cxf

2012-02-13 Thread Glen Mazza
http://camel.apache.org/cxf.html#CXF-HowtogetandsetSOAPheadersinPOJOmode, possibly http://camel.apache.org/cxf.html#CXF-HowtogetandsetSOAPheadersinPAYLOADmode should help you. Glen On 02/13/2012 07:32 AM, Filippo Balicchia wrote: Hello i need to include header in my soap request with camel-c

Re: camel and spring in a webapp (camel does not work on jboss?)

2012-02-13 Thread Babak Vahdat
Aha it seems that also the Spring folks used to suffer from exactly the same problem by the JBoss VFS (Virtual File System) abstraction not putting "!" into the JAR-URL: https://jira.springsource.org/browse/SPR-5120 See also: https://issues.jboss.org/browse/JBPAPP-5051 Babak -- View this mess

How to include additional data to soap header (WSSE,WSA) with camel-cxf

2012-02-13 Thread Filippo Balicchia
Hello i need to include header in my soap request with camel-cxf I have route like this from("timer://foo?fixedRate=true&period=1").process(new Processor() { @Override public void process(Exchange exchange) throws Exception { In

Re: camel and spring in a webapp (camel does not work on jboss?)

2012-02-13 Thread Babak Vahdat
Hi Most probably what I'm going to say will not be helpful at all but anyway: Last year for one of my client apps I used to make use of camel-jboss (JBoss 5.1) before camel 2.8.0 was out the door. After [1] was fixed I did REMOVE the camel-jboss dependency and using FQN I did specify my type conv

Re: camel and spring in a webapp (camel does not work on jboss?)

2012-02-13 Thread David Delbecq
Here is the result of step by step analysis in debug. Inside DefaultPackageScanClassResolver.find(PackageScanFilter test, String packageName, ClassLoader loader, Set> classes) My classloader is org.jboss.web.tomcat.service.WebCtxLoader$ENCLoader@2fb078b8 packagename is org/apache/camel/converter

Re: Passing input stream to the route

2012-02-13 Thread Henryk Konsek
> In this case you may consider to extends the StreamComponent and pass the > csvDataStream into it. Hi Willem. Thank you for the reply. Unfortunately I don't get your idea :) Could you elaborate it a little bit more? Maybe you could also provide a route / code example. Kind regards. -- Henryk

Re: camel and spring in a webapp

2012-02-13 Thread David Delbecq
Here i what i see in sources of camel-core-2.9.0 package org.apache.camel.impl.converter; import java.io.IOException; /** * Will load all type converters from camel-core without classpath scanning, which makes * it much faster. * * The {@link CorePackageScanClassResolver} contains a hardcoded

Re: camel and spring in a webapp

2012-02-13 Thread David Delbecq
JBoss 5.1.0GA and jdk 1.6.0_27 - Mail original - De: "Claus Ibsen" À: users@camel.apache.org Envoyé: Lundi 13 Février 2012 09:56:25 Objet: Re: camel and spring in a webapp Hi What version of JBoss and JVM are you using? On Mon, Feb 13, 2012 at 9:52 AM, David Delbecq wrote: > It's an

Re: features comparision of apache camel 2.6

2012-02-13 Thread madhu
thank u very much -- View this message in context: http://camel.465427.n5.nabble.com/features-comparision-of-apache-camel-2-6-tp5478357p5478609.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Question on the proper usage of Camel

2012-02-13 Thread Ioannis Canellos
Grezgorz, Allow me to clarify that I did not mean that you are "overusing" camel. Or at least I don't consider building 20 processors Camel overuse. I think that you are just making your life harder, regardless of camel. For instance in a plain java application, building & wiring 20 classes to

Re: No component found with scheme: context

2012-02-13 Thread Naira & Kobo
Hi Ashwin, Thanks for responding. My application bundle is importing the same version of camel-core & camel-spring and yet it fails. Any other ideas. I am actually using camel-core, camel-spring, camel-context; all 2.7.1-fuse-00-43. Thanks. -- View this message in context: http://camel.465427

Re: camel and spring in a webapp

2012-02-13 Thread Claus Ibsen
Hi What version of JBoss and JVM are you using? On Mon, Feb 13, 2012 at 9:52 AM, David Delbecq wrote: > It's an existing webapp bundled for jboss where we try to integrate camel. It > would be a lot of work to get it working on other container (out of the box, > it fails on tomcat and vmware)

Re: camel and spring in a webapp

2012-02-13 Thread David Delbecq
It's an existing webapp bundled for jboss where we try to integrate camel. It would be a lot of work to get it working on other container (out of the box, it fails on tomcat and vmware) . I checked the .war and jboss configuration. Jboss has no camel library i could find, and the war only contai