Verbose mode is our friend. It seems unable to handle the commented out code below so I'm replacing it with the non-genericized stuff below it.
| // Genericized code below crashes some Sun JDK compilers; see
| // http://www.jboss.org/index.html?module=bb&op=viewtopic&t=154175
|
| // Map<ClusteredSession<? extends OutgoingDistributableSessionData>, SnapshotManager> sessions = ctx.getCrossContextSessions();
| // if (sessions != null && sessions.size() > 0)
| // {
| // for (Map.Entry<ClusteredSession<? extends OutgoingDistributableSessionData>, SnapshotManager> entry : sessions.entrySet())
| // {
| // entry.getValue().snapshot(entry.getKey());
| // }
| // }
|
| // So, use this non-genericized code instead
| Map sessions = ctx.getCrossContextSessions();
| if (sessions != null && sessions.size() > 0)
| {
| for (Iterator it = sessions.entrySet().iterator(); it.hasNext();)
| {
| Map.Entry entry = (Map.Entry) it.next();
| ((SnapshotManager) entry.getValue()).snapshot((ClusteredSession) entry.getKey());
| }
| }
| }
With that the problem goes away for me.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226063#4226063
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226063
"david.lloyd(a)jboss.com" wrote : If there's no concrete logic behind how it's supposed to work, then it's broken, and we've got a lot of work to do...
OK, let's not exaggerate. ;-)
FS is not rocket science, it has a "natural" logic.
If you have hard time grasping what the code does
we can set up a conf call and I'll try to describe how it's meant to work.
Or if Scott left some design wikis behind when he did original architecture.
Or just simply ask me what some piece does.
But in general, all code is subject to multi-thread access.
Single root - e.g. from deploy/ - should be able to handle multiple threads.
e.g. from ProfileService, HD scanner, JBAS-6330, ...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226059#4226059
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226059