IBM WebSphere Application ServerTM
Release 8

com.ibm.wbiserver.storeandfwd.management
Interface StoreAndForwardManager


public interface StoreAndForwardManager

The StoreAndForwardManager interface defines the operations to manage stored events. The interface is implemented as a MBean with partial ObjectName:

 WebSphere:*,type=StoreAndForwardManager
 
To manage the state of the control points, obtain the StoreAndForwardManager MBean from admin server or admin client and invoke the operations. In Network Deployment environment, there are more than one StoreAndForwardManager MBeans running. Each MBean manages the state of the control points on that deployment target.

Sample code to get StoreAndForwardManager MBean from remote client.

 Properties connectProps = new Properties();
 connectProps.setProperty(AdminClient.CONNECTOR_TYPE, AdminClient.CONNECTOR_TYPE_SOAP);
 connectProps.setProperty(AdminClient.CONNECTOR_HOST, "localhost");
 connectProps.setProperty(AdminClient.CONNECTOR_PORT, "8880");
 AdminClient adminClient = null;
 try {
     adminClient = AdminClientFactory.createAdminClient(connectProps);
 } catch (ConnectorException e) {
     System.out.println("Exception creating admin client: " + e);
 }
 ObjectName queryName = new ObjectName("WebSphere:*,type=StoreAndForwardManager");
 ObjectName nodeAgent = null;
 Set s = adminClient.queryNames(queryName, null);
 if (!s.isEmpty())
     nodeAgent = (ObjectName) s.iterator().next();
 else
     System.out.println("Store and Forward Manager MBean was not found");
 
If security is enabled on the server, then the appropriate properties have to be set. Sample code is provided for each operation with admin client. The invocation syntax for admin server is the same as admin client.


Field Summary
static java.lang.String COPYRIGHT
           
 
Method Summary
 void systemAvailable(java.lang.String moduleName, java.lang.String storeConfigurationName)
           
 void systemUnavailable(java.lang.String moduleName, java.lang.String storeConfigurationName)
           
 

Field Detail

COPYRIGHT

static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Method Detail

systemAvailable

void systemAvailable(java.lang.String moduleName,
                     java.lang.String storeConfigurationName)
                     throws StoreAndForwardException
Throws:
StoreAndForwardException

systemUnavailable

void systemUnavailable(java.lang.String moduleName,
                       java.lang.String storeConfigurationName)
                       throws StoreAndForwardException
Throws:
StoreAndForwardException

IBM WebSphere Application ServerTM
Release 8