openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Struberg <>
Subject Re: EJB Classes Required in non-EJB environment...
Date Mon, 15 Jun 2009 21:17:14 GMT

Hi James!

I really appreciate your comments!
I thought about this when I wrote it and I think it is kind of a chicken-egg problem: 
How should the registration get started?
Who injects the plugins, etc

At the end, this was the least intrusive and most easiest way to write it. I also had the
gut feeling that it's possibly better to actively pull in plugins than to open API's which
may be abused from outside or even crashes the framework if not handled carefully.
But maybe this is just a feeling. The ServiceLoader is a pretty standard way at least.


--- James Carman <> schrieb am Mo, 15.6.2009: 

> Von: James Carman <>
> Betreff: Re: EJB Classes Required in non-EJB environment...
> An:
> Datum: Montag, 15. Juni 2009, 23:05
> I've been doing some thinking
> about this whole plugin framework stuff.  Rather than
> having a bunch of callbacks, why not let the plugins have a
> chance to "register" stuff instead.  For example,
> the ejb plugin would register a special "provider"
> for the @EJB annotation.  The core logic would look for
> providers
> On Jun 15, 2009 4:25 PM,
> "James Carman" <>
> wrote:
> Well, it's not quite as simple as just moving the
> classes and adding
> checks into the plugin.  There are other places that use
> EJBUtil, in
> the XML handling code for instance.  So, we probably need
> to expand
> the plugin API to include stuff for handling XML or
> introduce a new
> interface (XmlAwarePlugin or something).
> On Mon, Jun 15, 2009 at 4:20 PM, Gurkan Erdogdu<>
> wrote:
> > Yeap, it will be ...


View raw message