You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by smx_ <vl...@mzeal.com> on 2007/07/20 22:57:44 UTC

test problem in hello-world-smx

Hi,
I see different result from running
org.apache.servicemix.samples.helloworld.se.MySpringComponentTest
The result I should expect:
org.apache.servicemix.samples.helloworld.se.MySpringComponentTest
<hello>Hello World! Message [<hello>Ski Colorado!</hello>] contains [28]
bytes</hello>.

The result I have:
Running org.apache.servicemix.samples.helloworld.se.MySpringComponentTest
<hello>Ski Colorado!</hello>

Looks like everything gets built but MyEndPoint::processInOut() is never
called...
Any ideas why?
Thanks,



-- 
View this message in context: http://www.nabble.com/test-problem-in-hello-world-smx-tf4119555s12049.html#a11715940
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: test problem in hello-world-smx

Posted by smx_ <vl...@mzeal.com>.
Have you changed the superclass from Endpoint to ProviderEndpoint?
Yes, I did. 
It worked as described in the BC example, where template generated
MyProviderEndpoint.java
Thank you,




Gert Vanthienen wrote:
> 
> L.S.,
> 
> Have you changed the superclass from Endpoint to ProviderEndpoint?  If 
> not, the process() method provided by the archetype does exactly what 
> you describe here: echo the input message in your process() method, 
> without even calling your processInOut() method.
> 
> Gert
> 
> smx_ wrote:
>> Hi,
>> I see different result from running
>> org.apache.servicemix.samples.helloworld.se.MySpringComponentTest
>> The result I should expect:
>> org.apache.servicemix.samples.helloworld.se.MySpringComponentTest
>> <hello>Hello World! Message [<hello>Ski Colorado!</hello>] contains [28]
>> bytes</hello>.
>>
>> The result I have:
>> Running org.apache.servicemix.samples.helloworld.se.MySpringComponentTest
>> <hello>Ski Colorado!</hello>
>>
>> Looks like everything gets built but MyEndPoint::processInOut() is never
>> called...
>> Any ideas why?
>> Thanks,
>>
>>
>>
>>   
> 
> 

-- 
View this message in context: http://www.nabble.com/test-problem-in-hello-world-smx-tf4119555s12049.html#a11762037
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: test problem in hello-world-smx

Posted by Gert Vanthienen <ge...@skynet.be>.
L.S.,

Have you changed the superclass from Endpoint to ProviderEndpoint?  If 
not, the process() method provided by the archetype does exactly what 
you describe here: echo the input message in your process() method, 
without even calling your processInOut() method.

Gert

smx_ wrote:
> Hi,
> I see different result from running
> org.apache.servicemix.samples.helloworld.se.MySpringComponentTest
> The result I should expect:
> org.apache.servicemix.samples.helloworld.se.MySpringComponentTest
> <hello>Hello World! Message [<hello>Ski Colorado!</hello>] contains [28]
> bytes</hello>.
>
> The result I have:
> Running org.apache.servicemix.samples.helloworld.se.MySpringComponentTest
> <hello>Ski Colorado!</hello>
>
> Looks like everything gets built but MyEndPoint::processInOut() is never
> called...
> Any ideas why?
> Thanks,
>
>
>
>