[hibernate-dev] Question about the classloader used for loading JDBC drivers with Hibernate 4.x
Steve Ebersole
steve at hibernate.org
Tue Mar 13 11:26:21 EDT 2012
Sure we can make a change like that. Like I said, just trying to make
sure this deployment setup is not frowned upon by AS.
On Tue 13 Mar 2012 08:43:12 AM CDT, Scott Marlow wrote:
> I agree that its only a problem when the JDBC driver is not on the
> server classpath (AS7 has "Global Modules" that allows for that as a
> last resort option).
>
> I think it is always better to have the JDBC drivers be available
> globally. However, it doesn't matter which approach is used for these
> users, whether there is a global JDBC driver module that their
> application can depend on or the application includes the JDBC driver.
> They still need Hibernate to be able to see the JDBC driver.
>
> I think that these users could consider using the AS7 "Global Modules"
> (https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7) as a
> workaround but am also interested in whether Hibernate might also make
> changes to support this case better.
>
> Scott
>
> On 03/13/2012 08:51 AM, Steve Ebersole wrote:
>> Is it koser to deploy JDBC drivers with an app? I thought the general
>> suggestion was to make them available to the server classpath?
>>
>>
>> On Tue 13 Mar 2012 06:47:14 AM CDT, Strong Liu wrote:
>>> I think we should use classloading service to load it
>>>
>>> yes, a HHH would be great.
>>> -------------------------
>>> Best Regards,
>>>
>>> Strong Liu<stliu at hibernate.org>
>>> http://about.me/stliu/bio
>>>
>>> On Mar 13, 2012, at 8:24 AM, Scott Marlow wrote:
>>>
>>>> Should Hibernate 4.x use the AvailableSettings.APP_CLASSLOADER to load
>>>> JDBC drivers? User forum thread
>>>> https://community.jboss.org/message/723375#723375 has more details
>>>> from
>>>> the users asking about this.
>>>>
>>>> Should we create a HHH jira for this?
>>>>
>>>> Scott
>>>> _______________________________________________
>>>> hibernate-dev mailing list
>>>> hibernate-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>>
>>> _______________________________________________
>>> hibernate-dev mailing list
>>> hibernate-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>
>
--
steve at hibernate.org
http://hibernate.org
More information about the hibernate-dev
mailing list