Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02

weblogic.management.runtime
Interface MessageDrivenEJBRuntimeMBean

All Superinterfaces:
DynamicMBean, EJBRuntimeMBean, HealthFeedback, MBeanRegistration, NotificationBroadcaster, RuntimeMBean, WebLogicMBean

public interface MessageDrivenEJBRuntimeMBean
extends EJBRuntimeMBean, HealthFeedback

This interface contains accessor methods for all EJB runtime information collected for a Message Driven Bean.


Method Summary
 String getConnectionStatus()
          Provides the connection status for the Message Driven Bean.
 String getDestination()
          Provides a count of the Message Driven Bean destination
 HealthState getHealthState()
          The health state of this MDB.
 String getJmsClientID()
          Provides a count of the Message Driven Bean jmsClientID
 Throwable getLastException()
          Provides the last exception this MDB encountered
 String getLastExceptionAsString()
          Provides the last exception as String this MDB encountered
 String getMDBStatus()
          Provides the Message Driven Bean status.
 EJBPoolRuntimeMBean getPoolRuntime()
          Provides runtime information about the free pool for this EJB.
 long getProcessedMessageCount()
          Provides a count of the total number of messages processed by this Message Driven Bean.
 int getSuspendCount()
          Provides a count of the total number of times this MDB is suspended by the user or the EJB container.
 EJBTimerRuntimeMBean getTimerRuntime()
          Provides runtime information about any EJB Timers created, for this EJB.
 boolean isJMSConnectionAlive()
          Provides information about whether the Message Driven Bean is currently connected to the JMS destination it is mapped to.
 boolean resume()
          Resumes the specific type of MDB by calling start on the JMS Connection.
 boolean suspend()
          Suspends the specific type of MDB by calling stop on the JMS Connection.
 
Methods inherited from interface weblogic.management.runtime.EJBRuntimeMBean
getEJBName, getResources, getTransactionRuntime
 
Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent
 
Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Method Detail

getHealthState

HealthState getHealthState()

The health state of this MDB.

Specified by:
getHealthState in interface HealthFeedback
Returns:
The healthState value

getPoolRuntime

EJBPoolRuntimeMBean getPoolRuntime()

Provides runtime information about the free pool for this EJB.

Returns:
The poolRuntime value

getTimerRuntime

EJBTimerRuntimeMBean getTimerRuntime()

Provides runtime information about any EJB Timers created, for this EJB. If the bean class for this EJB does not implement javax.ejb.TimedObject, null will be returned.

Returns:
The timerRuntime value or null if TimedObject not implemented

isJMSConnectionAlive

boolean isJMSConnectionAlive()

Provides information about whether the Message Driven Bean is currently connected to the JMS destination it is mapped to.

Returns whether the Message Driven Bean is currently connected to the JMS destination it is mapped to.

Returns:
The jMSConnectionAlive value

getConnectionStatus

String getConnectionStatus()

Provides the connection status for the Message Driven Bean. ConnectionStatus can be Connected or Reconnecting.

Returns:
The connectionStatus value

getDestination

String getDestination()

Provides a count of the Message Driven Bean destination

Returns:
The destination value

getJmsClientID

String getJmsClientID()

Provides a count of the Message Driven Bean jmsClientID

Returns:
The jmsClientID value

getMDBStatus

String getMDBStatus()

Provides the Message Driven Bean status. MDBStatus is used after the MDB is connected to the destination. MDBStatus can be Running or Suspended.

Returns:
The MDBStatus value

getProcessedMessageCount

long getProcessedMessageCount()

Provides a count of the total number of messages processed by this Message Driven Bean.

Returns:
The Processed Message Count

getSuspendCount

int getSuspendCount()

Provides a count of the total number of times this MDB is suspended by the user or the EJB container.

Returns:
The suspendCount value

getLastException

Throwable getLastException()

Provides the last exception this MDB encountered

Returns:
The lastException

getLastExceptionAsString

String getLastExceptionAsString()

Provides the last exception as String this MDB encountered

Returns:
The lastException as String

suspend

boolean suspend()
                throws ManagementException

Suspends the specific type of MDB by calling stop on the JMS Connection.

Throws:
ManagementException

resume

boolean resume()
               throws ManagementException

Resumes the specific type of MDB by calling start on the JMS Connection.

Throws:
ManagementException

Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02