14 Ekim 2021 Perşembe

Jakarta EE application.xml - Ear Metadata

Örnek
Açıklaması şöyle
This file lists the JAR files in the EAR (in our case app.jar) and tells the JBoss server what files to look for and where. The root URL for the application is also specified in this file as 'context-root'.
Ear dosyası şeklen şöyle
myapp.ear
 |
 |--- web.war
 |
 |--- ejb1.jar
 |
 |--- ejb2.jar
Jar ve war dosyalarını da açarsak şeklen şöyle
jsfejb3.ear
|+ app.jar   // contains the EJB code
  ...
  |+ META-INF
    |+ persistence.xml
|+ app.war   // contains web UI
  ...
  |+ META-INF
  |+ WEB-INF
    |+ faces-config.xml
    |+ navigation.xml
    |+ web.xml
|+ META-INF  // contains the descriptors
  |+ application.xml
  |+ jboss-app.xml
Örnek
Şöyle yaparız
<module>
  <ejb>foo.jar</ejb>
</module>
<module>
  <connector>foo.rar</connector>
</module>
modul olarak rar tanıtılabilir. Açıklaması şöyle
The Java EE spec also defines a resource adapter archive, which contains code that bridges an enterprise application to external services, like message queues and databases. These files have a .rar extension.

Hiç yorum yok:

Yorum Gönder