Index: j2eeserver/apichanges.xml =================================================================== RCS file: /cvs/j2eeserver/apichanges.xml,v retrieving revision 1.27 diff -u -r1.27 apichanges.xml --- j2eeserver/apichanges.xml 5 Apr 2007 15:20:41 -0000 1.27 +++ j2eeserver/apichanges.xml 15 Apr 2007 15:40:14 -0000 @@ -86,6 +86,24 @@ + + + + Adding an API for Call EJB action + + + + + + +

+ API for Call EJB action. +

+
+ + + +
Index: j2eeserver/nbproject/project.properties =================================================================== RCS file: /cvs/j2eeserver/nbproject/project.properties,v retrieving revision 1.18 diff -u -r1.18 project.properties --- j2eeserver/nbproject/project.properties 5 Apr 2007 15:20:42 -0000 1.18 +++ j2eeserver/nbproject/project.properties 15 Apr 2007 15:40:14 -0000 @@ -17,7 +17,7 @@ is.autoload=true javac.source=1.5 -spec.version.base=1.25.0 +spec.version.base=1.26.0 javadoc.overview=${basedir}/api/doc/overview.html javadoc.arch=${basedir}/arch.xml Index: j2eeserver/src/org/netbeans/modules/j2ee/deployment/devmodules/spi/J2eeModuleProvider.java =================================================================== RCS file: /cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/devmodules/spi/J2eeModuleProvider.java,v retrieving revision 1.56 diff -u -r1.56 J2eeModuleProvider.java --- j2eeserver/src/org/netbeans/modules/j2ee/deployment/devmodules/spi/J2eeModuleProvider.java 5 Apr 2007 15:20:45 -0000 1.56 +++ j2eeserver/src/org/netbeans/modules/j2ee/deployment/devmodules/spi/J2eeModuleProvider.java 15 Apr 2007 15:40:14 -0000 @@ -536,12 +536,46 @@ * * @throws NullPointerException if any of parameters is null * @throws ConfigurationException if there is some problem with message destination configuration + * @throws IllegalArgumentException if ejbType doesn't have one of allowed values * * @since 1.25 */ public void bindMessageDestinationReferenceForEjb(String ejbName, String ejbType, String referenceName, String connectionFactoryName, String destName, MessageDestination.Type type) throws ConfigurationException; + + /** + * Binds EJB reference name with EJB name. + * + * @param referenceName name used to identify the EJB + * @param referencedEjbName name of the referenced EJB + * + * @throws NullPointerException if any of parameters is null + * @throws ConfigurationException if there is some problem with EJB configuration + * + * @since 1.26 + */ + public void bindEjbReference(String referenceName, String referencedEjbName) throws ConfigurationException; + + /** + * Binds EJB reference name with EJB name within the EJB scope. + * + * @param ejbName EJB name + * @param 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 + * @param referenceName name used to identify the referenced EJB + * @param referencedEjbName name of the referenced EJB + * + * @throws NullPointerException if any of parameters is null + * @throws ConfigurationException if there is some problem with EJB configuration + * @throws IllegalArgumentException if ejbType doesn't have one of allowed values + * + * @since 1.26 + */ + public void bindEjbReferenceForEjb(String ejbName, String ejbType, + String referenceName, String referencedEjbName) throws ConfigurationException; } /** Index: j2eeserver/src/org/netbeans/modules/j2ee/deployment/plugins/spi/config/EjbResourceConfiguration.java =================================================================== RCS file: /cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/plugins/spi/config/EjbResourceConfiguration.java,v retrieving revision 1.2 diff -u -r1.2 EjbResourceConfiguration.java --- j2eeserver/src/org/netbeans/modules/j2ee/deployment/plugins/spi/config/EjbResourceConfiguration.java 29 Mar 2007 23:05:04 -0000 1.2 +++ j2eeserver/src/org/netbeans/modules/j2ee/deployment/plugins/spi/config/EjbResourceConfiguration.java 15 Apr 2007 15:40:15 -0000 @@ -13,7 +13,7 @@ * "Portions Copyrighted [year] [name of copyright owner]" * * The Original Software is NetBeans. The Initial Developer of the Original - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun + * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun * Microsystems, Inc. All Rights Reserved. */ @@ -43,4 +43,38 @@ * @throws ConfigurationException reports errors in setting the EJB resource. */ void ensureResourceDefined(ComponentInterface ejb, String jndiName) throws ConfigurationException; + + /** + * Binds EJB reference name with EJB name. + * + * @param referenceName name used to identify the EJB + * @param referencedEjbName name of the referenced EJB + * + * @throws ConfigurationException if there is some problem with EJB configuration + * + * @since 1.26 + */ + public void bindEjbReference(String referenceName, String referencedEjbName) throws ConfigurationException; + + /** + * Binds EJB reference name with EJB name within the EJB scope. + * + * @param ejbName EJB name + * @param 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 + * @param referenceName name used to identify the referenced EJB + * @param referencedEjbName name of the referenced EJB + * + * @throws NullPointerException if any of parameters is null + * @throws ConfigurationException if there is some problem with EJB configuration + * @throws IllegalArgumentException if ejbType doesn't have one of allowed values + * + * @since 1.26 + */ + public void bindEjbReferenceForEjb(String ejbName, String ejbType, + String referenceName, String referencedEjbName) throws ConfigurationException; + + }