org.netbeans.modules.j2eeserver/4 1.55.0 1

org.netbeans.modules.j2ee.deployment.plugins.spi.config
Interface EjbResourceConfiguration


public interface EjbResourceConfiguration

Configuration for EJB resources.

Implementation of this interface should be registered in the ModuleConfiguration lookup.

Since:
1.23

Method Summary
 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.
 

Method Detail

findJndiNameForEjb

String findJndiNameForEjb(String ejbName)
                          throws ConfigurationException
Returns a JNDI name for the given EJB or null if the EJB has no JNDI name assigned.

Parameters:
ejbName - EJB name
Returns:
JNDI name bound to the EJB or null if the EJB has no JNDI name assigned.
Throws:
ConfigurationException - if there is some problem with EJB configuration.
Since:
1.31

bindEjbReference

void bindEjbReference(String referenceName,
                      String jndiName)
                      throws ConfigurationException
Binds an EJB reference name with an EJB JNDI name.

Parameters:
referenceName - name used to identify the EJB
jndiName - JNDI name of the referenced EJB
Throws:
ConfigurationException - if there is some problem with EJB configuration
Since:
1.26

bindEjbReferenceForEjb

void bindEjbReferenceForEjb(String ejbName,
                            String ejbType,
                            String referenceName,
                            String jndiName)
                            throws ConfigurationException
Binds an EJB reference name with an EJB name within the EJB scope.

Parameters:
ejbName - EJB name
ejbType - 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_DRIVEN
referenceName - name used to identify the referenced EJB
jndiName - JNDI name of the referenced EJB
Throws:
NullPointerException - if any of parameters is null
ConfigurationException - if there is some problem with EJB configuration
IllegalArgumentException - if ejbType doesn't have one of allowed values
Since:
1.26

org.netbeans.modules.j2eeserver/4 1.55.0 1

Built on November 20 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.