Hi Bruce,

Thanks for your reply.
I tried adding targetEndpoint as you have mentioned. But it didn't work.
In my sample program bean component is getting called and the message is
coming perfectly in my bean. But I am not able to send back the response
that I set in my bean. I am setting the message in exchange object with
"out" key.

My observation is: sendOut() of my HttpMarshaler class is not getting
called.

Please help me if I am missing any steps or going in wrong direction.

Thanks...

Regards
Puneet




-----Original Message-----
From: Bruce Snyder [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 14, 2008 2:14 AM
To: [email protected]
Subject: Re: Urgent help required for the problem while running
servicemix sample with jboss and geronimo

On Feb 13, 2008 6:57 AM,  <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Hi,
>
>
>
> I am facing problem while running a sample code of servicemix in
> jboss/Geronimo.
>
> The sample is running fine with  servicemix stand alone but not
working when
> deployed on  jboss/Geronimo.
>
> What I have observed is that the http consumer is not getting the
response
> data.
>
>
>
> sendOut() method of MyMarshler is not getting called of my marshler
bean
> class.
>
>
>
> The response is not getting displayed on the Internet browser. The
same
> thing runs fine as standalone application.
>
> The other details are given below:
>
>
>
> Environment:
>
> ========
>
> Jboss 4.2.2.GA
>
> servicemix3.2.1
>
> Java 1.5
>
> OS Linux
>
>
>
> Steps Performed:
>
> ===========
>
> 1. xbean configuration for http-consumer service unit is:
>
>             <?xml version="1.0" encoding="UTF-8"?>
>
>
>
>             <beans xmlns:http="http://servicemix.apache.org/http/1.0";
>
>                    xmlns:ex="http://www.servicemix.org/example";>
>
>
>
>               <http:consumer service="ex:httplistener"
>
>                                      endpoint="ex:listenerEndpoint"
>
>
> locationURI="http://0.0.0.0:8192/upload/";
>
>
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
>
>
> targetService="ex:lineReverse"
>
>                                      marshaler="#marshaler" />
>
>
>
>               <bean id="marshaler"
> class="org.apache.servicemix.jbi.MyMarshaler" />
>
>
>
>             </beans>
>
>
>
>
>
> 2. xbean configuration for bean service unit.
>
>
>
>             <beans xmlns:bean="http://servicemix.apache.org/bean/1.0";
>
>                    xmlns:ex="http://www.servicemix.org/example";>
>
>
>
>               <bean:endpoint service="ex:lineReverse"
> endpoint="lineReverseEndpoint" bean="#lineReverseBean" />
>
>               <bean id="lineReverseBean"
> class="org.apache.servicemix.jbi.MyBean" />
>
>
>
>             </beans>

Well I see in the http:consumer configuration above that you have only
specified a targetService and no targetEndpoint or targetInterface.
Try adding a targetEndpoint="lineReverseEndpoint" attribute to see if
that helps.

Bruce
--
perl -e 'print
unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com

Reply via email to