hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jakarta-hivemind Wiki] Update of "ImplementingHibernateLongSessions" by Marcus Schulte
Date Mon, 26 Sep 2005 12:53:02 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-hivemind Wiki" for change
notification.

The following page has been changed by Marcus Schulte:
http://wiki.apache.org/jakarta-hivemind/ImplementingHibernateLongSessions

------------------------------------------------------------------------------
  == Overview ==
  
  Basically all one needs to accomplish this is 
-    * a persistence service which I called ClientStateStorage. It can be provided with an
http session as the underlying storage mechanism for production. Otherwise it uses a simple
Map for testing.  
+    * a persistence service which I called ClientStateStorage. It can be provided with an
http session as the underlying storage mechanism for production (via a servlet filter). Otherwise
it uses a simple Map for testing.  
     * a service-model extending AbstractServiceModelImpl which works much like the PooledServiceModel,
the differences being firstly, that it comes with a different lifecycle and, secondly that
it doesn't store service-implementations in a pool common to all clients but in the aforementioned
ClientStateStorage.
  
  
@@ -106, +106 @@

    
  }}}
  
+ 
  In a real web-application you would have to configure the StatefulHivemindFilter for your
controller Servlet.
  
+ == Precautions ==
+    * Take care to avoid concurrent requests to your controller servlet (sync on the session
or something)
+    * While the stuff will work on a cluster, it won't support transparent failover of sessions,
because the Hivemind-Proxies don't serialize instance state.
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org


Mime
View raw message