StatelessSession s = rb.newStatelessSession();
Collection<Object> facts = new LinkedList<Object>();
facts.add(new String("ping"));
System.out.print("ping...");
StatelessSessionResult result = s.executeWithResults(facts);
for (Iterator it = result.iterateObjects(); it.hasNext();) {
Object o = it.next();
if (o instanceof String) {
System.out.println(((String) o));
}
}