JAX-RPC 處理程式會與它們傳入及傳出服務整合匯流排的訊息互動,因此,您將處理程式類別,提供給您想要監視之服務的入埠或出埠連接埠所在的伺服器或叢集。
About this task
Before you can configure your JAX-RPC handler for use with service integration
bus-deployed web services, you must make the handler class available. 如果您想要監視入埠連接埠,請將處理程式類別提供給這個埠的端點接聽器所在的伺服器。
如果您想要監視出埠連接埠,請將處理程式類別提供給出埠連接埠目的地本地化所在的伺服器。
To make
the handler class available to the server or
cluster that hosts the port that you want to monitor, you create a shared
library for the class then add the shared library to the class loader for
the server.
Procedure
- Package the class file for your handler as a JAR file, then copy
the JAR file into a convenient directory.
Make the handler class
available to the application server in one of the following ways:
- 將個別類別檔複製到 app_server_root/classes 之下,符合類別套件名稱的目錄結構中,其中 app_server_root 是 WebSphere Application Server 的安裝根目錄。 For example
a handler class com.ibm.jaxrpc.handler.TestHandler is copied
into the app_server_root/classes/com/ibm/jaxrpc/handler directory.
- 將所有處理程式的類別檔包裝成 JAR 檔,再將它複製到 app_server_root/lib/app 目錄中。
- Start the administrative console.
- Create a shared library for the JAR file.
- Navigate to .
- Set the scope at which you want the new library to be visible,
then click New.
- Give the new library a name.
- Set the class path to the directory and file name for your handler
JAR file.
- 儲存對主要配置所做的變更。
For more information, see Creating shared libraries.
- Create a class loader for the server or
cluster on which you want to make the JAR file available.
- Navigate to .
- Click New.
- Click OK.
- 儲存對主要配置所做的變更。
For more information, see Configuring class loaders of a server.
- Add the shared library to the class loader for the server.
- Navigate to .
- Click Add.
- Click on the name of your new library, then click OK.
- 儲存對主要配置所做的變更。
For more information, see Associating shared libraries with servers.