You can create a proxy EJB which implements the same (home, remote)
interfaces and calls the original EJB. Rebind the original bean under a
different location in the JNDI tree, bind the proxy under the old name, and
voila!
- Avi
--
s/\be(\w+)/e-\1/g;
> -----Original Message-----
> From: Pedro Garcia Lopez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 05, 2000 19:29
> To: [EMAIL PROTECTED]
> Subject: Interceptors in the EJB model
>
>
> Hi all,
>
> Is it possible to create interceptors for EJB components ?
>
> For example, I have a class called Bank with a method
> withdraw(), and I
> want to trigger an event (using JMS) each time the method is
> called. The
> interceptor should trigger the event and the Bank code remains intact.
>
> With CORBA you can create interceptors without problem.
> In RMI you can modify stubs and mimic this interceptor concept (see
> Javaworld thismonth).
>
> Is it possible with the EJB model ?
> I imagine that this must be supported by some App container
> but must be
> vendor-specific and non-standard.
>
> Any idea ?
>
> ==============================================================
> =============
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff EJB-INTEREST". For general help,
> send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".