Hello! Thank you for advice ! I will think about restructure my application.
Users of my application can upload comma separeted files, that are imported in database. This process can take 10-30 minutes, if file is large, so new Thread is started with import process and user is redirected to refreshing page, that displays status of import. Information about import process is stored in static variable (import thread and status jsp can access this information). If it happens in one JVM, everething is ok. But what will be in the case of load balancing? Thank you, Igor ----- Original Message ----- From: "Filip Hanik - Dev" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, September 30, 2004 6:36 PM Subject: Re: Synchronization in cluster > sounds like your system needs a little rethinking, if you have singleton access to your DB. > That is why the DBs are transactional, so that you can use connection pooling. > > you can use JGroups, but you might run into serious performance problems, not because of JGroups, but because of the fact that you > want to lock several tomcats in a distributed lock when accessing the DB. > > Filip > > > ----- Original Message ----- > From: "Igor" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, September 30, 2004 10:16 AM > Subject: Re: Synchronization in cluster > > > Hello! > > Thank you for answers! I will try to use JGroups > > We have data, that is often need to be read. And it is rarely written. > It is implemented using Singleton pattern. > > Synchronization is used in several parts of web application. > It is used mostly to access database > > Thank you, > Igor > > ----- Original Message ----- > From: "LERBSCHER Jean-Pierre" <[EMAIL PROTECTED]> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]> > Sent: Thursday, September 30, 2004 10:41 AM > Subject: RE : Synchronization in cluster > > > Hi, > What are your needs? Why distributed singleton or distributed locking are so > important ? > Perhaps you can use Database to implement locking functionality and Jgroups > library to replicate state (or distributed singleton) across members of a > group (see www.jgroups.org). > > >
