Hello again, is there anybody who can explain me how to forward a message in a bean listener component. I have tested a lot of possibilities but nothing works correctly. As i wrote in the last post, i'd like to do special error handling with the onMessageExchange method. i biuld a bean project an placed it between my to components.
I get the message (InOnly) from my file component, but i find no way to send it to my pipeline with my bean. The bean should forward the message if the exchang status equals active, and should handle en error if the exchange status equals error. My problem is how to set the targetservice in the bean. I tested using the setEndpoint and setService methods, build a ServicemixClient in my bean, but it didn't run. Then i read that i have to set the exchange status to done if i work with an inonly messages, but i got only nullpointer exceptions, and i don't know whats going wrong. Is there anyone who could explain me how to build such an error handler, do i need a build in ServicemixClient, or how to set a targetservice in a listener bean to receive the message to a target. Thank you for your help, Regards Stefan -- View this message in context: http://www.nabble.com/Exchange-Status-to-handle-Errors-tp21328296p21549665.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
