1 22 package org.jboss.ejb3.test.stateful; 23 24 import org.jboss.logging.Logger; 25 26 30 public class StatefulInvoker extends Thread  31 { 32 private static final Logger log = Logger.getLogger(StatefulInvoker.class); 33 34 Exception exception = null; 35 36 ConcurrentStateful stateful; 37 38 public StatefulInvoker(ConcurrentStateful stateful) 39 { 40 this.stateful = stateful; 41 } 42 43 public Exception getException() 44 { 45 return exception; 46 } 47 48 public void run() 49 { 50 try 51 { 52 stateful.setState("state"); 53 stateful.getState(); 54 } 55 catch(Exception e) 56 { 57 exception = e; 58 } 59 } 60 61 } 62 | Popular Tags |