Hello!

Do you know of a way to initialize ressources (like an external scheduler or some 
initial database calls) in an application deployed in a cluster?

My current approach (which fails for clustered deployment) was to have a startup 
servlet (deployed in a .war), which calls an initialization method in a stateless 
session bean (deployed in a -ejb.jar in the same .ear). But when deploying the ear to 
a cluster, the startup servlet is executed in each cluster (of course it is) and 
therefore the initialization tasks are triggered in both clusters. But they are not 
idempotent, so calling these initializations multiple times is wrong for my 
application.

Any suggestions are welcome...

Best regards and thanks,
   Mattin 

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to