james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: locking - unlocking.
Date Thu, 15 Mar 2001 11:12:19 GMT
At 02:20  15/3/01 -0800, Harmeet Bedi wrote:
><modifier> <returntype> someMethod(<parameters>) {
>      try {
>          lock(..);
>          some code
>      } fianlly {
>           unlock(...);
>      }
>}

Much better !

>On this topic, would it make sense to use something like AspectJ, 

Nice in theory but a PITA in practice. Preprocessing tools like this are
brilliant in closed source environments but painful when trying to have
lots of different people building on source.

>or some
>uses-derivation based pattern, or JDK1.3 proxies to enforce locking policies
>across functions ?

I believe 1.3 is out unless the committers vote for it. However there are a
number of projects that have similar code embedded in their distributions
(OpenEJB and jBoss jump to mind) that may be ripped out cleanly.
Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*


---------------------------------------------------------------------
To unsubscribe, e-mail: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Mime
View raw message