1 17 package org.apache.geronimo.itests.naming.ejb.stateless; 18 19 import java.util.Properties ; 20 import javax.naming.InitialContext ; 21 22 import junit.framework.TestCase; 23 24 27 public class StatelessTest extends TestCase { 28 29 public void testWebService() throws Exception { 30 Properties props = new Properties (); 31 32 props.put("java.naming.factory.initial", "org.openejb.client.RemoteInitialContextFactory"); 33 props.put("java.naming.provider.url", "127.0.0.1:4201"); 34 props.put("java.naming.security.principal", "testuser"); 35 props.put("java.naming.security.credentials", "testpassword"); 36 37 StatelessHome home = (StatelessHome) new InitialContext (props).lookup("ejb/StatelessHome"); 38 StatelessObject stateless = home.create(); 39 stateless.testWebService(); 40 } 41 42 } 43 | Popular Tags |