What's the module name if deploy jdbc in Jboss AS 7 as web application

后端 未结 1 1686
暖寄归人
暖寄归人 2021-01-16 17:26

From this post start from Jboss AS7 the jdbc driver is able to deploy as regular application. However a question is, how other application is able to refer to this jdbc jar?

相关标签:
1条回答
  • 2021-01-16 18:24

    You can reference the jars from other deployments in this way:

      <module name="deployment.YourEarOrWar.YourJar.jar" />
    

    Where deployment is the general prefix for a reference to your deployed apps. However, for a lib like a jdbc-driver I recommend to put it in the module-folder of the JBoss

     <module xmlns="urn:jboss:module:1.1" name="driver.ojdbc">
    
    <resources>
        <resource-root path="ojdbc6.jar"/>      
    </resources>
    
     </module>
    

    and reference it then

      <module name="driver.ojdbc"/>
    

    See also https://community.jboss.org/thread/169894 and http://www.mastertheboss.com/jboss-as-7/how-to-install-a-module-on-jboss-as-7

    0 讨论(0)
提交回复
热议问题