I tried to use the HttpConnector component like: 

            <sm:activationSpec componentName="rssGenerator"
service="foo:rssGenerator">
                <sm:component>
                    <bean class="com.xxx.components.RssGenerator">
                    </bean>
                </sm:component>
            </sm:activationSpec>

            <sm:activationSpec componentName="httpReceiver"
service="foo:httpBinding" destinationService="foo:rssGenerator">
                <sm:component>
                    <bean
class="org.apache.servicemix.components.http.HttpConnector">
                        <property name="host" value="localhost"/>
                        <property name="port" value="8912"/>
                    </bean>
                </sm:component>
            </sm:activationSpec>

where com.xxx.components.RssGenerator is: 

public class RssGenerator extends OutBinding {

    protected void process(MessageExchange exchange, NormalizedMessage
message) throws Exception {
        System.out.println("RssGenerator is working...");
        done(exchange);
    }
}

I got the following error: 

javax.jbi.messaging.MessagingException: illegal exchange status: done
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.handleSend(Me
ssageExchangeImpl.java:583)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.doSend(Delive
ryChannelImpl.java:364)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.send(Delivery
ChannelImpl.java:411)
        at
org.apache.servicemix.components.util.PojoSupport.done(PojoSupport.ja
va:224)

Any ideas?

Regards,

Viktar

P.S.
I put jetty-6.0.0rc4.jar  jetty-management-6.0.0rc4.jar
jetty-util-6.0.0rc4.jar into lib directory to have the HttpConnector working
-- 
View this message in context: 
http://www.nabble.com/How-to-handle-a-simple-get-request-tf2466134.html#a6877150
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to