Hi,
Are you asking for the following hooks in the Bean class?
void ejbPreCall(Method aMethod, Object[] aArgs);
void ejbPostCall(Method aMethod, Object[] aArgs, Object aReturn);
Yeah, it'll be cool if they existed in the specs... EJB 3.0, maybe?
Gene Chuang
Teach the world... Join Kiko!
<http://www.kiko.com/profile/join.jsp?refcode=TAF-gchuang>
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Pedro Garcia Lopez
Sent: Tuesday, September 05, 2000 10:29 AM
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".