When and why would I need a jboss-deployment-structure.xml for a Spring application?

前端 未结 2 1633
臣服心动
臣服心动 2020-12-24 06:07

I am trying to understand how to use JBoss EAP6 with Spring applications. I have a sample OpenShift application and it contains a jboss-deployment-structure.xml

相关标签:
2条回答
  • 2020-12-24 06:45

    This is what I found on the internet:

    "In order to avoid using JBoss provided logging APIs, we need to place the following kind of “jboss-deployment-structure.xml” file inside “/home/userone/ApplicationLevelLog4jDemo/src” so that we can exclude the jboss logging APIs for our application and our application can use it’s own version of logging APIs."

    Source: http://middlewaremagic.com/

    0 讨论(0)
  • 2020-12-24 07:00

    As long as you don't have any classloading problems with your application you don't need the jboss-deployment-structure.xml file. But once you have trouble of such kind the dependency management in jboss-deployment-structure.xml would be your friend.

    This article explains very good what modules are.

    I think in short you can say that everything that is deployed as WAR, JAR or EAR is a module. These modules are referred to as dynamic modules. Beside them there are static modules in $JBOSS_HOME/modules. The only difference is how they are packaged.

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