Network Deployment (Distributed operating systems), v8.0 > Administer applications and their environment > Administer web services - Bus enabled web services > Enable web services through the service integration bus > Administer the bus-enabled web services resources > Work with JAX-RPC handlers and clients > Create a new JAX-RPC handler configuration
Load JAX-RPC handler classes
A JAX-RPC handler interacts with messages as they pass into and out of the service integration bus, therefore you make the handler class available to the server or cluster that hosts the inbound or outbound port for the service to monitor.
This task assumes that we have already created your handler. We can do this by using IBM Rational Application Developer or a similar tool. See the IBM developerWorks article Support for J2EE Web Services in WebSphere Studio Application Developer V5.1 -- Part 3: JAX-RPC Handlers.
Before you can configure your JAX-RPC handler for use with service integration bus-deployed web services, make the handler class available. To monitor an inbound port, make the handler class available to the server on which the endpoint listener for that port is located. To monitor an outbound port, make the handler class available to the server on which the outbound port destination is localized.
To make the handler class available to the server or cluster that hosts the port 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:
- Copy the individual class file into a directory structure under WAS_HOME/classes that matches the package name of the class, where WAS_HOME is the root directory for the installation of WAS. For example a handler class com.ibm.jaxrpc.handler.TestHandler is copied into the WAS_HOME/classes/com/ibm/jaxrpc/handler directory.
- Package the class files for all your handlers as a JAR file, then copy it into the WAS_HOME/lib/app directory.
- Start the admin console.
- Create a shared library for the JAR file.
- Navigate to Environment -> Shared libraries .
- 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.
- Save your changes to the master configuration.
- Create a class loader for the server or cluster on which to make the JAR file available.
- Navigate to Servers -> Server Types -> WebSphere application servers -> server_name
-> [Server Infrastructure] Java and Process Management -> Class loader .
- Click New.
- Click OK.
- Save your changes to the master configuration.
See Configure class loaders of a server.
- Add the shared library to the class loader for the server.
- Navigate to Servers -> Server Types -> WebSphere application servers -> server_name
-> [Server Infrastructure] Java and Process Management -> Class loader -> class_loader_name > [Additional Properties] Shared library references .
- Click Add.
- Click on the name of your new library, then click OK.
- Save your changes to the master configuration.
What to do next
You are now ready to configure your handler for use (as part of a handler list) with service integration bus-enabled web services.