{
try
{
InitialContext ctx = new InitialContext();
CtsCmp2LocalHome home = (CtsCmp2LocalHome) ctx.lookup("java:comp/env/ejb/CtsCmp2LocalHome");
CtsCmp2Local bean = home.create("key1", "data1");
System.out.print("java:comp/env/ejb/CtsCmp2LocalHome bean: "+bean);
String data = bean.getData();
Class[] sig = {};
Method getMoreData = bean.getClass().getMethod("getMoreData", sig);
Object[] args = {};
data = (String) getMoreData.invoke(bean, args);
System.out.print("Called getMoreData: "+data);
bean.remove();
System.out.print("java:comp/env/ejb/CtsCmp2LocalHome passed");
}
catch(Exception e)
{
throw new ServerException("testV2 failed", e);