org.netbeans.modules.j2eeserver/4 1.89.0 1

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


public interface MappingConfiguration

Configuration CMP mapping.

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

Since:
1.23

Method Summary
 void setCMPResource(String ejbName, String jndiName)
          Sets the resource for the specified CMP bean.
 void setMappingInfo(OriginalCMPMapping[] mappings)
          Sets the CMP mapping info for the EJB by the given name.
 

Method Detail

setCMPResource

void setCMPResource(String ejbName,
                    String jndiName)
                    throws ConfigurationException
Sets the resource for the specified CMP bean. Some containers may not support fine-grained per bean resource definition, in which case global EJB module CMP resource is set.

Parameters:
ejbName - name of the CMP bean.
jndiName - the JNDI name of the resource.
Throws:
ConfigurationException - reports errors in setting the CMP resource.
NullPointerException - if any of the parameters is null.
Since:
1.30

setMappingInfo

void setMappingInfo(OriginalCMPMapping[] mappings)
                    throws ConfigurationException
Sets the CMP mapping info for the EJB by the given name.

Parameters:
mappings - All the mapping info needed to be pushed in one batch.
Throws:
ConfigurationException - reports errors in setting the CMP mapping info.

org.netbeans.modules.j2eeserver/4 1.89.0 1

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.