Subject Re: [IB-Java] Unmanaged scenario
Author Massimo Ferrari
Ok, but I still don't see why DataSource and Driver should not share a
common implementation.
The DataSource should be a JavaBean, the default constructor could
initialize by itself the FBStandAloneConnectionManager, or even better the
Driver self could keep its own instance of the FBStandAloneConnectionManager
and use it to get connections.
Under a certain point of view (it doesn't support JCA) that's what e.g. the
mm mysql driver does (the DataSource just delegates connection creations to
the Driver).
This would make coherent the Driver's behaviour in an unmanaged scenario:
new connections only through the DriverManager which uses the installed
ConnectionManager to allocate them.

Massimo


----- Original Message -----
From: "David Jencks" <davidjencks@...>
To: <IB-Java@yahoogroups.com>
Sent: Sunday, November 11, 2001 3:24 PM
Subject: Re: [IB-Java] Unmanaged scenario


> The Driver.conect method does use the StandAloneConnectionManager to get
> its connection. However, it creates a FBManagedConnectionFactory and
> FBStandAloneConnectionManager for each connection you ask for. Therefore,
> using a FBDataSource obtained from a explicitly created
> FBManagedConnectionFactory is considerably more efficient if you need more
> than one connection in your app. It also provides the opportunity to use
a
> different ConnectionManager that supports e.g. pooling.
>
> david jencks
>
> On 2001.11.11 03:10:19 -0500 Massimo Ferrari wrote:
> > > Would the autocommit support outlined above be pretty much what you
> > want?
> >
> > That would be surely great.
> > Further, what you said is right, for the unmanaged scenario the RA's
> > default
> > ConnectionManager must be used: so why not use it in Driver.connect to
> > create the "un"managed connection? I think there should be no difference
> > in
> > getting a connection through the Driver or through the DataSource, both
> > should rely on the current ConnectionManager.
> >
> > Massimo
> >
> >
> >
> >
> > To unsubscribe from this group, send an email to:
> > IB-Java-unsubscribe@egroups.com
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
> >
>
> To unsubscribe from this group, send an email to:
> IB-Java-unsubscribe@egroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>