Same here,
I can invoke "start", "isActive", and others but I'm running into this:
[TimerDispatcherBean] javax.management.ReflectionException: The operation
with name addNotifications could not be found
[TimerDispatcherBean] at
javax.management.JMException.<init>(JMException.java:36)
[TimerDispatcherBean] at
javax.management.ReflectionException.<init>(ReflectionException.java:48)
[TimerDispatcherBean] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1620)
[TimerDispatcherBean] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[TimerDispatcherBean] at
de.applicate.startrac.timermail.TimerDispatcherBean.createTimer(TimerDispatc
herBean.java:112)
[TimerDispatcherBean] at java.lang.reflect.Method.invoke(Native Method)
[TimerDispatcherBean] at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles
sSessionContainer.java:472)
[TimerDispatcherBean] at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
ssionInstanceInterceptor.java:87)
[TimerDispatcherBean] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[TimerDispatcherBean] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263)
[TimerDispatcherBean] at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[TimerDispatcherBean] at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:19
0)
[TimerDispatcherBean] at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[TimerDispatcherBean] at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
a:271)
[TimerDispatcherBean] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:392)
[TimerDispatcherBean] at java.lang.reflect.Method.invoke(Native Method)
[TimerDispatcherBean] at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:242)
[TimerDispatcherBean] at
sun.rmi.transport.Transport$1.run(Transport.java:155)
[TimerDispatcherBean] at
java.security.AccessController.doPrivileged(Native Method)
[TimerDispatcherBean] at
sun.rmi.transport.Transport.serviceCall(Transport.java:152)
[TimerDispatcherBean] at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:462)
[TimerDispatcherBean] at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6
62)
[TimerDispatcherBean] at java.lang.Thread.run(Thread.java:498)
Code:
public Integer createTimer(String _TimerType, String _TimerMessage,
Object _UserData, Date _TimerDate, long _TimerRepeat) {
Integer lNewTimer= null;
try {
lNewTimer = (Integer) mbServer.invoke(
lTimer.getObjectName(), // Object on what the method
in invoked
"addNotification", // Method to invoke ->
invoked is (Timer.addNotification)
new Object[]{
_TimerType, // Type of Timer
_TimerMessage, // Timer Message
_UserData, // User object
_TimerDate, // Time when
notification will occur
new Long(Timer.ONE_MINUTE), // How much
time (in msec) are between two notifications
new Long(_TimerRepeat) // How often
will the Timer occur
}, // Params for
addNotification
new String[]{
_TimerType.getClass().getName(),
_TimerMessage.getClass().getName(),
_UserData.getClass().getName(),
_TimerDate.getClass().getName(),
"long",
"long"
} // Signature -> Classes of
the Params above.
);
} catch (Exception Ex) {
Ex.printStackTrace();
}
return lNewTimer;
}
----- Original Message -----
From: "David Crecente" <[EMAIL PROTECTED]>
To: "Lista Jboss" <[EMAIL PROTECTED]>
Sent: Monday, June 11, 2001 6:40 PM
Subject: [JBoss-user] Timer MBan Problem
> Hi all,
> Could someone send me a Timer MBean sample?
>
> Thank you in advance.
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user