Configure JDBC driver in JBoss 7 - as a deployment OR as a module?

我们两清 提交于 2019-12-03 21:18:17

The guide JBoss AS7 DS configuration says the recommended way is to configure the datasource by deployment

But according to discussion on the link Jboss 7 DS configuration JBoss Community Discussion on page 54 of the guide it mentions that the recommended way to deploy JDBC driver is to use modular approach

But I personally say that the better(not the best) approach to configure JDBC driver would be to use modules because of 3 reasons

  1. JDBC driver will generally not change.
  2. Re-usability : You can use the same module across various applications and not deploy the jar along with each application, this prevents duplicacy
  3. Space Effective : Using the module approach lets you reduce the size of your EAR/WAR as you do not need to supply the jar with the package

Hence I would argue that the better of the two approaches is via modules

@Mukul Goel It's not necessary to include it the EAR of your application it's sufficient to put the .jar inside the deployments folder so:

no need to embed in ear no need to create a module

Jist deploy in deployments folder or via admin console

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!