Re: [Aggregator] Howto remove from persistency
Nice, I see it's even already implemented. Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/Aggregator-Howto-remove-from-persistency-tp2852702p2854867.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Newbie Pls help: ETL Example Modification Doesn't work
Claus - apologies for going quiet - I eventually had to go home ;) Thanks ever so much for your help - I will try out the attachment and report back. Thanks S -- View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2854905.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Newbie Pls help: ETL Example Modification Doesn't work
You are a star! Thanks ever so much - I should be able to continue now. I realise (now thanks to you) I was missing a step. I was trying to make the target transfomation object the 'controller' object as such and so expecting the TryIt object to also be the recipient of the doSomething method. Now your example illustrates this perfectly. Sorry for being a numbskull - ahh a refrshing solution at the beginning of the week - nice! S -- View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2854940.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Newbie Pls help: ETL Example Modification Doesn't work
On Mon, Sep 27, 2010 at 10:42 AM, shaun.bar...@rulefinancial.com shaun.bar...@rulefinancial.com wrote: You are a star! Thanks ever so much - I should be able to continue now. I realise (now thanks to you) I was missing a step. I was trying to make the target transfomation object the 'controller' object as such and so expecting the TryIt object to also be the recipient of the doSomething method. Now your example illustrates this perfectly. Sorry for being a numbskull - ahh a refrshing solution at the beginning of the week - nice! Ah glad you got it working. Yeah usually your model objects dont contain logic, which you leave in the controller/service layer. Anyway welcome to the Camel community and don't heistate to ask questions at the user mailing list. S -- View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2854940.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
Re: No conduit initiator was found for the namespace http://schemas.xmlsoap.org/soap/http
Hello All, I am getting same error but behavior of this error is very random in my case. I have two CXF WS installeind in my SVM 4.2.0 container, which are namely (1) Validation WS and (2) SPM WS. When I call my (1) Validation WS from my camel route it is getting successfully called. But when I call my (2) SPM WS from my camel route its giving me same error. FYI :- Both of this WS are internally calling to some other WS, which is tested and validated from SOAP UI and its working fine. I have also tried adding above mentioned bus configuration but still I am getting same error. Any help on this will be much appreciated. -- View this message in context: http://camel.465427.n5.nabble.com/No-conduit-initiator-was-found-for-the-namespace-http-schemas-xmlsoap-org-soap-http-tp2639428p2854949.html Sent from the Camel - Users mailing list archive at Nabble.com.
[HawtDB] Monitoring?
Hello Camel! I am using the new Camel 2.4 HawtDBAggregationRepository. I was wondering if their was any way to monitor the component state. Maybe JMX? or a special tool to see the file content? Thanks in advance for your help, Olivier -- View this message in context: http://camel.465427.n5.nabble.com/HawtDB-Monitoring-tp2855385p2855385.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: [HawtDB] Monitoring?
On Mon, Sep 27, 2010 at 4:44 PM, Olivier.Roger olivier.ro...@bsb.com wrote: Hello Camel! I am using the new Camel 2.4 HawtDBAggregationRepository. I was wondering if their was any way to monitor the component state. Maybe JMX? or a special tool to see the file content? There is no JMX for HawtDB as fair as I know. There is a mailinglist for hawtdb as well, you can try asking there. You should be able to find a link from http://hawtdb.fusesource.org/ Thanks in advance for your help, Olivier -- View this message in context: http://camel.465427.n5.nabble.com/HawtDB-Monitoring-tp2855385p2855385.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
problem using MINA endpoint
I am working to set up Camel to receive data on a MINA endpoint. I have the following statement in my camel XML file: route from uri=mina:tcp://localhost:?textline=true/ to uri=jms:topic:mina.topic / /route When I start up ActiveMQ, I get the following: Failed to execute main task. Reason: java.lang.NoSuchMethodError: org.apache.camel.CamelContext.getExecutorServiceStrategy()Lorg/apache/camel/spi/ExecutorServiceStrategy; Where am I going wrong? Is this the proper way to set this up, or am I doing something else wrong? Thanks, Mark
Re: problem using MINA endpoint
On Mon, Sep 27, 2010 at 5:47 PM, Mark Webb elihusma...@gmail.com wrote: I am working to set up Camel to receive data on a MINA endpoint. I have the following statement in my camel XML file: route from uri=mina:tcp://localhost:?textline=true/ to uri=jms:topic:mina.topic / /route When I start up ActiveMQ, I get the following: Failed to execute main task. Reason: java.lang.NoSuchMethodError: org.apache.camel.CamelContext.getExecutorServiceStrategy()Lorg/apache/camel/spi/ExecutorServiceStrategy; Where am I going wrong? Is this the proper way to set this up, or am I doing something else wrong? You may have mixed versions of Camel in the classpath. Make sure they are all from the same version. Thanks, Mark -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
Re: problem using MINA endpoint
that was the problem. I was still using ActiveMQ 5.3.2 which is using Camel 2.2.0. Thanks On Mon, Sep 27, 2010 at 11:54 AM, Claus Ibsen claus.ib...@gmail.com wrote: On Mon, Sep 27, 2010 at 5:47 PM, Mark Webb elihusma...@gmail.com wrote: I am working to set up Camel to receive data on a MINA endpoint. I have the following statement in my camel XML file: route from uri=mina:tcp://localhost:?textline=true/ to uri=jms:topic:mina.topic / /route When I start up ActiveMQ, I get the following: Failed to execute main task. Reason: java.lang.NoSuchMethodError: org.apache.camel.CamelContext.getExecutorServiceStrategy()Lorg/apache/camel/spi/ExecutorServiceStrategy; Where am I going wrong? Is this the proper way to set this up, or am I doing something else wrong? You may have mixed versions of Camel in the classpath. Make sure they are all from the same version. Thanks, Mark -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
Re: Odd route start behavior after context is started
I downloaded the 2.5 Snapshot jar file and ran through a series of unit tests it was previously failing...now everything seems to be working as expected. I can add/remove routes from the CamelContext during runtime which I couldn't do with 2.4. Thanks for the fix! We will be using this snapshot jar until the official 2.5 release, which hopefully will be in November. In the unit test, I incrementally add routes and in between adding, I send 10 or more messages to make sure each route gets the messages. Then I stop a route, send data, and then re-add the route and send more data. -- View this message in context: http://camel.465427.n5.nabble.com/Odd-route-start-behavior-after-context-is-started-tp2835464p283.html Sent from the Camel - Users mailing list archive at Nabble.com.
putting value in Camel Registry
I am stumped as to how to place an object reference into the Camel registry. I have defined my route in Java DSL and cannot figure out how to put data into the Registry. I am trying to use the MINA endpoint and want to use a custom protocol factory. I have read through Camel In Action section 7.5.2, yet it does not explain how to set the codec in the Registry. Maybe this is more of a java issue that I am not familiar with how to do this, but the book does not seem straight-forward. Thanks, Mark
Re: putting value in Camel Registry
Hi, did you also take a look at chapter 4.3 Camel's bean registries that discusses the registries? It goes through how to bind stuff to the different types of registries. Regards, /Daniel 2010/9/27 Mark Webb elihusma...@gmail.com I am stumped as to how to place an object reference into the Camel registry. I have defined my route in Java DSL and cannot figure out how to put data into the Registry. I am trying to use the MINA endpoint and want to use a custom protocol factory. I have read through Camel In Action section 7.5.2, yet it does not explain how to set the codec in the Registry. Maybe this is more of a java issue that I am not familiar with how to do this, but the book does not seem straight-forward. Thanks, Mark
Re: putting value in Camel Registry
That is exactly what I was looking for. Thank you, Mark On Mon, Sep 27, 2010 at 2:49 PM, Daniel Bevenius daniel.beven...@gmail.com wrote: Hi, did you also take a look at chapter 4.3 Camel's bean registries that discusses the registries? It goes through how to bind stuff to the different types of registries. Regards, /Daniel 2010/9/27 Mark Webb elihusma...@gmail.com I am stumped as to how to place an object reference into the Camel registry. I have defined my route in Java DSL and cannot figure out how to put data into the Registry. I am trying to use the MINA endpoint and want to use a custom protocol factory. I have read through Camel In Action section 7.5.2, yet it does not explain how to set the codec in the Registry. Maybe this is more of a java issue that I am not familiar with how to do this, but the book does not seem straight-forward. Thanks, Mark
Re: No conduit initiator was found for the namespace http://schemas.xmlsoap.org/soap/http
Hi Maybe something wrong which messed up your CXF bus configuration. Please check the configure of your Validation WS and SPM WS for it. Can you show me how you created upper two service? On 9/27/10 4:57 PM, chiragborkar wrote: Hello All, I am getting same error but behavior of this error is very random in my case. I have two CXF WS installeind in my SVM 4.2.0 container, which are namely (1) Validation WS and (2) SPM WS. When I call my (1) Validation WS from my camel route it is getting successfully called. But when I call my (2) SPM WS from my camel route its giving me same error. FYI :- Both of this WS are internally calling to some other WS, which is tested and validated from SOAP UI and its working fine. I have also tried adding above mentioned bus configuration but still I am getting same error. Any help on this will be much appreciated. -- Willem -- Apache Camel, Apache CXF committer Open Source Integration: http://www.fusesource.com Blog:http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: http://twitter.com/willemjiang
Re: camel-bean-validator and hibernate-validator for OSGi
What do you mean about two bundles? Are they two camel context, or others. ServiceMix's repacked bundle should supports to be used across the OSGi platform, so I need more information about how do you use these validator. Please create a small test case to show the whole story. On 9/27/10 3:51 AM, Bengt Rodehav wrote: I'm now using ServiceMix packaging of hibernate validator and the javax.validation api. It works when I only have one bundle using the validation api but when I have two bundles I get the following exception: javax.validation.ValidationException: Unable to find a default provider at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:264) at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:111) at se.digia.sts.util.validation.ValidatorUtil.violations(ValidatorUtil.java:18) at se.digia.sts.safekeep.accounttransaction.impl.AccountTransactionService.createAccountTransaction(AccountTransactionService.java:38) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.aries.blueprint.proxy.Collaborator$1.invoke(Collaborator.java:66) at org.apache.aries.blueprint.proxy.Collaborator.invoke(Collaborator.java:151) at org.apache.aries.blueprint.proxy.CgLibInterceptorWrapper$1.intercept(CgLibInterceptorWrapper.java:125) at se.digia.sts.safekeep.accounttransaction.impl.AccountTransactionService$$EnhancerByCGLIB$$a709c18.createAccountTransaction(generated) at se.digia.sts.safekeep.itest.accounttransaction.AccountTransactionServiceTest.createAccountTransactionTest(AccountTransactionServiceTest.java:55) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.ops4j.pax.exam.junit.extender.impl.internal.CallableTestMethodImpl.injectContextAndInvoke(CallableTestMethodImpl.java:143) at org.ops4j.pax.exam.junit.extender.impl.internal.CallableTestMethodImpl.call(CallableTestMethodImpl.java:105) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.ops4j.pax.exam.rbc.internal.RemoteBundleContextImpl.remoteCall(RemoteBundleContextImpl.java:80) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305) at sun.rmi.transport.Transport$1.run(Transport.java:159) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:155) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) I'm not sure if I'm using the api the correct way. The call (in my code) that causes this exception is: ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); Should I find/create my factory some other way when I use the ServiceMix packaging? Should I use the OsgiLocator.locate() method? /Bengt 2010/9/16 Bengt Rodehavbe...@rodehav.com Willem, Sorry if I appear a bit ignorant but, as I wrote before, I haven't done any OSGi wrapping before - I've always found what I needed. Often from ServiceMix, sometimes from Geronimo (specs) and from SpringSource. I'm trying to get the hang of this... I don't think I need to try the validator API from ServiceMix - I'm sure it works. I just hadn't realised that in order to use the ServiceMix wrapper for hibernate validator one must also use the ServiceMix wrapper for the validation API. Furthermore, it seems there is definitely something for me to learn regarding exporting of META-INF. I haven't thought about this as a problem but realize that I should. What exactly will happen if many bundles export META-INF/services? I realise that it's a non-OSGi way of doing things. In OSGi, an OSGi service
Re: Odd route start behavior after context is started
On 9/28/10 12:26 AM, GSegel wrote: I downloaded the 2.5 Snapshot jar file and ran through a series of unit tests it was previously failing...now everything seems to be working as expected. I can add/remove routes from the CamelContext during runtime which I couldn't do with 2.4. Thanks for the fix! We will be using this snapshot jar until the official 2.5 release, which hopefully will be in November. In the unit test, I incrementally add routes and in between adding, I send 10 or more messages to make sure each route gets the messages. Then I stop a route, send data, and then re-add the route and send more data. Cool, it's good to get the real time feed back about the issue that user found. I don't need to refresh my memory to go through the whole fix approach again. That's one of the good reasons why I love Open Source :) -- Willem -- Open Source Integration: http://www.fusesource.com Blog:http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: http://twitter.com/willemjiang
How to receive soap response attachment using Camel-Http component
Hi, I am using Camel-Http component to talk with remote Webservices. One of the operation present in the Webservice returns an attachment with it. The problem here is that the camel copies the whole response in the body part of org.apache.camel.Message class. The message class contains method like message.getAttachment(String id). There should be some way by which you can get your webservice response in the attachment section of Message class. The current structure of body is as follows --uuid:02620274-3a01-48c7-869e-ed45bdcc77f1 Content-Id: rootpart*02620274-3a01-48c7-869e-ed45bdcc7...@example.jaxws.sun.com Content-Type: application/xop+xml;charset=utf-8;type=text/xml Content-Transfer-Encoding: binary ?xml version=1.0 ?S:Envelope xmlns:S=http://schemas.xmlsoap.org/soap/envelope/;S:Bodyns2:GetFileResponse xmlns:ns2=http://www.example.org/Danger/;xmlPayloadInclude xmlns=http://www.w3.org/2004/08/xop/include; href=cid:9b35dfa0-a951-49f7-8cf7-167d4d7f864e@example.jaxws.sun.com//xmlPayload/ns2:GetFileResponse/S:Body/S:Envelope --uuid:02620274-3a01-48c7-869e-ed45bdcc77f1 Content-Id: 9b35dfa0-a951-49f7-8cf7-167d4d7f8...@example.jaxws.sun.com Content-Type: application/xml; charset=UTF-8 Content-Transfer-Encoding: binary ?xml version=1.0 encoding=UTF-8?nametest-name/name --uuid:02620274-3a01-48c7-869e-ed45bdcc77f1-- Here the last two lines represents the content inside the attachment. Please tell what settings need to be done to get the attachment data in message.getAttachment() method. With Regards Harbeer Kadian -- View this message in context: http://camel.465427.n5.nabble.com/How-to-receive-soap-response-attachment-using-Camel-Http-component-tp2856274p2856274.html Sent from the Camel - Users mailing list archive at Nabble.com.