// The narrow(...) call requires generated EJB stubs. Tuscany binding.ejb doesn't the stubs
CatalogEJBHome home = (CatalogEJBHome)PortableRemoteObject.narrow(o, CatalogEJBHome.class);
// The following call will hang with SUN jdk1.6.0_05, please use SUN or IBM jdk 1.5.x instead
CatalogEJBRemote catalog = home.create();
Vegetable items[] = catalog.get();
for (Vegetable item : items) {
System.out.println(item.getName() + " " + item.getPrice());
}
}