User: jules_gosnell
Date: 02/02/12 13:45:30
Modified: jetty/src/main/org/jboss/jetty/session
CoarseDistributedStore.java
Log:
moving forward again...
Revision Changes Path
1.6 +21 -2
contrib/jetty/src/main/org/jboss/jetty/session/CoarseDistributedStore.java
Index: CoarseDistributedStore.java
===================================================================
RCS file:
/cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/session/CoarseDistributedStore.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- CoarseDistributedStore.java 3 Feb 2002 00:14:26 -0000 1.5
+++ CoarseDistributedStore.java 12 Feb 2002 21:45:30 -0000 1.6
@@ -5,7 +5,7 @@
* See terms of license at gnu.org.
*/
-// $Id: CoarseDistributedStore.java,v 1.5 2002/02/03 00:14:26 jules_gosnell Exp $
+// $Id: CoarseDistributedStore.java,v 1.6 2002/02/12 21:45:30 jules_gosnell Exp $
//----------------------------------------
@@ -86,6 +86,8 @@
try
{
+ // find and remove should be atomic - they should be packaged
+ // into one method on EJB...
CoarseHttpSession ejb=_home.findByPrimaryKey(id);
if (ejb!=null)
@@ -99,7 +101,9 @@
}
}
catch (Throwable e)
- {}
+ {
+ _log.warn("session not found: "+e);
+ }
return data;
}
@@ -116,15 +120,30 @@
if (_home==null)
return;
+ // this is clumsy... - TODO
+ try
+ {
+ CoarseHttpSession ejb=_home.findByPrimaryKey(id);
+ ejb.setData((CoarseHttpSessionData)data);
+ return;
+ }
+ catch (RemoteException e)
+ {}
+ catch (FinderException e)
+ {}
+
try
{
CoarseHttpSession ejb=_home.create((CoarseHttpSessionData)data);
ejb=null;
+ return;
}
catch (RemoteException e)
{}
catch (CreateException e)
{}
+
+ _log.warn("WARNING: could not save session: "+id);
}
public void
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development