여러 Liberty 서버 간에 JMS 메시징을 사용하도록 클라이언트 구성
여러 서버에서 JMS 메시징을 사용하려면 다른 Liberty 서버에서 wasJmsClient-2.0 기능을 구성해야 합니다.
프로시저
- 클라이언트에서 JMS 클라이언트 기능을 사용하도록 설정하십시오. JNDI 검색을 수행하려면, jndi-1.0 기능도 추가해야 합니다.
<featureManager> <feature>wasJmsClient-2.0</feature> <feature>jndi-1.0</feature> </featureManager>
- 필요한 JMS 자원을 구성하십시오.
<jmsQueueConnectionFactory jndiName="myQCF" connectionManagerRef="ConMgr4"> <properties.wasJms remoteServerAddress="meserver.ibm.com:7276:BootstrapBasicMessaging" /> </jmsQueueConnectionFactory> <connectionManager id="ConMgr4" maxPoolSize="2"/> <jmsQueue jndiName="myQ"> <properties.wasJms queueName="libertyQ" /> </jmsQueue>
참고: JMS 애플리케이션이 원격 메시징 엔진과의 원격 TCP/IP 연결을 수행하도록 하려면 연결 팩토리의 <remoteServerAddress> 특성을 구성하십시오. <remoteServerAddress> 특성은 연결해야 하는 서버(메시징 엔진이 있는)를 참조합니다. 특성 선언은 다음과 같아야 합니다.
여기서 hostname은 메시징 엔진이 실행 중인 호스트의 이름이고, port는 서버 측에서 구성된 JMS 인바운드 포트이며, mode는 BootstrapBasicMessaging(SSL이 사용되지 않는 경우) 및 BootStrapSecureMessaging(SSL이 사용되는 경우)입니다.remoteServerAddress="hostname:port:mode"
<remoteServerAddress>가 지정되지 않은 경우, JMS 애플리케이션은 기본적으로 동일한 Liberty 서버에서 로컬 메시징 엔진에 연결하려고 합니다.
- 옵션: 추가 특성을 구성하십시오.
- 메시징 엔진에 원격으로 연결하도록 클라이언트를 구성한 경우, 애플리케이션이 메시징 엔진에 연결하는 데 사용할 수 있는
사용자 정의 채널을 작성할 수 있습니다. 두 개의 기본 채널은 BootstrapBasicMessaging 및
BootStrapSecureMessaging입니다.
이러한 두 개의 채널 정의를 대체하고 사용자 정의 채널을 사용하려는 경우, 다음과 같이
<wasJmsOutbound> 요소를 사용하십시오.
<featureManager> <feature>wasJmsClient-2.0</feature> <feature>jndi-1.0</feature> </featureManager> <wasJmsOutbound id=”CustomChain”/> <jmsQueueConnectionFactory jndiName="myQCF" connectionManagerRef="ConMgr4"> <properties.wasJms remoteServerAddress="meserver.ibm.com:7276: CustomChain" /> </jmsQueueConnectionFactory> <connectionManager id="ConMgr4" maxPoolSize="2"/>
- 애플리케이션이
myQCF 연결 팩토리를 사용할 때, 애플리케이션은
BootStrapBasicMessaging을 사용하는 대신 원격 메시징 엔진에 연결하기 위해
CustomChain을 사용합니다.
마찬가지로, 보안 채널을 사용하려면 다음 예제에 제공된 대로 <wasJmsOutbound> 요소에서 <useSSL> 옵션을
사용할 수 있습니다.
<featureManager> <feature>wasJmsClient-2.0</feature> <feature>jndi-1.0</feature> </featureManager> <wasJmsOutbound id=”CustomChainSecured” useSSL=”true”/> <jmsQueueConnectionFactory jndiName="myQCF" connectionManagerRef="ConMgr4"> <properties.wasJms remoteServerAddress="meserver.ibm.com:7276: CustomChainSecured" /> </jmsQueueConnectionFactory> <connectionManager id="ConMgr4" maxPoolSize="2"/>
- 메시징 엔진에 원격으로 연결하도록 클라이언트를 구성한 경우, 애플리케이션이 메시징 엔진에 연결하는 데 사용할 수 있는
사용자 정의 채널을 작성할 수 있습니다. 두 개의 기본 채널은 BootstrapBasicMessaging 및
BootStrapSecureMessaging입니다.
이러한 두 개의 채널 정의를 대체하고 사용자 정의 채널을 사용하려는 경우, 다음과 같이
<wasJmsOutbound> 요소를 사용하십시오.
상위 주제: 두 Liberty 서버 사이에 JMS 메시징 사용


http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=twlp_msg_multi_client
파일 이름: twlp_msg_multi_client.html