Re: Invoking web services with Camel Using CXF

2009-03-04 Thread Claus Ibsen
I have fixed the camel:run - to use same parameter name as camel:dot = useDot and its not writeable - and for camel:run useDot is now default disabled Will be in Camel 1.6.1 and 2.0. On Thu, Mar 5, 2009 at 6:57 AM, Claus Ibsen wrote: > On Thu, Mar 5, 2009 at 6:55 AM, Claus Ibsen wrote: >> On W

Re: Is it possible to overload a bean method?

2009-03-04 Thread Claus Ibsen
On Wed, Mar 4, 2009 at 9:13 PM, ee7arh wrote: > > Hi, > > I have a bean defined which has 3 methods all with same name but with > different arguements. I would like to route messages from a queue to this > bean and depending on the object type I was hoping that the correct method > would get calle

Re: Invoking web services with Camel Using CXF

2009-03-04 Thread Claus Ibsen
On Thu, Mar 5, 2009 at 6:55 AM, Claus Ibsen wrote: > On Wed, Mar 4, 2009 at 10:42 PM, Bruce Snyder wrote: >> I'm creating a simple example of using Camel 1.6 with web services >> using the java_first_spring_support service that comes with CXF. I >> have a XML schema and a Java API of the same ser

Re: Invoking web services with Camel Using CXF

2009-03-04 Thread Claus Ibsen
On Wed, Mar 4, 2009 at 10:42 PM, Bruce Snyder wrote: > I'm creating a simple example of using Camel 1.6 with web services > using the java_first_spring_support service that comes with CXF. I > have a XML schema and a Java API of the same service. Both were > created using the Maven archetypes and

Re: Invoking web services with Camel Using CXF

2009-03-04 Thread Willem Jiang
Hi Bruce, If you already has the request message from the file endpoint, you just need to use http endpoint to call the external web service like this. http://activemq.apache.org/camel/schema/spring";> com.mycompany.camel http://localhost:9002/HelloWorld"/> Wille

Re: Are durable topic subscriptions destroyed?

2009-03-04 Thread Claus Ibsen
On Thu, Mar 5, 2009 at 3:38 AM, ariekenb wrote: > > If I create a durable topic subscription using the jms or activemq components > (for example > activemq:topic:myTopic?clientId=client1&durableSubscriptionName=subscription1), > does camel ever cause the durable subscription to be destroyed?  In o

Re: camel - cxf endpoint : no declaration can be found for element 'cxf:cxfEndpoint'.

2009-03-04 Thread Willem Jiang
Hi Charles, "http://activemq.apache.org/camel/schema/cxfEndpoint"; is the namespace which need to support in Camel 1.2. >From Camel 1.2 , we are using "http://activemq.apache.org/camel/schema/cxf";. Now all the request to "http://activemq.apache.org/camel"; will be redirect to "http://camel.apach

Are durable topic subscriptions destroyed?

2009-03-04 Thread ariekenb
If I create a durable topic subscription using the jms or activemq components (for example activemq:topic:myTopic?clientId=client1&durableSubscriptionName=subscription1), does camel ever cause the durable subscription to be destroyed? In other words will camel ever cause session.unsubscribe to be

Re: java.lang.NoClassDefFoundError when running CamelJmsToFileExample

2009-03-04 Thread willem.jiang
>From the stack trance you just need to the spring-tx into you class path. I just checked the camel 1.6 , we have the dependency of the spring-tx in the pom. Which version of camel are you using? And Did you use maven to run the test ? Willem m.s. wrote: > > When I try to run the CamelJmsToFil

Re: camel osgi tracing in spring dsl does not work - 2.0 SNAPSHOT

2009-03-04 Thread Willem Jiang
I think there could be some trouble to find the camel-spring's pre-defined bean in OSGI server. You may work around this issue by adding the TRACE interceptor yourself. Please just add this the below bean into your Spring configuration file. Willem cmoulliard wrote: > Yes when I set the log l

Re: Restlet Component File Upload Handling

2009-03-04 Thread William Tam
Hi Todd, Your usecase seems to justify use of camel-restlet. For example, user code will need to deal with RESTful URI and authentication if it is using camel-jetty. I'll create a Jira to support multipart message. Cheers, William On Tue, Mar 3, 2009 at 5:53 PM, tfredrich wrote: > > As usual,

java.lang.NoClassDefFoundError when running CamelJmsToFileExample

2009-03-04 Thread m.s.
When I try to run the CamelJmsToFileExample, I get the exception below. Can anyone help to figure out what went wrong? Cheers, M.S: 04.03.2009 16:40:02 org.apache.camel.impl.DefaultCamelContext INFO: JMX enabled. Using InstrumentationLifecycleStrategy. Exception in thread "main" java.lang.NoCla

Invoking web services with Camel Using CXF

2009-03-04 Thread Bruce Snyder
I'm creating a simple example of using Camel 1.6 with web services using the java_first_spring_support service that comes with CXF. I have a XML schema and a Java API of the same service. Both were created using the Maven archetypes and are being executed via the camel:run plugin and each is having

Re: camel-cxf & dataformat

2009-03-04 Thread William Tam
I just submitted a fix to trunk (Committed revision 750147). BTW, you could also define dataFormat in the endpoint URI (e.g. cxf:bean:reportIncident?dataFormat=PAYLOAD). https://issues.apache.org/activemq/browse/CAMEL-1421 On Wed, Mar 4, 2009 at 2:13 PM, William Tam wrote: > I think you hit a b

Is it possible to overload a bean method?

2009-03-04 Thread ee7arh
Hi, I have a bean defined which has 3 methods all with same name but with different arguements. I would like to route messages from a queue to this bean and depending on the object type I was hoping that the correct method would get called by overloading. Instead i get the error: org.apache.cam

Re: Error: This SpringBuilder is not being used with a SpringCamelContext and there is no applicationContext property configured

2009-03-04 Thread ee7arh
Too add a bit more information I found the code which throws this error in the camel source base: public ApplicationContext getApplicationContext() { +if (applicationContext == null) { +CamelContext camelContext = getContext(); +if (camelContext instanceof Spr

Re: camel-cxf & dataformat

2009-03-04 Thread William Tam
I think you hit a bug that CxfEndpointBean's bean property map not getting merged. I'll look into it. On Wed, Mar 4, 2009 at 10:57 AM, cmoulliard wrote: > > In fact, I think that I don't use the correct syntax. Here is the good one : > >     >                         address="http://localhost:80

Re: Camel type converter question

2009-03-04 Thread Sriram C
Hi Willem, Thanks for your reply. The issue in Kohsuke's blog is not the cause of my problem. Let me explain my wsdl in a little more detail. My top level element is defined as following:

Re: camel-cxf & dataformat

2009-03-04 Thread Joe Luo
Can you try not to use "#" notation but actual SEI class name instead to see if it works for you? http://localhost:8080/camel-exampl/incident"; wsdlURL="wsdl/report_incident.wsdl" serviceClass="org.apache.camel.example.reportincident.service.ReportIncidentEndpoint" endpointNam

Re: camel-cxf & AXIS2 on SMX4

2009-03-04 Thread Guillaume Nodet
Got an idea. It may happen that your bundle has been started before the CXF bundle was started. Could you try adding a Require-Bundle to the cxf bundle on your own bundle that fail ? On Wed, Mar 4, 2009 at 18:00, Guillaume Nodet wrote: > The JAX-WS spec should have picked up the CXF bundle as

Re: camel-cxf & AXIS2 on SMX4

2009-03-04 Thread Guillaume Nodet
The JAX-WS spec should have picked up the CXF bundle as a provider. Could you rerun your example after setting the following system property (in etc/system.properties for example) org.apache.servicemix.specs.debug=true This should give infos about the specs. Can you paste those log statements p

Re: camel-cxf & dataformat

2009-03-04 Thread cmoulliard
Yes, the SEI has been generated by the maven plugin : org.apache.cxf cxf-codegen-plugin ${cxf-version}

Re: camel-cxf & AXIS2 on SMX4

2009-03-04 Thread cmoulliard
Here is the list guillaume START LEVEL 100 ID State Spring Level Name [ 0] [Active ] [ ] [0] System Bundle (1.5.0.SNAPSHOT) [ 1] [Active ] [ ] [ 10] Apache Felix Prefrences Service (1.0.2) [ 2] [Active ] [ ] [ 10] geronimo-annotation_

camel-cxf on SMX4 : org.springframework.beans.factory.BeanCreationException

2009-03-04 Thread cmoulliard
Hi, With the following spring DSL : http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:camel="http://camel.apache.org/schema/spring"; xmlns:cxf="http://camel.apache.org/schema/cxfEndpoint"; xsi:schemaLocation

Re: camel-cxf & dataformat

2009-03-04 Thread Joe Luo
I guess you must have already defined the bean ref "reportIncidentEndpoint" somewhere in your spring configure file to point to a SEI (Service Endpoint Interface) class name. Then did you generate the SEI using CXF "wsdl2java" tool against your WSDL? > Unfortunately, this config generates t

Re: camel-cxf on SMX4 : HTTP error 200 in the log

2009-03-04 Thread cmoulliard
By the way, this is not the root cause of my issue. I continue to have the following answer : http://schemas.xmlsoap.org/soap/envelope/";> soap:Client Message part {http://reportincident.example.camel.apache.org}inputReportIncident was not recognized. (Does it exist

Re: camel-cxf on SMX4 : HTTP error 200 in the log

2009-03-04 Thread cmoulliard
Claus, In the spring schema, I see the following parameter when we would like to call a method I presume that correct syntax is the following : Regards Claus Ibsen-2

Re: camel-cxf & AXIS2 on SMX4

2009-03-04 Thread Guillaume Nodet
It's not really axis2, but the version of the jaxws-spec that we use uses axis2 as the default jax-ws provider, though if cxf bundle has been deployed, it should just use CXF instead. Can you run an osgi/list -l command and paste the output ? On Wed, Mar 4, 2009 at 17:22, cmoulliard wrote: > > H

camel-cxf & AXIS2 on SMX4

2009-03-04 Thread cmoulliard
Hi, Do we need reference to AXIS2 packages to run camel-cxf endpoint on SMX4 ? Why such a question : because I have the following error in my stack trace : Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.camel.example.reportincident.

Re: camel-cxf on SMX4 : HTTP error 200 in the log

2009-03-04 Thread Claus Ibsen
Hi Ah the OK response in Spring DSL needs to be the model object generated by the wsdl schema. So you need to return a response as a object where you instantiate this object with OK as status. can only be used for string constants, so you need to set the body to that object. And then cr

Re: camel-cxf & dataformat

2009-03-04 Thread cmoulliard
In fact, I think that I don't use the correct syntax. Here is the good one : http://localhost:8080/camel-example/incident"; wsdlURL="wsdl/report_incident.wsdl" serviceClass="#reportIncidentEndpoint" endpointName="s

Re: Camel's @Consume on a @Transactional method

2009-03-04 Thread Ryan Gardner
I didn't get a solution to using it the way I intended originally. I may revisit this later to try to get a simple test case to submit. I was using the annotations like: @Transactional(readOnly=false) @Consume("seda:someQueue") public Blarg doFoo(@Body Foo foo, @Header(name="foo") { ... } When

camel-cxf & dataformat

2009-03-04 Thread cmoulliard
Hi, In the documentation of the component camel-cxf, it is mentioned that we can define the dataformat. When I set this parameter in my spring DSL, I receive the following error : Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'dataFormat' is not allowed to appear in

camel-cxf on SMX4 : HTTP error 200 in the log

2009-03-04 Thread cmoulliard
Hi, I try to run an camel-cxf project on SMX4. I have been able to package it and deploy my project on SMX4. Unfortunately, when I call the following url from my browser, I receive an HTTP error 200 The log is not really verbose even in TRACE or DEBUG mode 16:34:58,178 | DEBUG | le/incident?wsd

Re: camel - cxf endpoint : no declaration can be found for element 'cxf:cxfEndpoint'.

2009-03-04 Thread cmoulliard
I have found the correct syntax by looking into the spring.schemas file (located in the META-INF directory of camel-cxf project http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:camel="http://camel.apache.org/schema/spring";

Re: camel - cxf endpoint : no declaration can be found for element 'cxf:cxfEndpoint'.

2009-03-04 Thread cmoulliard
Willem, I have the same error even if I use the following schemaLocation : http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:camel="http://camel.apache.org/schema/spring"; xmlns:cxf="http://camel.apache.org/schema/c

Re: camel osgi tracing in spring dsl does not work - 2.0 SNAPSHOT

2009-03-04 Thread cmoulliard
Yes when I set the log level in the server as "TRACE" but not when I start camel outside of an OSGI server. willem.jiang wrote: > > Does it work in a no osgi environment ? > > Willem > > On Wed, Mar 4, 2009 at 10:10 PM, cmoulliard wrote: > >> >> Hi, >> >> It seems that the tracing does not

Re: camel - cxf endpoint : no declaration can be found for element 'cxf:cxfEndpoint'.

2009-03-04 Thread cmoulliard
Hi willem, There is no schema in the folder you mention : http://camel.apache.org/schema/cxfEndpoint (check on the web site) ? willem.jiang wrote: > > Hi Charles, > > Can you to use http://camel.apache.org/schema/cxfEndpoint > http://camel.apache.org/schema/cxf/camel-cxf.xsd

Re: camel osgi tracing in spring dsl does not work - 2.0 SNAPSHOT

2009-03-04 Thread Willem Jiang
Does it work in a no osgi environment ? Willem On Wed, Mar 4, 2009 at 10:10 PM, cmoulliard wrote: > > Hi, > > It seems that the tracing does not work when activated like this in an > camel > osgi spring dsl route ? > >http://camel.apache.org/schema/osgi";> > > > org.apache.camel.example

Re: camel - cxf endpoint : no declaration can be found for element 'cxf:cxfEndpoint'.

2009-03-04 Thread Willem Jiang
Hi Charles, Can you to use http://camel.apache.org/schema/cxfEndpoint http://camel.apache.org/schema/cxf/camel-cxf.xsd? Willem On Wed, Mar 4, 2009 at 8:55 PM, cmoulliard wrote: > > Hi, > > The following config works well in a non

camel osgi tracing in spring dsl does not work - 2.0 SNAPSHOT

2009-03-04 Thread cmoulliard
Hi, It seems that the tracing does not work when activated like this in an camel osgi spring dsl route ? http://camel.apache.org/schema/osgi";> org.apache.camel.example.reportincident.routing

camel-cxf endpoint : thrown exception, unwinding now Message part

2009-03-04 Thread cmoulliard
Hi, When I call the camel-cxf endpoint, I receive the following error : INFO: Interceptor has thrown exception, unwinding now Message part {http://reportincident.example.camel.apache.org}inputReportIncident was not recognized. (Does it exist in service WSDL?) What is the meaning of "Does it ex

camel - cxf endpoint :

2009-03-04 Thread cmoulliard
Hi, The following config works well in a non-OSGI server http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:camel="http://camel.apache.org/schema/spring"; xmlns:cxf="http://camel.apache.org/schema/cxfEndpoint";

Re: camel-cxf endpoint - error : Failed to convert property value of type ...

2009-03-04 Thread cmoulliard
I have found the error. This is because the address of the cxf endpoint is defined like this : /incident and not like http://localhost:8080/camel-exemple/incident cmoulliard wrote: > > The issue is solved but > > I have the following error now : > > 2009-03-04 13:25:55,115 DEBUG DefaultLista

Re: camel-cxf endpoint - error : Failed to convert property value of type ...

2009-03-04 Thread cmoulliard
The issue is solved but I have the following error now : 2009-03-04 13:25:55,115 DEBUG DefaultListableBeanFactory - Returning cached instance of singleton bean 'org.apache.cxf.binding.soap.SoapTransportFactory' 04-mars-2009 13:25:55 org.apache.cxf.service.factory.ReflectionServiceFactoryBean i

Re: Camel's @Consume on a @Transactional method

2009-03-04 Thread James Strachan
Are you dependency injecting the bean using Spring? All Camel does is get spring to create the bean (along with whatever interceptors for transactions/security etc). 2009/2/26 Ryan Gardner : > > I'm able to use a processor with @Transactional methods called from the DSL > via beanRef("fooBean", "f

Re: Camel's @Consume on a @Transactional method

2009-03-04 Thread Claus Ibsen
Hi Ryan Did you get a solution to this or any news? On Thu, Feb 26, 2009 at 4:55 AM, Ryan Gardner wrote: > > I'm able to use a processor with @Transactional methods called from the DSL > via beanRef("fooBean", "fooTransactionalMethod") and things work just fine - > but trying to step a bit away

Re: Performance and MessageSupport.getBody (1.6.0)

2009-03-04 Thread Claus Ibsen
Hi Dan Thank you very much for reporting and doing the detective work of digging into the codebase and using a probe to detect the hot spot. I am about to commit a fix that avoids the excessive overhead of the NoTypeConverterException. In a simple test sending 1000 messages to a route, I get abo

Error: This SpringBuilder is not being used with a SpringCamelContext and there is no applicationContext property configured

2009-03-04 Thread ee7arh
Hi, Getting the following error when starting camel: "This SpringBuilder is not being used with a SpringCamelContext and there is no applicationContext property configured" I am starting Camel from Spring by calling the camel Main class and passing in a reference to my Spring XML file. Within

Re: Performance and MessageSupport.getBody (1.6.0)

2009-03-04 Thread Claus Ibsen
Hi I am looking into this now. Its an issue introduced by the StreamCache eg: No type converter available to convert from type: java.lang.Integer to the required type: org.apache.camel.StreamCache with value 1 Will create a ticket and get onto it On Tue, Mar 3, 2009 at 6:04 PM, Claus Ibsen wrot