1 25 26 package org.objectweb.jonas.jtests.clients.exception; 27 import org.objectweb.jonas.jtests.beans.beanexc.AccountS; 28 import org.objectweb.jonas.jtests.beans.beanexc.AccountSHome; 29 30 abstract public class A_CatcherSession extends A_Catcher { 31 32 public A_CatcherSession(String name) { 33 super(name); 34 } 35 36 39 public AccountS getAccountS(int i) { 40 AccountS acs = null; 41 try { 42 acs = getHome().create(); 43 } catch (Exception e) { 44 fail("Exception in getAccountS: "+e); 46 } 47 return acs; 48 } 49 50 53 public abstract AccountSHome getHome(); 54 } 55 | Popular Tags |