From: DWebster <do-...@jb...> - 2005-11-06 21:39:43
|
Answering my question, but I've got it working now. Things are a bit pickier now in the way one passes a method call via the Proxy now. The code I was using before to call a method taking no parameters was : InitialContext ctx = new InitialContext(); Object obj = ctx.lookup(invokeObj.getClassName()); return(obj.getClass().getMethod("methodName",class[0]{void.class}).invoke(obj,Object[] {})); For whatever reason that seemed to work, but the class[0]{void.class} is bad unless the method declaration in the EJB is explicitly methodName(void);?? How odd is that? So if you have methodName() remove the void.class from the getMethod call and leave it just {}. Duh.... The ProxyDeployer can now find the method. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3905673#3905673 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3905673 |