On Feb 15, 2008 8:48 AM, <[EMAIL PROTECTED]> wrote:
>
>
> Hi Bruce,
>
> My apology for the previous mail. The code I sent you in the previous
> mail was not in the running state.
>
> The steps I have performed while working with Geronimo are:
> 1. Downloaded the Apache_ServiceMix_Web_Application-3.2.1.war file from
> the URL given below:
> http://servicemix.apache.org/download.html
>
> 2. Deployed the shared library and all required servicemix components
> using Servicemix Web Application.
>
> 3. Deployed my servicemix service-assembly. It started properly. And my
> running service is displayed on the below url:
> http://localhost:8080/Servicemix-web/jbi
>
> 4. What I observed is when I make a call to my http consumer component I
> am not getting any response on the browser which ideally should be
> displayed as I am using a In-Out MEP.
>
> I am sending the code for my MessageExchangeListener.
> Please look into this and help me.
>
> package org.apache.servicemix.jbi;
>
> import java.util.Stack;
> import java.util.StringTokenizer;
>
> import javax.jbi.messaging.DeliveryChannel;
> import javax.jbi.messaging.ExchangeStatus;
> import javax.jbi.messaging.MessageExchange;
> import javax.jbi.messaging.MessagingException;
> import javax.jbi.messaging.NormalizedMessage;
> import javax.jbi.messaging.MessageExchange.Role;
>
> import org.apache.log4j.Logger;
> import org.apache.servicemix.MessageExchangeListener;
> import org.apache.servicemix.jbi.jaxp.StringSource;
>
> public class MyBean implements MessageExchangeListener {
> private static final Logger logger =
> Logger.getLogger(MyBean.class);
>
>
> private DeliveryChannel channel;
>
> public void onMessageExchange(MessageExchange exchange)
> throws MessagingException {
I'd recommend printing out the exchange right here. If it gets here,
then chances are the following condition is what is freezing
processing.
> if (exchange == null) {
> return;
> }
By returning nothing, this could make it appear as though everything stopped.
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/