Re: [JBoss-dev] Cluster aware Scheduler
Makes sense. Thanks for the clarification. Please let me know when you have the patch, I would be glad to review it if Sacha is OK with it. -=Ivelin=- - Original Message - From: Marcus Redeker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 1:39 AM Subject: RE: [JBoss-dev] Cluster aware Scheduler Hi this is the javadoc snippet explaining it: * @param pDoItNow If true the schedule will be stopped without waiting for the next * scheduled call otherwise the next call will be performed before * the schedule is stopped. --Marcus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ivelin Ivanov Sent: Wednesday, August 13, 2003 4:45 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-dev] Cluster aware Scheduler Marcus, can you please clarify what is the purpose of the boolean parameter passed to stopSchedule() ? -=Ivelin=- - Original Message - From: Marcus Redeker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 5:44 PM Subject: RE: [JBoss-dev] Cluster aware Scheduler Yes it works without a problem. Just copied the two extra packages from JBoss3.2.2 clustering back to JBoss3.2.1 and that was it. Currently the HASingletonController can only invoke target startMethod and targetStopMethod with NO parameters. I will change that so I can invoke the stopSchedule(true) on the Scheduler MBean. Once this is done I will submit tha patch in case you guys want to integrate it into 3.2.2 Thanks again to everybody and keep following the white rabbit.. --Marcus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sacha Labourey Sent: Tuesday, August 12, 2003 11:37 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Cluster aware Scheduler I think that shouldn't be too much of a problem as it is based on the framework whose interfaces haven't changed between 3.2.1 and 3.2.2. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: mardi, 12 août 2003 23:29 To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Cluster aware Scheduler Never mind. I found the stuff in the JBoss 3.2.2 source tree. Thanks again! Sasha: Is it possible to get the HASingleton to work in JBoss 3.2.1? Or did the clustering change too much? Thanks, --Marcus -Original Message- From: Marcus Redeker [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 10:57 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-dev] Cluster aware Scheduler Vladyslav, thanks for tha link. That is exactly what I am looking for. The problem is that we are planning to go in production in 2 weeks on JBoss 3.2.1 and the service seems to be implemented in JBoss 3.2.2. Do you have the source code to the mentioned HASingletonController and the HASingletonMBeanExample? I could use that and implement the solution I suggested just that the SingletonController activates or deactivate the scheduler on the master instance. Thanks a lot. --Marcus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vladyslav Kosulin Sent: Tuesday, August 12, 2003 9:27 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-dev] Cluster aware Scheduler Look at http://www.cocoonhive.org/articles/jboss/20030610/hasingleton.html Marcus Redeker wrote: All, I am looking for a cluster aware scheduler service. The scenario is that I have two JBoss instances running in a cluster and I have a scheduler service running on one of them since it is fatal if my schedulable object would be invoked twice on both instances. But also I would like to have a failover which means that in case the instance which is running the scheduler service is going down I want another instance in the cluster to take over and activate the scheduler. Is anything in that direction already available? From looking into the source I did not see anything. If not I would like to implement some kind of HASchedulerMBean. This could work the way that you would deploy your scheduler service with StartAtStartup = false and the HASchedulerMBean would invoke the start depending on which server is available in the cluster. Sacha: Do you have a tip for me where to look in the clustering classes to get a head start? Thanks, --Marcus --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals
Re: [JBoss-dev] Cluster aware Scheduler
Look at http://www.cocoonhive.org/articles/jboss/20030610/hasingleton.html Marcus Redeker wrote: All, I am looking for a cluster aware scheduler service. The scenario is that I have two JBoss instances running in a cluster and I have a scheduler service running on one of them since it is fatal if my schedulable object would be invoked twice on both instances. But also I would like to have a failover which means that in case the instance which is running the scheduler service is going down I want another instance in the cluster to take over and activate the scheduler. Is anything in that direction already available? From looking into the source I did not see anything. If not I would like to implement some kind of HASchedulerMBean. This could work the way that you would deploy your scheduler service with StartAtStartup = false and the HASchedulerMBean would invoke the start depending on which server is available in the cluster. Sacha: Do you have a tip for me where to look in the clustering classes to get a head start? Thanks, --Marcus --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] Cluster aware Scheduler
Never mind. I found the stuff in the JBoss 3.2.2 source tree. Thanks again! Sasha: Is it possible to get the HASingleton to work in JBoss 3.2.1? Or did the clustering change too much? Thanks, --Marcus -Original Message- From: Marcus Redeker [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 10:57 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-dev] Cluster aware Scheduler Vladyslav, thanks for tha link. That is exactly what I am looking for. The problem is that we are planning to go in production in 2 weeks on JBoss 3.2.1 and the service seems to be implemented in JBoss 3.2.2. Do you have the source code to the mentioned HASingletonController and the HASingletonMBeanExample? I could use that and implement the solution I suggested just that the SingletonController activates or deactivate the scheduler on the master instance. Thanks a lot. --Marcus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vladyslav Kosulin Sent: Tuesday, August 12, 2003 9:27 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-dev] Cluster aware Scheduler Look at http://www.cocoonhive.org/articles/jboss/20030610/hasingleton.html Marcus Redeker wrote: All, I am looking for a cluster aware scheduler service. The scenario is that I have two JBoss instances running in a cluster and I have a scheduler service running on one of them since it is fatal if my schedulable object would be invoked twice on both instances. But also I would like to have a failover which means that in case the instance which is running the scheduler service is going down I want another instance in the cluster to take over and activate the scheduler. Is anything in that direction already available? From looking into the source I did not see anything. If not I would like to implement some kind of HASchedulerMBean. This could work the way that you would deploy your scheduler service with StartAtStartup = false and the HASchedulerMBean would invoke the start depending on which server is available in the cluster. Sacha: Do you have a tip for me where to look in the clustering classes to get a head start? Thanks, --Marcus --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet _072303_01/01 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] Cluster aware Scheduler
I think that shouldn't be too much of a problem as it is based on the framework whose interfaces haven't changed between 3.2.1 and 3.2.2. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: mardi, 12 août 2003 23:29 To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Cluster aware Scheduler Never mind. I found the stuff in the JBoss 3.2.2 source tree. Thanks again! Sasha: Is it possible to get the HASingleton to work in JBoss 3.2.1? Or did the clustering change too much? Thanks, --Marcus -Original Message- From: Marcus Redeker [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 10:57 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-dev] Cluster aware Scheduler Vladyslav, thanks for tha link. That is exactly what I am looking for. The problem is that we are planning to go in production in 2 weeks on JBoss 3.2.1 and the service seems to be implemented in JBoss 3.2.2. Do you have the source code to the mentioned HASingletonController and the HASingletonMBeanExample? I could use that and implement the solution I suggested just that the SingletonController activates or deactivate the scheduler on the master instance. Thanks a lot. --Marcus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vladyslav Kosulin Sent: Tuesday, August 12, 2003 9:27 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-dev] Cluster aware Scheduler Look at http://www.cocoonhive.org/articles/jboss/20030610/hasingleton.html Marcus Redeker wrote: All, I am looking for a cluster aware scheduler service. The scenario is that I have two JBoss instances running in a cluster and I have a scheduler service running on one of them since it is fatal if my schedulable object would be invoked twice on both instances. But also I would like to have a failover which means that in case the instance which is running the scheduler service is going down I want another instance in the cluster to take over and activate the scheduler. Is anything in that direction already available? From looking into the source I did not see anything. If not I would like to implement some kind of HASchedulerMBean. This could work the way that you would deploy your scheduler service with StartAtStartup = false and the HASchedulerMBean would invoke the start depending on which server is available in the cluster. Sacha: Do you have a tip for me where to look in the clustering classes to get a head start? Thanks, --Marcus --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet _072303_01/01 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] Cluster aware Scheduler
All, I am looking for a cluster aware scheduler service. The scenario is that I have two JBoss instances running in a cluster and I have a scheduler service running on one of them since it is fatal if my schedulable object would be invoked twice on both instances. But also I would like to have a failover which means that in case the instance which is running the scheduler service is going down I want another instance in the cluster to take over and activate the scheduler. Is anything in that direction already available? From looking into the source I did not see anything. If not I would like to implement some kind of HASchedulerMBean. This could work the way that you would deploy your scheduler service with StartAtStartup = false and the HASchedulerMBean would invoke the start depending on which server is available in the cluster. Sacha: Do you have a tip for me where to look in the clustering classes to get a head start? Thanks, --Marcus --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
RE: [JBoss-dev] Cluster aware Scheduler
Yes it works without a problem. Just copied the two extra packages from JBoss3.2.2 clustering back to JBoss3.2.1 and that was it. Currently the HASingletonController can only invoke target startMethod and targetStopMethod with NO parameters. I will change that so I can invoke the stopSchedule(true) on the Scheduler MBean. Once this is done I will submit tha patch in case you guys want to integrate it into 3.2.2 Thanks again to everybody and keep following the white rabbit.. --Marcus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sacha Labourey Sent: Tuesday, August 12, 2003 11:37 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Cluster aware Scheduler I think that shouldn't be too much of a problem as it is based on the framework whose interfaces haven't changed between 3.2.1 and 3.2.2. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: mardi, 12 août 2003 23:29 To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Cluster aware Scheduler Never mind. I found the stuff in the JBoss 3.2.2 source tree. Thanks again! Sasha: Is it possible to get the HASingleton to work in JBoss 3.2.1? Or did the clustering change too much? Thanks, --Marcus -Original Message- From: Marcus Redeker [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 10:57 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-dev] Cluster aware Scheduler Vladyslav, thanks for tha link. That is exactly what I am looking for. The problem is that we are planning to go in production in 2 weeks on JBoss 3.2.1 and the service seems to be implemented in JBoss 3.2.2. Do you have the source code to the mentioned HASingletonController and the HASingletonMBeanExample? I could use that and implement the solution I suggested just that the SingletonController activates or deactivate the scheduler on the master instance. Thanks a lot. --Marcus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vladyslav Kosulin Sent: Tuesday, August 12, 2003 9:27 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-dev] Cluster aware Scheduler Look at http://www.cocoonhive.org/articles/jboss/20030610/hasingleton.html Marcus Redeker wrote: All, I am looking for a cluster aware scheduler service. The scenario is that I have two JBoss instances running in a cluster and I have a scheduler service running on one of them since it is fatal if my schedulable object would be invoked twice on both instances. But also I would like to have a failover which means that in case the instance which is running the scheduler service is going down I want another instance in the cluster to take over and activate the scheduler. Is anything in that direction already available? From looking into the source I did not see anything. If not I would like to implement some kind of HASchedulerMBean. This could work the way that you would deploy your scheduler service with StartAtStartup = false and the HASchedulerMBean would invoke the start depending on which server is available in the cluster. Sacha: Do you have a tip for me where to look in the clustering classes to get a head start? Thanks, --Marcus --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet _072303_01/01 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet _072303_01/01 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
RE: [JBoss-dev] Cluster aware Scheduler
Good idea, being able to submit even fixed parameters is a good idea. Cheers, sacha -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marcus Redeker Sent: mercredi, 13. août 2003 00:45 To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Cluster aware Scheduler Yes it works without a problem. Just copied the two extra packages from JBoss3.2.2 clustering back to JBoss3.2.1 and that was it. Currently the HASingletonController can only invoke target startMethod and targetStopMethod with NO parameters. I will change that so I can invoke the stopSchedule(true) on the Scheduler MBean. Once this is done I will submit tha patch in case you guys want to integrate it into 3.2.2 Thanks again to everybody and keep following the white rabbit.. --Marcus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sacha Labourey Sent: Tuesday, August 12, 2003 11:37 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Cluster aware Scheduler I think that shouldn't be too much of a problem as it is based on the framework whose interfaces haven't changed between 3.2.1 and 3.2.2. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: mardi, 12 août 2003 23:29 To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Cluster aware Scheduler Never mind. I found the stuff in the JBoss 3.2.2 source tree. Thanks again! Sasha: Is it possible to get the HASingleton to work in JBoss 3.2.1? Or did the clustering change too much? Thanks, --Marcus -Original Message- From: Marcus Redeker [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 10:57 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-dev] Cluster aware Scheduler Vladyslav, thanks for tha link. That is exactly what I am looking for. The problem is that we are planning to go in production in 2 weeks on JBoss 3.2.1 and the service seems to be implemented in JBoss 3.2.2. Do you have the source code to the mentioned HASingletonController and the HASingletonMBeanExample? I could use that and implement the solution I suggested just that the SingletonController activates or deactivate the scheduler on the master instance. Thanks a lot. --Marcus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vladyslav Kosulin Sent: Tuesday, August 12, 2003 9:27 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-dev] Cluster aware Scheduler Look at http://www.cocoonhive.org/articles/jboss/20030610/hasingleton.html Marcus Redeker wrote: All, I am looking for a cluster aware scheduler service. The scenario is that I have two JBoss instances running in a cluster and I have a scheduler service running on one of them since it is fatal if my schedulable object would be invoked twice on both instances. But also I would like to have a failover which means that in case the instance which is running the scheduler service is going down I want another instance in the cluster to take over and activate the scheduler. Is anything in that direction already available? From looking into the source I did not see anything. If not I would like to implement some kind of HASchedulerMBean. This could work the way that you would deploy your scheduler service with StartAtStartup = false and the HASchedulerMBean would invoke the start depending on which server is available in the cluster. Sacha: Do you have a tip for me where to look in the clustering classes to get a head start? Thanks, --Marcus --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet _072303_01/01 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet _072303_01/01 ___ JBoss
RE: [JBoss-dev] Cluster aware Scheduler
Hi this is the javadoc snippet explaining it: * @param pDoItNow If true the schedule will be stopped without waiting for the next * scheduled call otherwise the next call will be performed before * the schedule is stopped. --Marcus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ivelin Ivanov Sent: Wednesday, August 13, 2003 4:45 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-dev] Cluster aware Scheduler Marcus, can you please clarify what is the purpose of the boolean parameter passed to stopSchedule() ? -=Ivelin=- - Original Message - From: Marcus Redeker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 5:44 PM Subject: RE: [JBoss-dev] Cluster aware Scheduler Yes it works without a problem. Just copied the two extra packages from JBoss3.2.2 clustering back to JBoss3.2.1 and that was it. Currently the HASingletonController can only invoke target startMethod and targetStopMethod with NO parameters. I will change that so I can invoke the stopSchedule(true) on the Scheduler MBean. Once this is done I will submit tha patch in case you guys want to integrate it into 3.2.2 Thanks again to everybody and keep following the white rabbit.. --Marcus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sacha Labourey Sent: Tuesday, August 12, 2003 11:37 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Cluster aware Scheduler I think that shouldn't be too much of a problem as it is based on the framework whose interfaces haven't changed between 3.2.1 and 3.2.2. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: mardi, 12 août 2003 23:29 To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Cluster aware Scheduler Never mind. I found the stuff in the JBoss 3.2.2 source tree. Thanks again! Sasha: Is it possible to get the HASingleton to work in JBoss 3.2.1? Or did the clustering change too much? Thanks, --Marcus -Original Message- From: Marcus Redeker [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 10:57 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-dev] Cluster aware Scheduler Vladyslav, thanks for tha link. That is exactly what I am looking for. The problem is that we are planning to go in production in 2 weeks on JBoss 3.2.1 and the service seems to be implemented in JBoss 3.2.2. Do you have the source code to the mentioned HASingletonController and the HASingletonMBeanExample? I could use that and implement the solution I suggested just that the SingletonController activates or deactivate the scheduler on the master instance. Thanks a lot. --Marcus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vladyslav Kosulin Sent: Tuesday, August 12, 2003 9:27 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-dev] Cluster aware Scheduler Look at http://www.cocoonhive.org/articles/jboss/20030610/hasingleton.html Marcus Redeker wrote: All, I am looking for a cluster aware scheduler service. The scenario is that I have two JBoss instances running in a cluster and I have a scheduler service running on one of them since it is fatal if my schedulable object would be invoked twice on both instances. But also I would like to have a failover which means that in case the instance which is running the scheduler service is going down I want another instance in the cluster to take over and activate the scheduler. Is anything in that direction already available? From looking into the source I did not see anything. If not I would like to implement some kind of HASchedulerMBean. This could work the way that you would deploy your scheduler service with StartAtStartup = false and the HASchedulerMBean would invoke the start depending on which server is available in the cluster. Sacha: Do you have a tip for me where to look in the clustering classes to get a head start? Thanks, --Marcus --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet _072303_01/01 ___ JBoss-Development mailing list [EMAIL PROTECTED] https
Re: [JBoss-dev] Cluster aware Scheduler
Marcus, can you please clarify what is the purpose of the boolean parameter passed to stopSchedule() ? -=Ivelin=- - Original Message - From: Marcus Redeker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 5:44 PM Subject: RE: [JBoss-dev] Cluster aware Scheduler Yes it works without a problem. Just copied the two extra packages from JBoss3.2.2 clustering back to JBoss3.2.1 and that was it. Currently the HASingletonController can only invoke target startMethod and targetStopMethod with NO parameters. I will change that so I can invoke the stopSchedule(true) on the Scheduler MBean. Once this is done I will submit tha patch in case you guys want to integrate it into 3.2.2 Thanks again to everybody and keep following the white rabbit.. --Marcus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sacha Labourey Sent: Tuesday, August 12, 2003 11:37 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Cluster aware Scheduler I think that shouldn't be too much of a problem as it is based on the framework whose interfaces haven't changed between 3.2.1 and 3.2.2. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: mardi, 12 août 2003 23:29 To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Cluster aware Scheduler Never mind. I found the stuff in the JBoss 3.2.2 source tree. Thanks again! Sasha: Is it possible to get the HASingleton to work in JBoss 3.2.1? Or did the clustering change too much? Thanks, --Marcus -Original Message- From: Marcus Redeker [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 12, 2003 10:57 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-dev] Cluster aware Scheduler Vladyslav, thanks for tha link. That is exactly what I am looking for. The problem is that we are planning to go in production in 2 weeks on JBoss 3.2.1 and the service seems to be implemented in JBoss 3.2.2. Do you have the source code to the mentioned HASingletonController and the HASingletonMBeanExample? I could use that and implement the solution I suggested just that the SingletonController activates or deactivate the scheduler on the master instance. Thanks a lot. --Marcus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vladyslav Kosulin Sent: Tuesday, August 12, 2003 9:27 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-dev] Cluster aware Scheduler Look at http://www.cocoonhive.org/articles/jboss/20030610/hasingleton.html Marcus Redeker wrote: All, I am looking for a cluster aware scheduler service. The scenario is that I have two JBoss instances running in a cluster and I have a scheduler service running on one of them since it is fatal if my schedulable object would be invoked twice on both instances. But also I would like to have a failover which means that in case the instance which is running the scheduler service is going down I want another instance in the cluster to take over and activate the scheduler. Is anything in that direction already available? From looking into the source I did not see anything. If not I would like to implement some kind of HASchedulerMBean. This could work the way that you would deploy your scheduler service with StartAtStartup = false and the HASchedulerMBean would invoke the start depending on which server is available in the cluster. Sacha: Do you have a tip for me where to look in the clustering classes to get a head start? Thanks, --Marcus --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet _072303_01/01 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet _072303_01/01 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data
RE: [JBoss-dev] Cluster aware Scheduler
Vladyslav, thanks for tha link. That is exactly what I am looking for. The problem is that we are planning to go in production in 2 weeks on JBoss 3.2.1 and the service seems to be implemented in JBoss 3.2.2. Do you have the source code to the mentioned HASingletonController and the HASingletonMBeanExample? I could use that and implement the solution I suggested just that the SingletonController activates or deactivate the scheduler on the master instance. Thanks a lot. --Marcus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vladyslav Kosulin Sent: Tuesday, August 12, 2003 9:27 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-dev] Cluster aware Scheduler Look at http://www.cocoonhive.org/articles/jboss/20030610/hasingleton.html Marcus Redeker wrote: All, I am looking for a cluster aware scheduler service. The scenario is that I have two JBoss instances running in a cluster and I have a scheduler service running on one of them since it is fatal if my schedulable object would be invoked twice on both instances. But also I would like to have a failover which means that in case the instance which is running the scheduler service is going down I want another instance in the cluster to take over and activate the scheduler. Is anything in that direction already available? From looking into the source I did not see anything. If not I would like to implement some kind of HASchedulerMBean. This could work the way that you would deploy your scheduler service with StartAtStartup = false and the HASchedulerMBean would invoke the start depending on which server is available in the cluster. Sacha: Do you have a tip for me where to look in the clustering classes to get a head start? Thanks, --Marcus --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet _072303_01/01 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development