1 22 package org.jboss.ejb3.test.regression.ejbthree625; 23 24 import javax.ejb.Stateless ; 25 26 32 @Stateless  33 public class SillyBean implements Silly 34 { 35 public int add(int x, int y) 36 { 37 if (StupidInterceptor.count != 1) throw new RuntimeException ("count is wrong: " + StupidInterceptor.count); 38 return x + y; 39 } 40 41 public int sub(int x, int y) 42 { 43 if (StupidInterceptor.count != 1) throw new RuntimeException ("count is wrong: " + StupidInterceptor.count); 44 return x-y; 45 } 46 47 public void clear() 48 { 49 StupidInterceptor.count = 0; 50 } 51 } 52 | Popular Tags |