I'm building an application that might or might not be deployed in a clustered 
environment.  It's an open-source project (http://subetha.tigris.org/) that 
provides a fair amount of latitude to administrators in how they want JBoss 
configured.  Most folks will just have a single standalone instance, but some 
will want a big cluster of nodes.

Our application needs a service that wakes up once a night and performs 
housecleaning.  In a clustered environment, it would naturally be a 
HASingletonService.  However, if I actually use an HASingletonService and place 
dependencies on the cluster serivce, then my application will not run in a 
non-clustered JBoss.

What I need is a way to make a service that will be HASingletonService if 
clustering is enabled, and a normal service if clustering is not enabled.  Is 
this possible?

I realize the temptation to say "just run a single JBoss node with clustered 
configuration".  If I were only deploying SubEtha on my own system, I would be 
fine with that.  However, replacing Mailman with a JBoss-based system becomes a 
harder and harder sell with every service and listening port we include in the 
minimal install.

Thanks,
Jeff Schnitzer

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953321#3953321

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953321

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to