|
I have a session bean calling invoke on a method in
my mbean service that's getting a ReflectionException. If I leave Object[] and
String[] as null, the call works fine. I've taken notes from a few archived
posts about this, but to no success.
--- snip session bean code
public void scheduleTask(FieldObj fInfo) throws RemoteException {
...
List lServers = MBeanServerFactory.findMBeanServer(null); MBeanServer lServer = (MBeanServer) lServers.get(0);
ObjectName name = new ObjectName("DefaultDomain:service=Scheduler"); Object[] args = { new FieldObj() };
String[] sig = { fInfo }; lServer.invoke(name, "scheduleJob", args, sig); ...
--- ServiceMBeanSupport
public void scheduleJob() throws Exception
{
log.debug(Scheduler.class, "calling scheduleJob()"); return;
} public void scheduleJob(FieldObj obj) throws Exception
{
log.debug(Scheduler.class, "calling scheduleJob(obj)"); return;
} --- ServiceMBean interface
public void scheduleJob() throws Exception;
public void scheduleJob(Object obj) throws Exception; Any help much appreciated. |
- Re: [JBoss-user] mbean invoke getting ReflectionException G.L. Grobe
- Re: [JBoss-user] mbean invoke getting ReflectionExcep... Juha-P Lindfors
- Re: [JBoss-user] mbean invoke getting ReflectionExcep... G.L. Grobe
- Re: [JBoss-user] mbean invoke getting ReflectionE... Juha-P Lindfors
