|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.jms.extensions.JMSRuntimeHelper
weblogic.jms.extensions.JMSHelper
public final class JMSHelper
This class contains JMS helper methods for locating JMS runtime (i.e., monitoring) and configuration JMX MBeans. It also contains helper methods for dynamically creating and deleting standalone JMS destinations (queues and topics), as well as for dynamically creating and deleting distributed destinations (DD). The DD methods will also create or delete a DD's queue or topic members on each specified JMS server instance, as well as a JMS template that will be used as the template for all the member destinations.
Note: Oracle recommends that the use of the create queue/topic methods and create distributed queue/distributed topic methods be strictly limited, as they directly modify the configuration (config.xml) file and provide minimal feedback for detecting success or failure.
Constructor Summary | |
---|---|
JMSHelper()
Deprecated. |
Method Summary | |
---|---|
static void |
createDistributedQueueAsync(Context ctx,
String distributedQName,
String jndiName,
String[] jmsServerNames)
Deprecated. Create a distributed queue and its members on the specified JMS server instances. |
static void |
createDistributedTopicAsync(Context ctx,
String distributedTName,
String jndiName,
String[] jmsServerNames)
Deprecated. Create a distributed topic and its members on the specified JMS server instances. |
static void |
createPermanentQueueAsync(Context ctx,
String jmsServerName,
String queueName,
String jndiName)
Deprecated. Submit an asynchronous request to create a permanent JMS queue. |
static void |
createPermanentTopicAsync(Context ctx,
String jmsServerName,
String topicName,
String jndiName)
Deprecated. Submit an asynchronous request to create a permanent JMS topic. |
static void |
deleteDistributedQueue(Context ctx,
String distributedQName)
Deprecated. Delete a distributed queue and all its members. |
static void |
deleteDistributedTopic(Context ctx,
String distributedQName)
Deprecated. Delete a distributed topic and all its members. |
static void |
deletePermanentQueue(Context ctx,
String jmsServerName,
String queueName)
Deprecated. Submit a synchronous request to delete a permanent JMS queue. |
static void |
deletePermanentTopic(Context ctx,
String jmsServerName,
String topicName)
Deprecated. Submit a synchronous request to delete a permanent JMS topic. |
static JMSQueueMBean |
getJMSQueueConfigMBean(Context ctx,
Queue jmsQueue)
Deprecated. Retrieve the JMS queue configuration MBean for the associated JMS queue. |
static JMSQueueMBean |
getJMSQueueConfigMBean(Context ctx,
String jmsServerName,
String queueName)
Deprecated. Retrieve the JMS queue configuration MBean for the specified JMS queue name on the specified JMS server. |
static JMSServerMBean |
getJMSServerConfigMBean(Context ctx,
String jmsServerName)
Deprecated. Retrieve the JMS server configuration MBean for the specified JMS server name. |
static JMSTemplateMBean |
getJMSTemplateConfigMBean(Context ctx,
String template)
Deprecated. Retrieve the JMS template configuration MBean for the specified JMS template name. |
static JMSTopicMBean |
getJMSTopicConfigMBean(Context ctx,
String jmsServerName,
String topicName)
Deprecated. Retrieve the JMS topic configuration MBean for the specified JMS topic name on the specified JMS server. |
static JMSTopicMBean |
getJMSTopicConfigMBean(Context ctx,
Topic jmsTopic)
Deprecated. Retrieve the JMS topic configuration MBean for the associated JMS topic. |
Methods inherited from class weblogic.jms.extensions.JMSRuntimeHelper |
---|
getJMSConnectionRuntimeMBean, getJMSDestinationRuntimeMBean, getJMSDestinationRuntimeMBean, getJMSMessageConsumerRuntimeMBean, getJMSMessageProducerRuntimeMBean, getJMSServerRuntimeMBean, getJMSServerRuntimeMBean, getJMSSessionRuntimeMBean, newJMSMessageIDToOld, oldJMSMessageIDToNew |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMSHelper()
Method Detail |
---|
public static void createPermanentQueueAsync(Context ctx, String jmsServerName, String queueName, String jndiName) throws JMSException
Note: The createPermanentQueueAsync() method call can fail without throwing an exception. In addition, a thrown exception does not necessarily indicate that the method call failed.
The time required to create the destination on the JMS server and propagate the information on the JNDI namespace can be significant. The propagation delay increases if the environment contains multiple servers. It is recommended that you test for the existence of the queue using the session createQueue() method, rather than performing a JNDI lookup. By doing so, you can avoid some of the propagation-specific delays.
ctx
- JNDI initial context.jmsServerName
- name of the JMS serverqueueName
- name of the JMS queuejndiName
- name used to lookup the destination
within the JNDI namespace.
JMSException
- if a JMS error occursJMSHelper.createPermanentTopicAsync(javax.naming.Context, java.lang.String, java.lang.String, java.lang.String)
,
QueueSession.createQueue(java.lang.String)
public static void createPermanentTopicAsync(Context ctx, String jmsServerName, String topicName, String jndiName) throws JMSException
Note: Like the createPermanentQueueAsync() method, the createPermanentTopicAsync() method call can fail without throwing an exception. In addition, a thrown exception does not necessarily indicate that the method call failed.
ctx
- JNDI initial context.jmsServerName
- name of the JMS servertopicName
- name of the JMS topicjndiName
- name used to lookup the destination
within the JNDI namespace.
JMSException
- if a JMS error occursJMSHelper.createPermanentQueueAsync(javax.naming.Context, java.lang.String, java.lang.String, java.lang.String)
,
TopicSession.createTopic(java.lang.String)
public static void deletePermanentQueue(Context ctx, String jmsServerName, String queueName) throws ConfigurationException
A thrown exception does not necessarily indicate that the method call failed.
ctx
- JNDI initial context.jmsServerName
- name of the JMS serverqueueName
- name of the JMS queue
ConfigurationException
- if a JMS error occursJMSHelper.deletePermanentTopic(javax.naming.Context, java.lang.String, java.lang.String)
public static void deletePermanentTopic(Context ctx, String jmsServerName, String topicName) throws ConfigurationException
A thrown exception does not necessarily indicate that the method call failed.
ctx
- JNDI initial context.jmsServerName
- name of the JMS servertopicName
- name of the JMS topic
ConfigurationException
- if a JMS error occursJMSHelper.deletePermanentQueue(javax.naming.Context, java.lang.String, java.lang.String)
,
TopicSession.createTopic(java.lang.String)
public static void createDistributedQueueAsync(Context ctx, String distributedQName, String jndiName, String[] jmsServerNames) throws JMSException
A JMS template will also be created for the distributed destination with the same name as the destination, and this template will be used as the template for all of the member destinations.
ctx
- the JNDI context to use to access the admin serverdistributedQName
- the name of the distributed queue to createjndiName
- the name to give the distributed queue in JNDIjmsServerNames
- a list of the names of the JMS server where
distributed queue members should be created. This parameter must not
be null.
JMSException
public static void createDistributedTopicAsync(Context ctx, String distributedTName, String jndiName, String[] jmsServerNames) throws JMSException
A JMS template will also be created for the distributed destination with the same name as the destination, and this template will be used as the template for all of the member destinations.
ctx
- the JNDI context to use to access the admin serverdistributedTName
- the name of the distributed topic to createjndiName
- the name to give the distributed topic in JNDIjmsServerNames
- a list of the names of the JMS server where
distributed topic members should be created. This parameter must not
be null.
JMSException
public static void deleteDistributedQueue(Context ctx, String distributedQName) throws JMSException
JMSException
public static void deleteDistributedTopic(Context ctx, String distributedQName) throws JMSException
JMSException
public static JMSTemplateMBean getJMSTemplateConfigMBean(Context ctx, String template) throws JMSException
ctx
- JNDI initial context.template
- name of the JMS Template
JMSException
- if a JMS error occursJMSTemplateMBean
public static JMSTopicMBean getJMSTopicConfigMBean(Context ctx, Topic jmsTopic) throws JMSException
ctx
- JNDI initial context.jmsTopic
- javax.jms.Topic
JMSException
- if a JMS error occursJMSTopicMBean
public static JMSTopicMBean getJMSTopicConfigMBean(Context ctx, String jmsServerName, String topicName) throws JMSException
ctx
- JNDI initial context.jmsServerName
- name of the JMS servertopicName
- name of the JMS topic
JMSException
- if a JMS error occursJMSTopicMBean
public static JMSQueueMBean getJMSQueueConfigMBean(Context ctx, Queue jmsQueue) throws JMSException
ctx
- JNDI initial context.jmsQueue
- javax.jms.Queue
JMSException
- if a JMS error occursJMSQueueMBean
public static JMSQueueMBean getJMSQueueConfigMBean(Context ctx, String jmsServerName, String queueName) throws JMSException
ctx
- JNDI initial context.jmsServerName
- name of the JMS serverqueueName
- name of the JMS queue
JMSException
- if a JMS error occursJMSQueueMBean
public static JMSServerMBean getJMSServerConfigMBean(Context ctx, String jmsServerName) throws JMSException
ctx
- JNDI initial context.jmsServerName
- name of the JMS server
JMSException
- if a JMS error occursJMSServerMBean
|
Copyright 1996, 2013, 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.2) Part Number E27170-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |