2
JAR
與EAR
文件相對於EJB
的distinction是什麼? Glassfish的幫助說:JAR組件與EAR有何不同? (應用服務器)
[email protected]:~$
[email protected]:~$ GlassFish_Server/bin/asadmin deploy --help
...
--type
The packaging archive type of the component that is being deployed.
Possible values are as follows:
car
The component is packaged as a CAR file.
ear
The component is packaged as an EAR file.
ejb
The component is an EJB packaged as a JAR file.
osgi
The component is packaged as an OSGi bundle.
rar
The component is packaged as a RAR file.
war
The component is packaged as a WAR file.
因此,一個EJB
可以打包成一個文件JAR
?什麼是功能差異?具體來說,EAR
組件可以做什麼JAR
不能?
是由Netbeans定義的'EJB'模塊,打包爲'EAR'?或者,正如你在答案中所建議的那樣,作爲「JAR」?如果你想擴大這一點,將不勝感激。 – Thufir
Ejb模塊將僅打包爲EAR ..格式 – kattoor
如果要將其歸檔爲企業應用程序,可以將其創建爲EAR,或者如果要將其歸檔爲包含EJB模塊,EJB客戶端模塊和實用程序的Java應用程序模塊,你可以創建它作爲JAR..hope這有助於:) – kattoor