[jboss-cvs] JBossAS SVN: r110605 - projects/ejb3/branches/jboss-ejb3-core-1.3/src/main/java/org/jboss/ejb3/proxy/factory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Feb 10 16:34:51 EST 2011
Author: ALRubinger
Date: 2011-02-10 16:34:51 -0500 (Thu, 10 Feb 2011)
New Revision: 110605
Modified:
projects/ejb3/branches/jboss-ejb3-core-1.3/src/main/java/org/jboss/ejb3/proxy/factory/ProxyFactoryHelper.java
Log:
[JBPAPP-5482] Performance improvement patch to ejb3-core:1.3 branch
Modified: projects/ejb3/branches/jboss-ejb3-core-1.3/src/main/java/org/jboss/ejb3/proxy/factory/ProxyFactoryHelper.java
===================================================================
--- projects/ejb3/branches/jboss-ejb3-core-1.3/src/main/java/org/jboss/ejb3/proxy/factory/ProxyFactoryHelper.java 2011-02-10 21:25:33 UTC (rev 110604)
+++ projects/ejb3/branches/jboss-ejb3-core-1.3/src/main/java/org/jboss/ejb3/proxy/factory/ProxyFactoryHelper.java 2011-02-10 21:34:51 UTC (rev 110605)
@@ -711,11 +711,7 @@
// If for a Stateless Container
if (isStateless)
{
- // Initialize error message
- String specViolationErrorMessage = "EJB 3.0 Specification Violation (4.6.8 Bullet 4, 4.6.10 Bullet 4): \""
- + "A stateless session bean must define exactly one create method with no arguments." + "\"; found in "
- + homeInterface.getName();
-
+
// Get all methods with signature "create"
createMethods = new ArrayList<Method>();
try
@@ -727,7 +723,9 @@
// EJBTHREE-1156
catch (NoSuchMethodException e)
{
- throw new RuntimeException(specViolationErrorMessage);
+ throw new RuntimeException("EJB 3.0 Specification Violation (4.6.8 Bullet 4, 4.6.10 Bullet 4): \""
+ + "A stateless session bean must define exactly one create method with no arguments." + "\"; found in "
+ + homeInterface.getName());
}
// Ensure only one create method is defined
@@ -735,7 +733,9 @@
// EJBTHREE-1156
if (createMethods.size() > 1)
{
- throw new RuntimeException(specViolationErrorMessage);
+ throw new RuntimeException("EJB 3.0 Specification Violation (4.6.8 Bullet 4, 4.6.10 Bullet 4): \""
+ + "A stateless session bean must define exactly one create method with no arguments." + "\"; found in "
+ + homeInterface.getName());
}
}
else
More information about the jboss-cvs-commits
mailing list