У меня есть система, которая имеет два приложения:
- Интеграционное приложение (Camel и Spring-ws)
- Базовое приложение (Spring & hibernate)
Я инициирую запрос веб-службы от J-Meter, имеющего 10 параллельных потоков, который попадает в мое «приложение интеграции» и использует верблюжьи маршруты, который перенаправляет в мое «основное приложение».
Мой маршрут при интеграции:
<camel:routeContext id="customIntegrationASRouteContext" >
<camel:route id="ACreateClient">
<camel:from
uri="spring-ws:rootqname:{http://schema.applicationservices.ws.pro.arri.com}createApplicationRequest?endpointMapping=#endpointMapping&messageFactory=#saajSoapMessageFactory" />
<camel:unmarshal>
<camel:jaxb contextPath="com.arri.pro.ws.applicationservices.schema"
partClass="com.arri.pro.ws.applicationservices.schema.CreateApplicationRequest" />
</camel:unmarshal>
<camel:to
uri="spring-ws:http://Server-IP:8080/core-application-webapp/ws/AServiceCAS?webServiceTemplate=#webServiceTemplate&messageFactory=#saajSoapMessageFactory"/>
</camel:route>
</camel:routeContext>
Когда я вижу журнал доступа моего основного приложения, я нахожу ниже:
10.1.60.160 - - [06/Dec/2018:18:51:55 +0530] 8009 8009867 "POST /core-application-webapp/ws/AServiceCAS HTTP/1.1" 200 ROUTEID=.CAS_161; casjsessionid=85uFB_su35-0z2Dxu0PiO-SlrJyvyNByNjCMJyNe2hNDU3C2s6Rb!-614071377; lmsjsessionid=BbyFB82-AkVNLt73DhPcMDLrfoq4W471cQygCverx3ZwZuCCqWPc!1516261276 1116 ROUTEID CAS_161 CAS_161 -
10.1.60.160 - - [06/Dec/2018:18:51:55 +0530] 8625 8625440 "POST /core-application-webapp/ws/AServiceCAS HTTP/1.1" 200 ROUTEID=.CAS_161; casjsessionid=85uFB_su35-0z2Dxu0PiO-SlrJyvyNByNjCMJyNe2hNDU3C2s6Rb!-614071377; lmsjsessionid=BbyFB82-AkVNLt73DhPcMDLrfoq4W471cQygCverx3ZwZuCCqWPc!1516261276 1062 ROUTEID CAS_161 CAS_161 -
10.1.60.160 - - [06/Dec/2018:18:51:58 +0530] 6113 6113112 "POST /core-application-webapp/ws/AServiceCAS HTTP/1.1" 200 ROUTEID=.CAS_161; casjsessionid=85uFB_su35-0z2Dxu0PiO-SlrJyvyNByNjCMJyNe2hNDU3C2s6Rb!-614071377; lmsjsessionid=BbyFB82-AkVNLt73DhPcMDLrfoq4W471cQygCverx3ZwZuCCqWPc!1516261276 915 ROUTEID CAS_161 CAS_161 -
10.1.60.160 - - [06/Dec/2018:18:51:55 +0530] 9517 9517722 "POST /core-application-webapp/ws/AServiceCAS HTTP/1.1" 200 ROUTEID=.CAS_161; casjsessionid=85uFB_su35-0z2Dxu0PiO-SlrJyvyNByNjCMJyNe2hNDU3C2s6Rb!-614071377; lmsjsessionid=BbyFB82-AkVNLt73DhPcMDLrfoq4W471cQygCverx3ZwZuCCqWPc!1516261276 1126 ROUTEID CAS_161 CAS_161 -
10.1.60.160 - - [06/Dec/2018:18:51:58 +0530] 8144 8144110 "POST /core-application-webapp/ws/AServiceCAS HTTP/1.1" 200 ROUTEID=.CAS_161; casjsessionid=85uFB_su35-0z2Dxu0PiO-SlrJyvyNByNjCMJyNe2hNDU3C2s6Rb!-614071377; lmsjsessionid=BbyFB82-AkVNLt73DhPcMDLrfoq4W471cQygCverx3ZwZuCCqWPc!1516261276 1110 ROUTEID CAS_161 CAS_161 -
10.1.60.160 - - [06/Dec/2018:18:52:00 +0530] 8890 8890525 "POST /core-application-webapp/ws/AServiceCAS HTTP/1.1" 200 ROUTEID=.CAS_161; casjsessionid=85uFB_su35-0z2Dxu0PiO-SlrJyvyNByNjCMJyNe2hNDU3C2s6Rb!-614071377; lmsjsessionid=BbyFB82-AkVNLt73DhPcMDLrfoq4W471cQygCverx3ZwZuCCqWPc!1516261276 1114 ROUTEID CAS_161 CAS_161 -
10.1.60.160 - - [06/Dec/2018:18:52:03 +0530] 8732 8732932 "POST /core-application-webapp/ws/AServiceCAS HTTP/1.1" 200 ROUTEID=.CAS_161; casjsessionid=85uFB_su35-0z2Dxu0PiO-SlrJyvyNByNjCMJyNe2hNDU3C2s6Rb!-614071377; lmsjsessionid=BbyFB82-AkVNLt73DhPcMDLrfoq4W471cQygCverx3ZwZuCCqWPc!1516261276 1115 ROUTEID CAS_161 CAS_161 -
10.1.60.160 - - [06/Dec/2018:18:52:03 +0530] 8944 8944747 "POST /core-application-webapp/ws/AServiceCAS HTTP/1.1" 200 ROUTEID=.CAS_161; casjsessionid=85uFB_su35-0z2Dxu0PiO-SlrJyvyNByNjCMJyNe2hNDU3C2s6Rb!-614071377; lmsjsessionid=BbyFB82-AkVNLt73DhPcMDLrfoq4W471cQygCverx3ZwZuCCqWPc!1516261276 1058 ROUTEID CAS_161 CAS_161 -
10.1.60.160 - - [06/Dec/2018:18:52:02 +0530] 12417 12417431 "POST /core-application-webapp/ws/AServiceCAS HTTP/1.1" 200 ROUTEID=.CAS_161; casjsessionid=85uFB_su35-0z2Dxu0PiO-SlrJyvyNByNjCMJyNe2hNDU3C2s6Rb!-614071377; lmsjsessionid=BbyFB82-AkVNLt73DhPcMDLrfoq4W471cQygCverx3ZwZuCCqWPc!1516261276 1112 ROUTEID CAS_161 CAS_161 -
10.1.60.160 - - [06/Dec/2018:18:52:04 +0530] 11983 11983458 "POST /core-application-webapp/ws/AServiceCAS HTTP/1.1" 200 ROUTEID=.CAS_161; casjsessionid=85uFB_su35-0z2Dxu0PiO-SlrJyvyNByNjCMJyNe2hNDU3C2s6Rb!-614071377; lmsjsessionid=BbyFB82-AkVNLt73DhPcMDLrfoq4W471cQygCverx3ZwZuCCqWPc!1516261276 1114 ROUTEID CAS_161 CAS_161 -
10.1.60.160 - - [06/Dec/2018:18:52:14 +0530] 5877 5877943 "POST /core-application-webapp/ws/AServiceCAS HTTP/1.1" 200 ROUTEID=.CAS_161; casjsessionid=85uFB_su35-0z2Dxu0PiO-SlrJyvyNByNjCMJyNe2hNDU3C2s6Rb!-614071377; lmsjsessionid=BbyFB82-AkVNLt73DhPcMDLrfoq4W471cQygCverx3ZwZuCCqWPc!1516261276 913 ROUTEID CAS_161 CAS_161 -
10.1.60.160 - - [06/Dec/2018:18:52:12 +0530] 8811 8811055 "POST /core-application-webapp/ws/AServiceCAS HTTP/1.1" 200 ROUTEID=.CAS_161; casjsessionid=85uFB_su35-0z2Dxu0PiO-SlrJyvyNByNjCMJyNe2hNDU3C2s6Rb!-614071377; lmsjsessionid=BbyFB82-AkVNLt73DhPcMDLrfoq4W471cQygCverx3ZwZuCCqWPc!1516261276 1122 ROUTEID CAS_161 CAS_161 -
Проблема в том, что каждый запрос имеет одинаковые куки из-закоторый в кластере мое интеграционное приложение начинает отправлять всем запросам на конкретный сервер.