[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-cvs-commits
Subject: [jboss-cvs] jbossmx/src/main/org/jboss/ha/hasessionstate/server HASessionStateImpl.java
From: Sacha Labourey <slaboure () users ! sourceforge ! net>
Date: 2002-07-31 12:28:47
[Download RAW message or body]
User: slaboure
Date: 02/07/31 05:28:47
Modified: src/main/org/jboss/ha/hasessionstate/server
HASessionStateImpl.java
Log:
Better handling of unknown session retrieving on a given node
Revision Changes Path
1.8 +8 -1 jbossmx/src/main/org/jboss/ha/hasessionstate/server/HASessionStateImpl.java
Index: HASessionStateImpl.java
===================================================================
RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/ha/hasessionstate/server/HASessionStateImpl.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- HASessionStateImpl.java 1 Mar 2002 12:35:31 -0000 1.7
+++ HASessionStateImpl.java 31 Jul 2002 12:28:47 -0000 1.8
@@ -53,7 +53,7 @@
* @see HASessionState
* @author sacha.labourey@cogito-info.ch
* @author <a href="bill@burkecentral.com">Bill Burke</a>
- * @version $Revision: 1.7 $
+ * @version $Revision: 1.8 $
*
* <p><b>Revisions:</b><br>
* <p><b>2002/01/09: billb</b>
@@ -415,6 +415,13 @@
{
Hashtable app = this.getHashtableForApp (appName);
PackagedSession ps = (PackagedSession)app.get (keyId);
+
+ // if the session is not yet available, we simply return null. The persistence manager
+ // will have to take an action accordingly
+ //
+ if (ps == null)
+ return null;
+
synchronized (ps)
{
if (!ps.getOwner ().equals (this.myNodeName))
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic