Figure 13 shows the CustomService configuration Settings for this example.
图13显示了这个示例的CustomService配置设置。
Your CustomService code effectively becomes an extension of the server run time.
CustomService代码实际上成为服务器运行时的扩展。
Lines 12 through 21: implement the two methods defined by the CustomService interface.
第12至21行:实现CustomService接口定义的两个方法。
The next section illustrates an example of using a CustomService to activate the Extension MBean.
下一节将说明使用CustomService来激活扩展MBean的示例。
You can also use a WebSphere CustomService to extend the server run time itself with a piece of code that activates the MBean.
您还可以使用WebSphereCustomService和一段激活MBean的代码来扩展服务器运行时本身。
Classname (required) - Provides the fully-qualified package name and class name for the class that implements the CustomService interface.
Classname(必需)-提供实现CustomService接口的类的全限定包名和类名。
To develop a CustomService, you need to create a class that implements the com.ibm.websphere.runtime.CustomService interface. This interface has two methods.
为了开发CustomService,您需要创建实现com . ibm . websphere . runtime. CustomService接口的类。
The logic in a CustomService is executed during server startup and can activate an MBean without requiring some external application client to make a request to the server.
在启动服务器时CustomService中的逻辑被执行并且可以激活MBean而无需某个外部的应用程序客户机向服务器发出请求。
If the class that implements the CustomService interface also claims to implement the JMXManageable interface, then much of the loading and activating of your MBean will be automatic.
如果实现CustomService接口的类还声明实现JMXManageable接口,那么MBean的装入和激活在很大程度上将是自动的。
If the class that implements the CustomService interface also claims to implement the JMXManageable interface, then much of the loading and activating of your MBean will be automatic.
如果实现CustomService接口的类还声明实现JMXManageable接口,那么MBean的装入和激活在很大程度上将是自动的。
应用推荐