public interface EjbResourceConfiguration
Implementation of this interface should be registered in the ModuleConfiguration
lookup.
Modifier and Type | Method and Description |
---|---|
void |
bindEjbReference(String referenceName,
String jndiName)
Binds an EJB reference name with an EJB JNDI name.
|
void |
bindEjbReferenceForEjb(String ejbName,
String ejbType,
String referenceName,
String jndiName)
Binds an EJB reference name with an EJB name within the EJB scope.
|
String |
findJndiNameForEjb(String ejbName)
Returns a JNDI name for the given EJB or
null if the EJB has
no JNDI name assigned. |
String findJndiNameForEjb(String ejbName) throws ConfigurationException
null
if the EJB has
no JNDI name assigned.ejbName
- EJB namenull
if the EJB has no
JNDI name assigned.ConfigurationException
- if there is some problem with EJB configuration.void bindEjbReference(String referenceName, String jndiName) throws ConfigurationException
referenceName
- name used to identify the EJBjndiName
- JNDI name of the referenced EJBConfigurationException
- if there is some problem with EJB configurationvoid bindEjbReferenceForEjb(String ejbName, String ejbType, String referenceName, String jndiName) 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
- name used to identify the referenced EJBjndiName
- JNDI name of the referenced EJBNullPointerException
- if any of parameters is nullConfigurationException
- if there is some problem with EJB configurationIllegalArgumentException
- if ejbType doesn't have one of allowed values