![[AIX]](../images/aixlogo.gif)
![[Linux]](../images/linux.gif)
![[Windows]](../images/windows.gif)
![[IBM i]](../images/iseries.gif)
![[z/OS]](../images/ngzos.gif)
Changing or adding EJB JAR files
You can change enterprise bean (EJB) Java™ archive (JAR) files on application servers without having to stop the server and start it again.
About this task
The following note applies to the file references with
.xmi extensions in this topic:
支援的配置: 對於 IBM® 延伸和連結檔而言,.xmi 或 .xml 副檔名取決於您是使用 Java EE 5 之前的應用程式或模組,或 Java EE 5 或更新版本的應用程式或模組。
IBM 延伸或連結檔稱為 ibm-*-ext.xmi 或 ibm-*-bnd.xmi,其中 * 是延伸或連結檔的類型,例如:app、application、ejb-jar 或 web。
適用的條件如下:

不過,即使應用程式含有 Java EE 5 之前的檔案,且所用的副檔名是 .xmi,其中也可以有 Java EE 5 或更新版本的模組。
ibm-webservices-ext.xmi、ibm-webservices-bnd.xmi、ibm-webservicesclient-bnd.xmi、ibm-webservicesclient-ext.xmi 和 ibm-portlet-ext.xmi 檔會繼續使用 .xmi 副檔名。
sptcfg![[Solaris]](../images/solaris.gif)
![[HP-UX]](../images/hpux.gif)
There are several changes that you can make to EJB JAR files without stopping the server and starting it again.
Important: See Ways to update enterprise application files and determine whether hot deployment
is the appropriate way for you to update your EJB JAR files. Other
ways are easier and hot deployment is appropriate only for experienced
users. You can use
the update wizard of the administrative console to make the
changes without having to stop and restart the server.
The following table lists the changes that you can make to EJB JAR files by manipulating an EJB file on the server where the application is deployed. The table also states whether you use hot deployment or dynamic reloading to make the changes.
Change | Hot deployment | Dynamic reloading |
---|---|---|
Change the ejb-jar.xml file of an EJB JAR file. | Not applicable | Yes |
Change the ibm-ejb-jar-ext.xmi or ibm-ejb-jar-bnd.xmi file of an EJB JAR file. | Not applicable | Yes |
Change the Table.ddl file for an EJB JAR file. | Not applicable | Not applicable |
Change the Map.mapxmi or Schema.dbxmi file for an EJB JAR file. | Not applicable | Yes |
Update the implementation class for an EJB file or a dependent class of the implementation class for an EJB file. | Not applicable | Yes |
Update the Home/Remote interface class for an EJB file. | Not applicable | Yes |
Add a new EJB file to an existing EJB JAR file. | Yes | Yes |