This reference information provides examples, showing code snippets, command syntax, and configuration values that are relevant to performing administration and deployment tasks.
We can also search for examples by title or using keywords.
- Batch administrator examples
Batch administrator examples are examples of code snippets, command syntax, and configuration values relevant to performing administrative and deployment tasks in the batch environment.
- Example: Adjusting the thread monitor to affect server hang detection
The hang detection policy affects how the application server responds to a thread that is not being processed correctly.
- Example: Administrative client program
The following examples are complete administrative client program. The second examples uses a RMI connector.
- Example: Base Generic Emitter Interface
The Base Generic Emitter interface defines how audit events are emitted. Other interfaces can exist to extend this interface and to process specific audit events groupings, such as security events, transactional events, or some other custom grouping. Use this interface to create a custom implementation of the emitter.
- Example: Caching a command object
Cacheable commands are stored in the cache for reuse with a similar mechanism for servlets and JSP files.
- Example: Caching web services
We can build a set of cache policies and SOAP messages for a web services application.
- Example: Collecting arguments for the AdminControl object
This example shows how to use multiple arguments with the AdminControl object.
- Example: Configuring data source provider and data source settings
We can configure data source provider and data source settings.
- Example: Configuring IBM HTTP server as an intermediary node for web services transactions
Use an HTTP server intermediary nodes to enable the exchange of Web Services Atomic Transaction and Web Services Business Activity protocol messages across firewalls and outside the WebSphere Application Server domain. For IBM HTTP server, you achieve this behavior by modifying the plugin-cfg.xml file of the IBM HTTP server node.
- Example: Configuring JMS provider, JMS connection factory and JMS destination settings for application clients
We can configure JMS Provider, JMS Connection Factory and JMS Destination settings.
- Example: Configuring mail provider and mail session settings for application clients
We can configure mail provider and mail session settings.
- Example: Configuring resource environment custom settings for application clients
We can configure resource environment custom settings.
- Example: Configuring Resource Environment settings
We can configure Resource Environment settings.
- Example: Configuring URL and URL provider settings for application clients
We can configure URL and URL provider settings.
- Example: Creating a JDBC provider and data source using Java Management Extensions API and the wsadmin scripting tool
The following sample code is a JACL (wsadmin - scripting tool) script used to create a data source.
- Example: Custom login module for inbound mapping
This sample shows a custom login module that creates a java.util.Hashtable hashtable based on the specified NameCallback callback. The java.util.Hashtable hashtable is added to the sharedState java.util.Map map so that the WAS login modules can locate the information in the Hashtable.
- Example: Developing a custom trust manager for custom SSL trust decisions
The following example is of a sample custom trust manager. The custom trust manager makes no trust decisions but instead uses the information in the X.509 certificate that it references to make decisions.
- Example: Developing a key or key pair generation class for automated key generation
A class that generates keys for cryptographic operations can be created automatically. With this capability, the key management infrastructure can maintain a list of keys for a predefined key set, and applications can access these keys.
- Example: Displaying the setting for trace records
Use the following example to display the setting for trace records. The TRACERECORD parameter on the modify command is used to control the writing of trace records.
- Example: Displaying units of work (transactions) for the Information Management System
This example shows how to use scripting to display the units of work for the Information Management System.
- Example: Dynamically changing scheduler daemon poll intervals using Java Management Extensions API
wsadmin tool to invoke a Jacl script and dynamically change scheduler daemon poll intervals.
- (iSeries) (ZOS) (Dist) Example: Enabling certificate revocation checking with the default IbmPKIX trust manager
The IbmPKIX trust manager is enabled in the WAS by default. The IbmPKIX trust manager allows certificate revocation checking to occur. You enable certificate revocation checking using the administrative console or by manually updating the ssl.client.props file.
- Example: Generic Event Factory Interface
This interface is used for processing generic audit events. Other interfaces can be defined which extend this interface to process specific audit event groupings, such as security events, transaction events, or some other custom grouping.
- Example: Generic Event Interface
This interface is used for processing generic audit events. Other interfaces can be defined which extend this interface to process specific audit event groupings, such as security events, transaction events, or other custom groupings. For WAS version 7.0, only security types of events are supported.
- Example: Identifying running objects
Use the AdminControl object to interact with running MBeans.
- Example: Implementing custom PMI
- Example: Listing the modules in an application server
This example lists all of the modules on all of the enterprise applications installed on the server1 server in a node named node1.
- Example: Obtaining option information for AdminApp object commands
Use the taskInfo command of the AdminApp object to obtain information about the data needed for our application.
- Example: Retrieving the generated keys from a key set group
This example shows how applications can use the com.ibm.websphere.crypto.KeySetHelper API to retrieve managed keys from the KeySet or KeySetGroup configurations. Use the com.ibm.websphere.crypto.KeySetHelper API to get either the latest set of keys or all the keys in the KeySet or KeySetGroup object.
- Example: Sample configuration for Web Services Security for a version 5.x application
To secure a version 5.x application with Web Services Security, define the security constraints in the IBM extension deployment descriptors and in IBM extension bindings. Sample keystore files and default binding information are provided for a sample configuration to demonstrate what IBM deployment descriptor extensions and bindings can do.
- Example: Sample login configuration for RMI_OUTBOUND
This example shows a sample login configuration for RMI_OUTBOUND that determines whether the realm names match between two servers.
- Example: Security and the command line tools
To enable WAS security, provide the command line tools with authentication information.
- Example: SIP servlet Proxy servlet class
- Example: SIP servlet SendOnServlet class
The SendOnServlet class is a simple SIP servlet that would perform the basic function of being called on each INVITE and sending the request on from there.
- Example: SIP servlet simple proxy
This is a servlet example of a simple proxy.
- (iSeries) (ZOS) (Dist) Example: Stopping and starting scheduler daemons using Java Management Extensions API
wsadmin tool to invoke a Jacl script and stop and start a scheduler daemon.
- Example: The SampleStateMBean MBean
Use this example to guide you in developing user MBeans that work for the WAS on both the distributed platforms and the z/OS platform. The example uses all the special handlers to show its dynamic proxy Bean responsibilities and capabilities. The SampleStateMBean example keeps track of its state and generates state change events when it invokes setter methods.
- Example: Using connections with concurrency
A Runnable or Callable can use the connections that its creating component obtained using java:comp resource references.
- Example: Using default scheduler calendars
Use The SIMPLE and CRON calendars from any J2EE application.
- Example: Using mediations to trace, monitor and log messages
The most straightforward use of a mediation is for tracing, monitoring or logging messages that pass through a destination or topics spaces. This type of mediation does not modify the message; it only extracts information from the message and saves or displays the information elsewhere.
- Example: Using node groups with clusters
Use node groups to define groups of nodes that are capable of hosting members of the same cluster. An application that is deployed to a cluster must be capable of running on any of the cluster members. The node that hosts each of the cluster members must be configured with software and settings necessary to support the application.
- Example: Using scripting to create and configure schedulers
wsadmin tool to invoke a Jacl script and create a SchedulerConfiguration resource.
- Example: Using scripting to create scheduler tables
wsadmin tool to invoke a Jacl script and create scheduler tables.
- Example: Using scripting to drop scheduler tables
wsadmin tool to invoke a Jacl script and remove scheduler tables.
- Example: Using scripting to verify scheduler tables
wsadmin tool to invoke a Jacl script and verify tables and indices for a scheduler.
- Example: Using the WSLogin configuration to create a basic authentication subject
This example shows how to use the WSLogin application login configuration from within a Java 2 Platform, Enterprise Edition (J2EE) application to log in and get a Subject containing the user ID and the password of the target realm.
- IBM MQ link sample configuration
This sample configuration illustrates how we can use an IBM MQ link to connect WAS service integration messaging to IBM MQ messaging.