Interface MessagingEngineMBean
The MessagingEngineMBean is enabled by the wasJmsServer feature.
This MBean provides an interface to query the runtime information of
the messaging engine defined in the configuration.
JMX clients should use the ObjectName of this MBean to query it.
Partial Object Name: WebSphere:feature=wasJmsServer, type=MessagingEngine,name=*
where name is unique for each messaging engine and is equal to the name of the messaging engine defined in configuration.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Commit the given transaction.void
Request the receiver to dump its xml representation.The dump file is created in the current server directorygetName()
Returns the name of the current messaging engine.String[]
Obtain a list of XIDs which are in-doubt.void
resetDestination
(String name) Resets a corrupt destination such that on restart, it is deleted and recreated.void
Rollback the given transaction.state()
Return the state of the Messaging Engine.
-
Method Details
-
getName
String getName()Returns the name of the current messaging engine. Please note that it is not possible to rename a messaging engine instance.- Returns:
- Name of the Messaging Engine
-
state
String state()Return the state of the Messaging Engine.- Returns:
- State of the Messaging Engine
-
resetDestination
Resets a corrupt destination such that on restart, it is deleted and recreated.- Parameters:
Name
- The name of the destination on the bus- Throws:
Exception
-
dump
Request the receiver to dump its xml representation.The dump file is created in the current server directory- Parameters:
dumpSpec
- The dump specification string, eg. "com.ibm.ws.sib.msgstore.*:com.ibm..."
-
listPreparedTransactions
String[] listPreparedTransactions()Obtain a list of XIDs which are in-doubt. Part of MBean interface for resolving in-doubt transactions in Message Store.- Returns:
- XIDs as array of strings
-
commitPreparedTransaction
Commit the given transaction. Part of MBean interface for resolving in-doubt transactions in Message Store.- Parameters:
xid
- a string representing the xid of the transaction to be committed.- Throws:
Exception
-
rollbackPreparedTransaction
Rollback the given transaction. Part of MBean interface for resolving in-doubt transactions in Message Store.- Parameters:
xid
- a string representing the xid of the transaction to be rolled back.- Throws:
Exception
-