problem with vm component.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

problem with vm component.

Steve Pan
Hi.
  I am having some issue with VM component, I am trying to migrate an old Camel 2.8 project.
Right now I am running on Camel 2.21.5, Spring 4.3.20 and JDK 11 on Tomcat 9.

I have jar A and jar B in a war file.
And Jar A and Jar B have different CamelContext.

In Jar A
I have a proxy definition in the spring XML as follow

                                <camel:proxy id="customersAdminProxy"
                                                serviceInterface="xxx.CustomersAdminService"
                                                serviceUrl="vm:customerAdminService" />

and this customersAdminProxy bean is being used on few places within the jar.



In Jar B
I have a RouteBuilder class with following route

from("vm:customerAdminService")
.to("bean:customersAdmin");

customersAdmin has an implementation of interface xxx.CustomersAdminService


I am facing some weird issue. Some route in Jar A calling this customersAdminProxy bean seems to work, the customersAdmin bean in Jar B is being executed, but some other route calling the customersAdminProxy bean in Jar A it throws a timeout and I donĀ“t see any execute from the customersAdmin bean in Jar B, feels like the VM: from() route  in Jar B not responding or gone.
Any tips how to troubleshoot this?


Best regards
Steve Pan