Can user "libraries" be autoloaded by a running Inprise Application Server?

From Support
Jump to: navigation, search
Can user "libraries" be autoloaded by a running Inprise Application Server?

No, the user "libraries" are just sets of classes on your classpath. You need to restart the server if they change. We have seperate repositories for each EJB container and, similarly, the Web Engine has a repository for servlets (install_dir/servlets) and one for servlet beans (install_dir/servletbeans). The Web Engine handles updated .jsp files and re-generates their classes. EJBs in the EJB repository can be updated while the server is up. Similarly, servlets that have been configured via the Web Administration Tool can be reloaded when they change.

In fact, relying on the autoloading of changed servlets etc. is generally considered bad practice because keeping the graph of all classes used in-sync is notorously difficult. A typical runtime install base will arrange its own repositories so that they can be managed/populated by themselves and the server configured to point at these.

The classes directory is a place you can put user library classes. You can only guarantee picking up updated classes by restarting the server. Again, using the classes directory for production is considered bad practice. The Inprise Application Server does not provide a fixed user library directory. We believe that you will want your own "repository" for production use.

 



Article originally contributed by Borland Developer Support