|
From: Carlo de W. <ca...@ne...> - 2006-07-06 08:35:27
|
User: wolfc
Date: 06/07/06 04:35:25
Modified: src/test/org/jboss/ejb3/test/regression/ejbthree620
CalculatorBean.java
Log:
EJBTHREE-620: removed java.ejb.EJB.businessInterface
Revision Changes Path
1.2 +6 -6 jboss-ejb3/src/test/org/jboss/ejb3/test/regression/ejbthree620/CalculatorBean.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CalculatorBean.java
===================================================================
RCS file: /cvsroot/jboss/jboss-ejb3/src/test/org/jboss/ejb3/test/regression/ejbthree620/CalculatorBean.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- CalculatorBean.java 5 Jul 2006 10:51:36 -0000 1.1
+++ CalculatorBean.java 6 Jul 2006 08:35:25 -0000 1.2
@@ -22,27 +22,27 @@
package org.jboss.ejb3.test.regression.ejbthree620;
import javax.ejb.EJB;
-import javax.ejb.EJBException;
+//import javax.ejb.EJBException;
import javax.ejb.Stateless;
/**
* Comment
*
* @author <a href="mailto:car...@jb...">Carlo de Wolf</a>
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
@Stateless
public class CalculatorBean implements Calculator
{
@EJB(beanInterface=Calculator.class) Object other;
- @EJB(businessInterface=Calculator.class) Object deprecatedOther;
+// @EJB(businessInterface=Calculator.class) Object deprecatedOther;
public int add(int a, int b)
{
int result1 = ((Calculator) other).performAddition(a, b);
- int result2 = ((Calculator) deprecatedOther).performAddition(a, b);
- if(result1 != result2)
- throw new EJBException("something horrible happened");
+// int result2 = ((Calculator) deprecatedOther).performAddition(a, b);
+// if(result1 != result2)
+// throw new EJBException("something horrible happened");
return result1;
}
|