Hi, I get a javax.ejb.EJBException: Unable to invoke TimerMBean on delete: ReflectionException: null Cause: java.lang.NoSuchMethodException: Unable to locate method for: removeNotification(,int)
I wonder if this------------------------------------------------------------------------ -------^ is the problem? It seems to be not the call I do, is it? The timerjobid of course is filled in my programm by calls of addNotification. Any idea? Best regards, Carsten Hammer This is on 14:27:32,141 INFO [Server] Release ID: JBoss [WonderLand] 3.2.0RC3 (build: CVSTag=Branch_3_2 date=200303011442) The sourcecode of my call follows: List lServers = MBeanServerFactory.findMBeanServer(null); MBeanServer lServer = (MBeanServer) lServers.get(0); ObjectInstance lTimer = null; Integer timerjobid = new Integer(1); try { lTimer = lServer.getObjectInstance(new ObjectName("DefaultDomain", "service", "timer")); } catch (MalformedObjectNameException ex) { throw new EJBException("Unable to get TimerMBean: " + ex.toString()); } catch (InstanceNotFoundException ex) { throw new EJBException("Unable to get TimerMBean: " + ex.toString()); } try { lServer.invoke(lTimer.getObjectName(), "removeNotification", new Object[]{ timerjobid } , new String[]{Integer.TYPE.getName()} ); } catch (InstanceNotFoundException ex) { throw new EJBException("Unable to invoke TimerMBean on delete: " + ex.toString()); } catch (MBeanException ex) { throw new EJBException("Unable to invoke TimerMBean on delete: " + ex.toString()); } catch (ReflectionException ex) { throw new EJBException("Unable to invoke TimerMBean on delete: " + ex.toString()); } ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user