1 45 package org.openejb.test.stateful; 46 47 import java.util.Properties ; 48 49 import javax.ejb.EJBMetaData ; 50 import javax.ejb.Handle ; 51 import javax.ejb.HomeHandle ; 52 import javax.naming.Context ; 53 import javax.naming.InitialContext ; 54 55 import org.openejb.test.TestManager; 56 57 62 public abstract class StatefulTestClient extends org.openejb.test.NamedTestCase{ 63 64 protected InitialContext initialContext; 65 66 protected EJBMetaData ejbMetaData; 67 protected HomeHandle ejbHomeHandle; 68 protected Handle ejbHandle; 69 protected Integer ejbPrimaryKey; 70 71 public StatefulTestClient(String name){ 72 super("Stateful."+name); 73 } 74 75 79 protected void setUp() throws Exception { 80 81 Properties properties = TestManager.getServer().getContextEnvironment(); 82 properties.put(Context.SECURITY_PRINCIPAL, "STATEFUL_test00_CLIENT"); 83 properties.put(Context.SECURITY_CREDENTIALS, "STATEFUL_test00_CLIENT"); 84 85 initialContext = new InitialContext (properties); 86 } 87 88 } 89 | Popular Tags |