8.2. Microsoft Azure で動作するようにメッセージングサブシステムを設定する
クラウドプラットフォームでメッセージングを使用する場合は、クライアントが使用する接続ファクトリーには、サーバーのパブリック IP アドレスを指すコネクターが必要です。
そのため、full プロファイルを実行している JBoss EAP サーバーに対して新しいコネクターとソケットバインディングを作成する必要があります。
前提条件
-
JBoss EAP が
fullプロファイルを実行している。
手順
参照される
http-publicソケットバインディングをsocket-binding-group内に作成します。/socket-binding-group=standard-sockets/remote-destination-outbound-socket-binding=http-public:add(host=<PUBLIC_IP_ADDRESS>,port=${jboss.http.port:8080})messagingサブシステムに新しいhttp-connector要素を作成します。/subsystem=messaging-activemq/server=default/http-connector=http-public-connector:add(endpoint=http-acceptor,socket-binding=http-public)connection-factoryにconnectorsを設定します。これは、クライアントによって使用されます。たとえば、デフォルトの接続としてのRemoteConnectionFactoryの設定は以下のようになります。/subsystem=messaging-activemq/server=default/connection-factory=RemoteConnectionFactory:write-attribute(name=connectors, value=["http-public-connector"]