com.ibm.websphere.messaging.mbean

Interface MessagingEngineMBean


  1. @MXBean
  2. public 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 Type Method and Description
  1. void
commitPreparedTransaction(java.lang.String xid)
Commit the given transaction.
  1. void
dump(java.lang.String dumpSpec)
Request the receiver to dump its xml representation.The dump file is created in the current server directory
  1. java.lang.String
getName()
Returns the name of the current messaging engine.
  1. java.lang.String[]
listPreparedTransactions()
Obtain a list of XIDs which are in-doubt.
  1. void
resetDestination(java.lang.String name)
Resets a corrupt destination such that on restart, it is deleted and recreated.
  1. void
rollbackPreparedTransaction(java.lang.String xid)
Rollback the given transaction.
  1. java.lang.String
state()
Return the state of the Messaging Engine.

Method Detail

getName

  1. java.lang.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

  1. java.lang.String state()
Return the state of the Messaging Engine.
Returns:
State of the Messaging Engine

resetDestination

  1. void resetDestination(java.lang.String name)
  2. throws java.lang.Exception
Resets a corrupt destination such that on restart, it is deleted and recreated.
Throws:
java.lang.Exception

dump

  1. void dump(java.lang.String dumpSpec)
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

  1. java.lang.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

  1. void commitPreparedTransaction( java.lang.String xid)
  2. throws java.lang.Exception
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:
java.lang.Exception

rollbackPreparedTransaction

  1. void rollbackPreparedTransaction( java.lang.String xid)
  2. throws java.lang.Exception
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:
java.lang.Exception