Hello,

         Iam facing the problem while doing a sendsync. A messaging
exception(InterruptedException) is thrown with the following stacktrace

javax.jbi.messaging.MessagingException: java.lang.InterruptedException
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:508)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:442)
        at
org.apache.servicemix.common.EndpointDeliveryChannel.sendSync(EndpointDeliveryChannel.java:95)
        at test.JbiMsgSender.dosendsync(JbiMsgSender.java:82)
        at 
Caused by: java.lang.InterruptedException
        at java.lang.Object.wait(Native Method)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.waitForExchange(DeliveryChannelImpl.java:709)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.sendSync(DeliveryChannelImpl.java:472)
        ... 10 more

where JbiMsgSender is my test class.

Just to give background, I have a component which contains 2 provider
endpoints. Lets Name it 

ActualProviderEndpoint
TestingProviderEndpoint

Now Actualprovider endpoint is making sendsync call to the other component
in the JBI environment for consuming some service. Now for the testing
purpose of ActualProviderEndpoint, i have created the
TestingProviderEndpoint in the same component . In the spring.xml i  have
configured the targetservice to be TestingProviderEndpoint for
ActualProviderEndpoint. I have created inout exchange and doing a sendSync.
Now the exception is thrown @ waitForExchange  method in
DeliveryChannelImpl.java:709.

In actual JBI environment same code works, but only in the testing
environement this exception is thrown.

Any clue to resolve this error? If there is better way to test the provider
endpoint consuming a service via spring framework plzz let me know

Thanks in advance
Param

-- 
View this message in context: 
http://www.nabble.com/Problem-With-SendSync---InterruptedException%28Test-environment%29-tp22657797p22657797.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to