2 Replies Latest reply: Apr 22, 2002 6:51 AM by Gunnam Prasad RSS

error "addNotification could not be found"

Gunnam Prasad Newbie

Hi,

I am getting "addNotification could not be found" when I am trying to invoke the MBeanServer.invoke .

The actual code that I have here is

Integer actualSchedule = (Integer) _lServer.invoke ( lTimer.getObjectName (), "addNotification",
new Object []
{"I will knock u again",
null, new Date( new Date().getTime() + 1000 ),
new Long (10000)},
new String[] {
"".getClass().getName(),
"java.lang.Object",
Date.class.getName (),
Long.TYPE.getName ()}
);

Can anyone tell what is wrong in this. Any help in this regards is greatly appreciated.

Also can any one explain what all operations can one invoke on a MBeanServer ??

Awaiting ur help.

Regards,
Gunnam