/** * checks the return type of method matches the bean's remote interface */ public boolean hasRemoteReturnType(BeanMetaData bean, Method m) { try { Class clazz = classloader.loadClass(bean.getRemote()); return m.getReturnType().isAssignableFrom(clazz); } catch (Exception e) { // e.printStackTrace(); return false; } }
String remoteName = bean.getRemote();
String remoteName = bean.getRemote();
if(bmd.getRemote() == null)