[seam-dev] What's the purpose of the method context?

Samuel Mendenhall smendenh at redhat.com
Wed Jun 11 15:17:54 EDT 2008


Is there a JIRA created for this?  Any word I can give to the customer, 
from the discussion so far the solutions/workarounds are mainly in the 
Seam code not customer facing.

Regards,
Samuel

Norman Richards wrote:
>
> On Jun 9, 2008, at 4:47 PM, Dan Allen wrote:
>
>> On Mon, Jun 9, 2008 at 5:40 PM, Gavin King <gavin at hibernate.org> wrote:
>>> This is correct, it prevents some very wrong behavior when the
>>> component is invoked recursively.
>>
>> Hmmm, so its one of those "damned if you do, damned if you don't".
>> There is one possible workaround. The Events component could skip the
>> METHOD context when looking up the observers. The other solution is to
>> use the example I gave and lookup the component outside of the METHOD
>> scope.
>
> The Events context can push a new method context before raising an 
> event and pop it back afterwards to solve the problem, though I 
> suspect that would nullify that SFSB unwrapping protection that it 
> appears the method context interceptor was trying to solve.  I'll have 
> to test it out.
>




More information about the seam-dev mailing list