Sorry. The InstanceInterceptor associates a EnterpriseContext
with the request. Before the Instance interceptor, there is no context,
hence you don't know what EJB you're working with, and there's no
metadata. As far as I can tell, the only way for the TxInterceptor to get
the metadata if it runs *before* the InstanceInterceptor would be to copy
the code out of the instance interceptor that loads the context. This
would be pretty dumb.
If, on the other hand, the instance interceptor runs first, then
the metadata is accessible to the transaction interceptor, and everything
is fine.
Aaron
On Sat, 1 Jul 2000, Rickard [iso-8859-1] �berg wrote:
> How else would this be done?
>
> How would swapping them make it easier?
>
> The idea behind the ordering is that interceptors that are not tied to a
> particular instance is done first. If any of them fail we wont have to
> talk to the cache (which is basically what the InstanceInterceptor does)
> which is more efficient.
>
> /Rickard
>
> --
> Rickard �berg
>
> @home: +46 13 177937
> Email: [EMAIL PROTECTED]
> http://www.telkel.com
> http://www.jboss.org
> http://www.dreambean.com
>