public class JMSRuntimeHelper extends Object
| Modifier and Type | Method and Description | 
|---|---|
static JMSConnectionRuntimeMBean | 
getJMSConnectionRuntimeMBean(Context ctx,
                            Connection connection)
Retrieve the JMS connection runtime MBean for the associated 
  JMS connection. 
 | 
static JMSDestinationRuntimeMBean | 
getJMSDestinationRuntimeMBean(Context ctx,
                             Destination destination)
Retrieve the JMS destination runtime MBean for the associated 
  JMS destination. 
 | 
static JMSDestinationRuntimeMBean | 
getJMSDestinationRuntimeMBean(Context ctx,
                             String jmsServerName,
                             String destinationName)
Retrieve the JMS destination runtime MBean for the specified JMS destination 
  name on the specified JMS server. 
 | 
static JMSConsumerRuntimeMBean | 
getJMSMessageConsumerRuntimeMBean(Context ctx,
                                 MessageConsumer messageConsumer)
Retrieve the JMS consumer runtime MBean for the associated 
  JMS message consumer. 
 | 
static JMSProducerRuntimeMBean | 
getJMSMessageProducerRuntimeMBean(Context ctx,
                                 MessageProducer messageProducer)
Retrieve the JMS producer runtime MBean for the associated JMS 
  message producer. 
 | 
static JMSServerRuntimeMBean | 
getJMSServerRuntimeMBean(Context ctx,
                        Destination destination)
Retrieve the JMS server runtime MBean hosting the associated 
  JMS destination. 
 | 
static JMSServerRuntimeMBean | 
getJMSServerRuntimeMBean(Context ctx,
                        String mbeanName)
Retrieve the JMS server runtime MBean for the specified JMS server name. 
 | 
static JMSSessionRuntimeMBean | 
getJMSSessionRuntimeMBean(Context ctx,
                         Session customerSession)
Retrieve the JMS customerSession runtime MBean for the associated JMS customerSession. 
 | 
String | 
newJMSMessageIDToOld(String messageId)
Convert WebLogic JMS 6.0 JMSMessageID format to the pre-6.0 format. 
 | 
String | 
oldJMSMessageIDToNew(String messageId,
                    long timeStamp)
Convert WebLogic JMS pre-6.0 JMSMessageID format into the 6.0 format. 
 | 
public static JMSConnectionRuntimeMBean getJMSConnectionRuntimeMBean(Context ctx, Connection connection) throws JMSException
ctx - JNDI initial context.connection - javax.jms.ConnectionJMSException - if a JMS error occursJMSExceptionJMSConnectionRuntimeMBeanpublic static JMSProducerRuntimeMBean getJMSMessageProducerRuntimeMBean(Context ctx, MessageProducer messageProducer) throws JMSException
ctx - JNDI initial context.messageProducer - javax.jms.MessageProducerJMSException - if a JMS error occursJMSExceptionJMSProducerRuntimeMBeanpublic static JMSConsumerRuntimeMBean getJMSMessageConsumerRuntimeMBean(Context ctx, MessageConsumer messageConsumer) throws JMSException
ctx - JNDI initial context.messageConsumer - javax.jms.MessageConsumerJMSException - if a JMS error occursJMSExceptionJMSConsumerRuntimeMBeanpublic static JMSSessionRuntimeMBean getJMSSessionRuntimeMBean(Context ctx, Session customerSession) throws JMSException
ctx - JNDI initial contextcustomerSession - javax.jms.SessionJMSException - if a JMS error occursJMSExceptionJMSSessionRuntimeMBeanpublic static JMSServerRuntimeMBean getJMSServerRuntimeMBean(Context ctx, Destination destination) throws JMSException
ctx - JNDI initial contextdestination - javax.jms.DestinationJMSException - if a JMS error occursJMSExceptionJMSServerRuntimeMBeanpublic static JMSDestinationRuntimeMBean getJMSDestinationRuntimeMBean(Context ctx, String jmsServerName, String destinationName) throws JMSException
ctx - JNDI initial contextjmsServerName - name of the JMS serverdestinationName - name(in the form of "moduleName!destinationName") of the JMS destination including module name.JMSException - if a JMS error occursJMSExceptionJMSDestinationRuntimeMBeanpublic static JMSDestinationRuntimeMBean getJMSDestinationRuntimeMBean(Context ctx, Destination destination) throws JMSException
ctx - JNDI initial contextdestination - javax.jms.DestinationJMSException - if a JMS error occursJMSExceptionJMSDestinationRuntimeMBeanpublic static JMSServerRuntimeMBean getJMSServerRuntimeMBean(Context ctx, String mbeanName) throws JMSException
ctx - JNDI initial contextmbeanName - name of the JMS serverJMSException - if a JMS error occursJMSExceptionJMSServerRuntimeMBeanpublic String oldJMSMessageIDToNew(String messageId, long timeStamp) throws JMSException
messageId - old JMSMessageID.timeStamp - timestamp of message.JMSException - if a JMS error occursJMSExceptionJMSRuntimeHelper.newJMSMessageIDToOld(java.lang.String)public String newJMSMessageIDToOld(String messageId) throws JMSException
messageId - old JMSMessageID.JMSException - if a JMS error occursJMSExceptionJMSRuntimeHelper.oldJMSMessageIDToNew(java.lang.String, long)