On Sat, May 23, 2009 at 1:16 AM, David Blevins <david.blev...@visi.com> wrote:

>> I'd rather avoid introducing any
>> container-specific solutions unless they're really necessary. I think
>> the closer we are to other ejb containers (likely application servers
>> themselves) the better so people won't run into any issues during
>> their production deployments. How is it handled by other app servers?
>> GlassFish has a default datasource notion. What about JBAS or JOnAS or
>> WLS?
>
> Right, as you point out the spec says "the format of these names and the
> ability to specify the names are product specific" which makes it
> unavoidably container specific.  As far as I can see everyone has taken
> their own approach (Geronimo uses the AbstractName of the db pool gbean,
> JBoss uses the Jboss-specific jndi name of the datasource, etc. etc).  Not
> sure what we can do about that other than do our best to support the
> situations people bring to us.

I think it encourages us to use the Strategy design pattern with
GeronimoDataSourceFormat, JBossDataSourceFormat and such, so they
could be on/off to get as close to the production container as
possible. Ideas? Hints?

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl

Reply via email to