I just identified an 'interesting' change in processing of sar files between AS
4.X/5.0.BetaX and As 5.0.CR1. Here's the setup:
I have a sar which embeds 8 different wars. The listeners configured in the respective
web.xml files are implemented in 8 different jars also embedded in the sar. All of the
listeners refer to a class Sequencer which is supplied in one of the 8 embedded jars. This
class is used to sequence callbacks registered by the lsiteners (I know, I could probably
do this using a jboss web.xml but that's another story and besides ...)
In the old AS versions the listeners all saw the same copy of class Sequencer. Ok,
specifically, modifications to static data defined by this class were visible to all
listeners so I guess that means they are using the same class. In 5.0.CR1 they all get
their own copy of the class -- well at least I assume that is what is happening. What I
have observed is that they are all seeing their own version of the static fields of
Sequencer.
So that kind of snookers my sequencing code. Rather a drastic change to the semantics I
feel. Any comments on whether this was intended or accidental? Can we go back to the
previous behaviour?
.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4162143#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...