[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-cvs-commits
Subject:    [jboss-cvs] jbossmx/src/main/org/jboss/ejb/plugins StatefulHASessionPersistenceManager.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/ejb/plugins
                        StatefulHASessionPersistenceManager.java
  Log:
  Better handling of unknown session retrieving on a given node
  
  Revision  Changes    Path
  1.7       +5 -1      \
jbossmx/src/main/org/jboss/ejb/plugins/StatefulHASessionPersistenceManager.java  
  Index: StatefulHASessionPersistenceManager.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/ejb/plugins/StatefulHASessionPersistenceManager.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- StatefulHASessionPersistenceManager.java	24 May 2002 06:39:16 -0000	1.6
  +++ StatefulHASessionPersistenceManager.java	31 Jul 2002 12:28:47 -0000	1.7
  @@ -49,7 +49,7 @@
    *  
    *  @author <a href="mailto:sacha.labourey@cogito-info.ch">Sacha Labourey</a>
    *  @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
  - *  @version $Revision: 1.6 $
  + *  @version $Revision: 1.7 $
    *
    *   <p><b>Revisions:</b>
    */
  @@ -139,6 +139,10 @@
            
            // Load state
            PackagedSession state = this.sessionState.getStateWithOwnership \
(this.appName, ctx.getId ());  +         
  +         if (state == null)
  +            throw new ServerException ("Could not activate; failed to recover \
session (session not (yet?) present on this node)");  +         
            in = new SessionObjectInputStream (ctx, new ByteArrayInputStream \
(state.getState ()));;  
            ctx.setInstance ( in.readObject () );
  
  
  


-------------------------------------------------------
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