|> I don't understand the second point, what do you mean the calls will be
|> serialized? please explain,
|>
|>
|
|My point was that if you're accessing the same entity with the same primary
|key, the threads will be all queued up waiting on eachother.  Only one

it better! that is the spec!

that's the way it is supposed to work, if it doesn't its a bug

|thread will be able to run at one time since it would have a transactional
|lock and/or method lock.  Thus it doesn't matter if you run your test with
|2, 5, 10, 50, 1000 concurrent threads, you will always have the
|same result.

we hope so :)

|Plus, you're not testing concurrent access of the cache, since all
|executions would happen in order.

we *are* testing concurrent threads, and we hope they serialize.

|I'm glad you got rid of the InstancePool :)

yes does get rid of the complications (enjoyed your comments in the code
though :)

|On a separate topic, why does AbstractInstanceCache.get(), have to
|unschedulePassivation?  If a bean is not in the cache, why can't you just
|allocate a new one?  This seems like another unnecessary complication.

actually (working from memory) I thought that was one of the elegant things
done by Simone, it works for both stateful and entity.

Yes, sure, for entity you can just allocate a new instance and let ejbLoad
do its magic (reload state) but for the Stateful that has got to work (and
it does kudos to Simone there).  It's quite ok actually.

|Can't wait to try out the new cache stuff....

coming at cha! got to put the last fix in...

I wasted a morning at INS but I am a legal alien in the US now

marcf
|
|
|Regards,
|
|Bill
|
|PS.  Good luck with INS.  One of my french friends was lucky enough to win
|the green card lottery.  Maybe you will too?
|
|
|
|_______________________________________________
|Jboss-development mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-development



_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to