1 22 package org.jboss.ejb3.test.mdbtransactions; 23 24 import javax.ejb.Stateless ; 25 import javax.ejb.Remote ; 26 27 import org.jboss.logging.Logger; 28 29 32 @Stateless 33 @Remote (TestStatus.class) 34 public class TestStatusBean implements TestStatus 35 { 36 private static final Logger log = Logger.getLogger(TestStatusBean.class); 37 38 public static boolean caughtRollback = false; 39 public static int messageCount = 0; 40 41 public boolean caughtRollback() 42 { 43 return caughtRollback; 44 } 45 46 public int messageCount() 47 { 48 return messageCount; 49 } 50 51 public void clear() 52 { 53 caughtRollback = false; 54 messageCount = 0; 55 } 56 } 57 | Popular Tags |