在服务器完成启动之前启动应用程序

Launch application before server completes startup

我在服务器上有 2 个应用程序:"Websphere Commerce" 和 "myapp"。当 Myapp 初始化时,它需要使用 SOAP 从 WC 接收一些数据,但是,在两个应用程序启动之前,公共 http 端口 9060 不会侦听。

有一个标志:

Enterprise Applications > * > Startup behavior
Startup order
Launch application before server completes startup

这两个应用程序都已清除。我还以为WAS会先报:

TCP Channel TCP_2 is listening on host *  (IPv6) port 9060.
Server server1 open for e-business

然后启动应用程序,但它首先启动它们,然后打开端口。

那这个flag有什么作用呢?

查看此页面Startup behavior settings

Launch application before server completes startup

Specifies whether the application must initialize fully before the server starts. The default setting of false indicates that server startup will not complete until the application starts.

A setting of true informs the product that the application might start on a background thread and thus server startup might continue without waiting for the application to start. Thus, the application might not be ready for use when the application server starts.

相反,服务器首先确保应用程序已启动,然后打开端口以允许流量进入它们。