public interface MessageDestinationConfiguration
Implementation of this interface should be registered in the ModuleConfiguration
lookup.
| Modifier and Type | Method and Description |
|---|---|
void |
bindMdbToMessageDestination(String mdbName,
String name,
MessageDestination.Type type)
Binds the message destination name with message-driven bean.
|
void |
bindMessageDestinationReference(String referenceName,
String connectionFactoryName,
String destName,
MessageDestination.Type type)
Binds the message destination reference name with the corresponding message destination which is
identified by the given name.
|
void |
bindMessageDestinationReferenceForEjb(String ejbName,
String ejbType,
String referenceName,
String connectionFactoryName,
String destName,
MessageDestination.Type type)
Binds the message destination reference name with the corresponding message destination which is
identified by the given name.
|
MessageDestination |
createMessageDestination(String name,
MessageDestination.Type type)
Creates and saves a message destination in the module if it does not exist in the module yet.
|
String |
findMessageDestinationName(String mdbName)
Finds name of message destination which the given MDB listens to
|
Set<MessageDestination> |
getMessageDestinations()
Retrieves message destinations stored in the module.
|
boolean |
supportsCreateMessageDestination()
Tests whether a message destination creation is supported.
|
Set<MessageDestination> getMessageDestinations() throws ConfigurationException
ConfigurationException - if there is some problem with message destination configurationboolean supportsCreateMessageDestination()
MessageDestination createMessageDestination(String name, MessageDestination.Type type) throws UnsupportedOperationException, ConfigurationException
name - name of the message destinationtype - message destination type; the value is of
org.netbeans.modules.j2ee.deployment.common.api.MessageDestination.Type typeUnsupportedOperationException - if this opearation is not supportedConfigurationException - if there is some problem with message destination configurationvoid bindMdbToMessageDestination(String mdbName, String name, MessageDestination.Type type) throws ConfigurationException
mdbName - MDB namename - name of the message destinationtype - message destination type; the value is ofConfigurationException - if there is some problem with message destination configurationString findMessageDestinationName(String mdbName) throws ConfigurationException
mdbName - MDB nameConfigurationException - if there is some problem with message destination configurationvoid bindMessageDestinationReference(String referenceName, String connectionFactoryName, String destName, MessageDestination.Type type) throws ConfigurationException
referenceName - reference name used to identify the message destinationconnectionFactoryName - connection factory namedestName - name of the message destinationtype - message destination typeConfigurationException - if there is some problem with message destination configurationvoid bindMessageDestinationReferenceForEjb(String ejbName, String ejbType, String referenceName, String connectionFactoryName, String destName, MessageDestination.Type type) throws ConfigurationException
ejbName - EJB nameejbType - EJB type - the possible values are
org.netbeans.modules.j2ee.dd.api.ejb.EnterpriseBeans.SESSION,
org.netbeans.modules.j2ee.dd.api.ejb.EnterpriseBeans.ENTITY and
org.netbeans.modules.j2ee.dd.api.ejb.EnterpriseBeans.MESSAGE_DRIVENreferenceName - reference name used to identify the message destinationconnectionFactoryName - connection factory namedestName - name of the message destinationtype - message destination typeConfigurationException - if there is some problem with message destination configurationBuilt on June 18 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.