geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Mulder <ammul...@alumni.princeton.edu>
Subject Re: accessing the database driver version and name from a gbean
Date Tue, 15 Nov 2005 14:19:04 GMT
How will the GBean know what database the application is hooked up to?

The easiest thing might be for the application to query the JDBC
Connection it gets from ther DB pool for the vendor name & version,
and pass that information to the GBean when it calls the GBean.

Aaron

On 11/15/05, Arun Venugopal <Arun.Venugopal@cognizant.com> wrote:
>  Hi,
>
>  Sorry seems my last reply didn't reach the ML properly ....
>
>  there is no database related code in the GBean .... but when an EJB
> application (which is coupled to a particular database) uses the GBean's
> features .. then the behaviour of the GBean varies depending on the type of
> database driver used in the application .... i hope you get the scenario ...
>
>  Thanks and regards
>  Arun
>
>
>
>  On Fri, 2005-11-11 at 10:05 -0500, Aaron Mulder wrote:
>  How does the GBean access the database? That is, does it open its own
> connections, or use a ManagedConnectionFactory that's part of a
> deployed RAR module, or what?
>
> Thanks,
>  Aaron
>
> On 11/11/05, Arun Venugopal <Arun.Venugopal@cognizant.com> wrote:
> > Hi,
> >
> > I am trying to write a Gbean whose functionality seems to vary for
> > different types of database drivers that is used. Can you tell me how to
> > find out the database driver name and version from the Gbean or within the
> > geronimo code ?
> >
> > Thanks and regards
> > Arun
> > This e-mail and any files transmitted with it are for the sole use of the
> > intended recipient(s) and may contain confidential and privileged
> > information.
> > If you are not the intended recipient, please contact the sender by reply
> > e-mail and destroy all copies of the original message.
> > Any unauthorized review, use, disclosure, dissemination, forwarding,
> > printing or copying of this email or any action taken in reliance on this
> > e-mail is strictly
> > prohibited and may be unlawful.
> >
> > Visit us at http://www.cognizant.com
> >
>
>
> This e-mail and any files transmitted with it are for the sole use of the
> intended recipient(s) and may contain confidential and privileged
> information.
>  If you are not the intended recipient, please contact the sender by reply
> e-mail and destroy all copies of the original message.
>  Any unauthorized review, use, disclosure, dissemination, forwarding,
> printing or copying of this email or any action taken in reliance on this
> e-mail is strictly
>  prohibited and may be unlawful.
>
>  Visit us at http://www.cognizant.com
>

Mime
View raw message