Recommendations for working with multiple oral deployments in jBoss

We have a typical J2EE application:

  • an ear
    • war A
    • war B
    • jar domain
    • Datasource configuration
    • ejb.jar
      • Ejbs
      • JPA configuration

We use jBoss as our J2EE container. The same application must be deployed several times in the same container (to support different independent clients). This is a difficult task and error prone as it is necessary to change various settings; in several xml files; spread throughout the structure above.

Does anyone have any tips on how these redeployments can be simplified?

+3
source share
1 answer

EAR, , / .

, A B, ( ):

  • customerADatabase.properties
  • customerBDatabase.properties
  • customerASomeOtherConfig.xml
  • customerBSomeOtherConfig.xml
  • .

ant maven script A B, . script ,

  • customerA.ear - customerADatabase.properties customerASomeOtherConfig.xml
  • customerB.ear - customerBDatabase.properties customerBSomeOtherConfig.xml

@Yuval A, ... , - /, ...

+2

Source: https://habr.com/ru/post/1705965/


All Articles