Just to add on some more, the latest Dr. Dobbs (Oct/2000) shows how to
insert bytecode into compiled classes to achieve the same effect.
Interesting (and hairy) stuff.
jim
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Gene Chuang
> Sent: Wednesday, September 06, 2000 6:38 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Interceptors in the EJB model
>
>
> I was reading some interview with James Gosling (java creator) somewhere
> where he was saying in the proposed draft for JDK 2.0, method
> pre-and-post-interceptors were gonna be implemented for native
> Java... but
> I don't think this idea got anywhere; too bad!
>
> Gene
>
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Tony Abbott
> Sent: Wednesday, September 06, 2000 3:03 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Interceptors in the EJB model
>
>
> Method interceptors are listed as one of the features that have been
> "deferred
> to future releases" in the EJB 2.0 public draft.
>
> -t
>
>
>
>
> On Tue, Sep 05, 2000 at 10:41:44AM -0700, Gene Chuang wrote:
> > 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".
> >
>
> --
>
> Tony Abbott [EMAIL PROTECTED]
>
> ==================================================================
> =========
> 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".
>
>
===========================================================================
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".