Introduction :Guidelines for Java Development in SAP NetWeaver
Java is an industry-standard application platform that includes the Java programming language, a Java development environment (there are many available), and a Java application server. SAP supports Java, and provides a Java development environment called the SAP NetWeaver Developer Studio, as well as a Java application server that includes SAP’s own Java Virtual Machine (SAP JVM).
Like ABAP, the Java language continues to evolve. Java developers should use the versions of Java and Java EE supported in the latest version of SAP NetWeaver.
SAP recommends that Java developers use the version of Java and Java EE supported in the latest version of SAP NetWeaver.To find out which version of Java is supported in any given product, see the product availability matrix (PAM) at http://service.sap.com/pam (Service Marketplace user ID required).
Additional guidelines for Java developers depend on whether your application is developed on SAP NetWeaver and runs on NetWeaver, or is migrated to run on NetWeaver, or runs on a different application server entirely.
Developers who code on SAP NetWeaver preferred to use SAP NetWeaver Developer Studio.
SAP NetWeaver Developer Studio is based on Eclipse. It offers features especially suited to deploying code in an SAP environment. For example, to run an application on SAP NetWeaver, the EAR file should have an SAP manifest. SAP NetWeaver Developer Studio adds this manifest automatically.
Additionally, features to aid with enterprise team development are built into the components of the NetWeaver Development Infrastructure (NWDI), including:
- The Design Time Repository (DTR), a source code versioning system based on the WebDAV and Delta V open standards
- The Component Build System (CBS), a build server
- The Change Transport System (CTS), a software logistics tool
SAP recommends using SAP NetWeaver Developer Studio if you develop for and run on SAP NetWeaver AS Java.In addition to offering an SAP-aligned Java development environment, the SAP NetWeaver Developer Studio, SAP develops and maintains its own Java virtual machine, the SAP Java Virtual Machine (SAP JVM).
Unlike other JVMs, the SAP JVM allows developers to switch to debug mode on the fly without restarting the server, a convenience when programming.
The SAP JVM also includes extensive profiling and memory analysis capabilities to easily identify areas of high memory consumption and memory leaks. SAP developed the Memory Analyzer, which has been open sourced and is available athttp://www.eclipse.org/mat/.
Reference: SAP Guidelines for Best-Built Applications that Integrate with SAP Business Suite
The goal of the blog is to help make users aware of the Guidelines for Java Development in SAP NetWeaver. Recommendations are based on my personal experience in SAP Implementation. The user can follow the suggestions provided by the blog which should be supplemented with additional information. The suggestion provided by the blog may vary as per the project requirement.
SAP Help, at http://help.sap.com, provides official documentation from SAP. It is structured help that is indexed and includes diagrams to illustrate key points. This site is open to the public; no login information is required.