2014-09-17 1 views
0

두 개의 프록시를 ESB에 구성하고 두 개의 프록시를 하나의 인스턴스 조정자에 연결합니다. 프록시 구성에서 중재자에 대해 다른 속성 집합이 있습니다. 두 개의 조정자 인스턴스가 서로 다른 속성을 가진 ESB에서 실행되고 있다고 예상합니다. 사실, 중재자 인스턴스는 ESB에만있는 것처럼 보입니다.wso2 esb 중재자가 싱글 톤

이것에 대한 아이디어가 있으십니까?

+0

문제에 대한 추가 정보를 제공하려면 프록시 서비스 구성을 게시하십시오. 또한 : 어떤 중재자를 사용하고 있습니까? ESB와 함께 배송되는 제품 중 하나입니까 아니면 맞춤형 제품입니까? – Kallja

답변

0

여기를 실수로 보냈습니다. Java 코드에서 Spring Bean은 XML 파일에 구성된 Mediator 속성을 포함하기 위해 사용됩니다. 하지만 스프링 빈은 싱글 톤이며 원인이 다른 구성은 다른 프록시에 적용 할 수 없습니다.

<?xml version="1.0" encoding="UTF-8"?> 
<proxy xmlns="http://ws.apache.org/ns/synapse" 
     name="abc" 
     transports="http" 
     startOnLoad="true" 
     trace="enable" 
     statistics="enable"> 
    <description/> 
    <target> 
     <inSequence> 
     <log level="full"/> 
     <property name="address" 
       scope="transport" 
        expression="fn:substring-after(get-property('To'),'/services/crownperth')"/> 
     <class name="com.abc.customerintegration.mediator.CustomerInfoMediator"> 
      <property name="pmServerAddress" value="http://192.168.112.243:3509/MobileConnectService"></property> 
      <property name="property" value="P"/> 
      <property name="languageCode" value="en-US"></property> 
     </class> 
     </inSequence> 
     <outSequence> 
     <send/> 
     </outSequence> 
    </target> 
</proxy> 


<?xml version="1.0" encoding="UTF-8"?> 
<proxy xmlns="http://ws.apache.org/ns/synapse" 
     name="def" 
     transports="http" 
     startOnLoad="true" 
     trace="enable" 
     statistics="enable"> 
    <description/> 
    <target> 
     <inSequence> 
     <log level="full"/> 
     <property name="address" 
       scope="transport" 
        expression="fn:substring-after(get-property('To'),'/services/crownperth')"/> 
     <class name="com.abc.customerintegration.mediator.CustomerInfoMediator"> 
      <property name="pmServerAddress" value="http://192.168.112.243:3509/MobileConnectService"></property> 
      <property name="property" value="P"/> 
      <property name="languageCode" value="en-US"></property> 
     </class> 
     </inSequence> 
     <outSequence> 
     <send/> 
     </outSequence> 
    </target> 
</proxy>