User: jules_gosnell
Date: 02/02/19 16:58:54
Modified: jetty/src/main/org/jboss/jetty/session
CoarseDistributedStore.java
Log:
improve session storing logic
Revision Changes Path
1.9 +24 -19
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.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- CoarseDistributedStore.java 19 Feb 2002 23:33:15 -0000 1.8
+++ CoarseDistributedStore.java 20 Feb 2002 00:58:54 -0000 1.9
@@ -5,7 +5,7 @@
* See terms of license at gnu.org.
*/
-// $Id: CoarseDistributedStore.java,v 1.8 2002/02/19 23:33:15 jules_gosnell Exp $
+// $Id: CoarseDistributedStore.java,v 1.9 2002/02/20 00:58:54 jules_gosnell Exp $
//----------------------------------------
@@ -120,30 +120,35 @@
if (_home==null)
return;
- // this is clumsy... - TODO
try
{
- CoarseHttpSession ejb=_home.findByPrimaryKey(id);
- ejb.setData((CoarseHttpSessionData)data);
- return;
+ try
+ {
+ CoarseHttpSession ejb=_home.findByPrimaryKey(id);
+ ejb.setData((CoarseHttpSessionData)data);
+ return;
+ }
+ catch (FinderException e)
+ {
+ // I'm assuming that nothing is wrong - this is being
+ // created for the first time..
+ }
+
+ try
+ {
+ CoarseHttpSession ejb=_home.create((CoarseHttpSessionData)data);
+ ejb=null;
+ return;
+ }
+ catch (CreateException e)
+ {
+ _log.warn("could not save session: "+id);
+ }
}
catch (RemoteException e)
- {}
- catch (FinderException e)
- {}
-
- try
{
- CoarseHttpSession ejb=_home.create((CoarseHttpSessionData)data);
- ejb=null;
- return;
+ _log.error("problem talking to EJB container", e);
}
- catch (RemoteException e)
- {}
- catch (CreateException e)
- {}
-
- _log.warn("could not save session: "+id);
}
public void
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development