Skip to main content

Managementrules are not working properly-Timer

7 replies [Last post]
satishtalluri
Offline
Joined: 2008-10-23

Hi,

We are running our application on glassfish enterprize server v2.1. We have created the 4 timer management rules for invoking some actions. But the timer is not working correctly for the sepcified time. I have followed the documentation given in SUN site for creating the management rules. Can any one help for the steps to follow for creating timer rule and it has to invoke for the specified time. In my application it is invoking irregularly.

Early help will be much helpful for me

Thanks
satish

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
satishtalluri
Offline
Joined: 2008-10-23

Thanks it works fine.

I have deployed the rule on the cluster.in this cluster we have four instances are in place. So management rule is fired on all the instances.Do we have any settings that management rule can be fired on only one instance.

Please let me know can we deploy management rule on the cluster.

Thanks
satish

satishtalluri
Offline
Joined: 2008-10-23

Hi,

Thanks again management rule is working fine for the configured time. Can you please explain how it runs if the server is stopped. In our environment it is firing immediately after the server starts.After that it is counting for the next duration. So the exact time i put is not firing...

Please help me

satish

sankara rao bhogi

glassfish@javadesktop.org wrote:
> Hi,
>
> We are running our application on glassfish enterprize server v2.1. We have created the 4 timer management rules for invoking some actions. But the timer is not working correctly for the sepcified time. I have followed the documentation given in SUN site for creating the management rules. Can any one help for the steps to follow for creating timer rule and it has to invoke for the specified time. In my application it is invoking irregularly.
>
> Early help will be much helpful for me
>

Satish,

Could you please send me (sankara at dev java net) your domain.xml with
a small write up on when you want your rules to be invoked?

regards
sankar
> Thanks
> satish
> [Message sent by forum member 'satishtalluri' (satishtalluri)]
>
> http://forums.java.net/jive/thread.jspa?messageID=340713
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

satishtalluri
Offline
Joined: 2008-10-23

Find the file attached.
One rule has to be called at early morning 3:00AM and it should be invoked for every 24 hours.
And the other it is in the evening-17:01 and it should also be invoke for every 24 hours.

And the other one has to invoke at 8:00AM with period of one week.

and one more rule which has to invoke for every 3 hours.

Please let me know how we can configure the above.Let me know if you need any info

sankara rao bhogi

Issue is with the pattern property in the event configuration. Please
change it to

Previously it was using "mm" which signifies, minutes (it follows the
date format as understood by the SimpleDataFormat class).

I did test with this change and it works.

regards
sankar

glassfish@javadesktop.org wrote:
> Find the file attached.
> One rule has to be called at early morning 3:00AM and it should be invoked for every 24 hours.
> And the other it is in the evening-17:01 and it should also be invoke for every 24 hours.
>
> And the other one has to invoke at 8:00AM with period of one week.
>
> and one more rule which has to invoke for every 3 hours.
>
> Please let me know how we can configure the above.Let me know if you need any info
> [Message sent by forum member 'satishtalluri' (satishtalluri)]
>
> http://forums.java.net/jive/thread.jspa?messageID=340761
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

satishtalluri
Offline
Joined: 2008-10-23

Thanks for the help.

I have tried with the following pattern
MM/dd/yyyy/HH:mm:ss
But it is not working .Please advise me can we try with the pattern suggested by you.
I would require the event should be fired on particular time.
Here the event is firing whenever it is deployed.

I will try the pattern given by you and let you know the result.

Thanks
satish

sankara rao bhogi

glassfish@javadesktop.org wrote:
> Thanks for the help.
>
> I have tried with the following pattern
> MM/dd/yyyy/HH:mm:ss
> But it is not working .Please advise me can we try with the pattern suggested by you.
> I would require the event should be fired on particular time.
> Here the event is firing whenever it is deployed.
>
> I will try the pattern given by you and let you know the result.
>

It works properly for me. If you get your configuration right, it would
work. See my management-rule configuration and action being fired
exactly at the configured time.



Send an e-mail to notify customers of invoice
due for payment with in the next two days

[#|2009-04-08T15:52:00.001+0530|INFO|sun-glassfish-comms-server1.5|javax.enterprise.system.stream.out|_ThreadID=15;_ThreadName=Timer-7;|
CacheControlAction :
javax.management.timer.TimerNotification[source=com.sun.appserver.selfmanagement:eventname=timer][type=timer][message=Latemailrule
is called]|#]

regards
sankar

> Thanks
> satish
> [Message sent by forum member 'satishtalluri' (satishtalluri)]
>
> http://forums.java.net/jive/thread.jspa?messageID=341189
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net