355.8. {wildfly}의 Undertow 사용자
{wildfly}에서 소개된 소비자 구성은 독립 실행형 Camel과 다릅니다. 생산자 끝점은 정상적으로 작동합니다.
{wildfly}에서 camel-undertow 소비자는 컨테이너에서 제공하는 기본 Undertow HTTP 서버를 활용합니다. 서버는 undertow 하위 시스템 구성 내에 정의됩니다. 다음은 standalone.xml의 기본 구성의 발췌 내용입니다.
<subsystem xmlns="urn:jboss:domain:undertow:4.0">
<buffer-cache name="default" />
<server name="default-server">
<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true" />
<https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true" />
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content" />
<filter-ref name="server-header" />
<filter-ref name="x-powered-by-header" />
<http-invoker security-realm="ApplicationRealm" />
</host>
</server>
</subsystem>
이 인스턴스에서 Undertow는 http 및 https socket-binding에서 지정된 인터페이스 / 포트에서 수신 대기하도록 구성됩니다. 기본적으로 이는 https의 경우 http 및 8443의 포트 8080입니다.
여기에는 다음과 같은 의미가 있습니다.
- Camel-undertow 소비자는 localhost:8080 또는 localhost:8443에만 바인딩됩니다.
- 일부 끝점 소비자 구성 옵션은 적용되지 않습니다(아래 참조) {wildfly} 컨테이너에 의해 관리되기 때문에 (아래 참조)
예를 들어 다른 호스트 또는 포트 조합을 사용하여 끝점 소비자를 구성하면 서버 로그 파일에 경고가 표시됩니다. 예를 들어 다음 호스트 및 포트 구성은 무시됩니다.
from("undertow:http://somehost:1234/path/to/resource")
[org.wildfly.extension.camel] (pool-2-thread-1) Ignoring configured host: http://somehost:1234/path/to/resource
그러나 소비자는 여전히 기본 호스트 localhost:8080 또는 localhost:8443에서 사용할 수 있습니다.
355.8.1. 대체 포트 구성 링크 복사링크가 클립보드에 복사되었습니다!
대체 포트를 수락하려면 {wildfly} 하위 시스템 구성을 통해 대체 포트를 구성해야 합니다. 이 내용은 서버 문서에 설명되어 있습니다.