Change or adding EJB Jar files
You can change EJB Jar files on appservers without having to stop the server and start it again.
- Change the ejb-jar.xml file of an EJB Jar file
Restart the application. Automatic reloading will not detect the change. Use the administrative console to restart the application. Or run the wasadmin stopApplication and startApplication commands.
Hot deployment Not applicable Dynamic reloading Yes - Change the ibm-ejb-jar-ext.xmi or ibm-ejb-jar-bnd.xmi file of an EJB Jar file
Restart the application. Automatic reloading will not detect the change. Use the administrative console to restart the application. Or run the wasadmin stopApplication and startApplication commands.
Hot deployment Not applicable Dynamic reloading Yes - Change the Table.ddl file for an EJB Jar file
Rerun the DDL file on the user database server. Change the Table.ddl file has no effect on the appserver and is a change to the database table schema for the EJB files.
Hot deployment Not applicable Dynamic reloading Not applicable - Change the Map.mapxmi or Schema.dbxmi file for an EJB Jar file
- Change the Map.mapxmi or Schema.dbxmi file for an EJB Jar file.
- Regenerate the deployed code artifacts for the EJB file.
- Apply the new EJB Jar file to the server.
- Restart the application. Use the administrative console to restart the application. Or run the wasadmin stopApplication and startApplication commands.
Hot deployment Not applicable Dynamic reloading Yes - Updating the implementation class for an EJB file or a dependent class of the implementation class for an EJB file
- Update the class file in the application_root/module_name.jar file.
- If automatic reloading is enabled, you do not need to take further action. Automatic reloading will detect the change.
If automatic reloading is not enabled, restart the application of which the EJB file is a member. If the updated module is used by other modules in other applications, restart those applications as well. Use the administrative console to restart the application. Or run the wasadmin stopApplication and startApplication commands.
Hot deployment Not applicable Dynamic reloading Yes - Updating the Home/Remote interface class for an EJB file
- Update the interface class of the EJB file.
- Regenerate the deployed code artifacts for the EJB file.
- Apply the new EJB Jar file to the server.
- If automatic reloading is enabled, you do not need to take further action. Automatic reloading will detect the change.
If automatic reloading is not enabled, restart the application of which the EJB file is a member. Use the administrative console to restart the application. Or run the wasadmin stopApplication and startApplication commands.
Hot deployment Not applicable Dynamic reloading Yes - Adding a new EJB file to an existing EJB Jar file
- Apply the new or updated Jar file to the application_root location.
- If automatic reloading is enabled, you do not need to take further action. Automatic reloading will detect the change.
If automatic reloading is not enabled, restart the application. Use the administrative console to restart the application. Or run the wasadmin stopApplication and startApplication commands.
Hot deployment Yes Dynamic reloading Yes
See Also
Hot deployment and dynamic reloading