Chapter 2 Running NAS 2.1 Applications on NAS 4.0 This chapter describes how to run NAS 2.1 applications on NAS 4.0 without making any source-level changes. NAS 4.0 is completely backward-compatible with NAS 2.1. In other words, you should be able to deploy your older NAS 2.1 application on NAS 4.0 without alteration, although C++ applications and extensions must be recompiled before deploying on the new server (see C++ Applications and Extensions).
This chapter describes how to run NAS 2.1 applications on NAS 4.0 without making any source-level changes.
HTML Templates For presentation layout, NAS 2.1-style HTML Templates, including GX tags, are fully supported without alteration by the NAS template engine. If a template is called by a servlet, however, it is compiled as a JSP. JSPs support GX tags with the exception of hierarchical queries.
AppLogics The AppLogic framework is fully supported in NAS 4.0, though many of the proprietary APIs introduced in NAS 2.1 have been deprecated in favor of the Java standards on which the new programming model is based. For more information, see Netscape Application Server Foundation Class Reference.
Database Logic: DAE and JDBC The NAS 2.1 database access classes and interfaces are now deprecated in favor of JDBC, the Java standard database connectivity API. Code that uses NAS 2.1 database connection and query methods is supported in NAS 4.0, but this support may disappear in a future release.
[01/05/99 11:25:51:0] error: APPLOGIC-caught_exception: Caught Exception: java.lang.NoSuchMethodError: java.sql.Statement: method addBatch(Ljava/lang/String;)V not found
The NAS Registry Part of the NAS registry now resides in an LDAP directory, though for the most part access to it has not changed. See the Administration Guide for more information.