EJB 3.0 Best Practices for developing deployments on was V7

Source: Internet
Author: User
Tags websphere application server

Introduction

IBM WebSphere Application Server officially supports EJB 3.0 from version 7.0 (in the previous 6.1 release of the feature package for EJB 3.0). EJB 3.0 applications that are currently built on the was V7 are not common. In the actual project, the author summarizes some of the problems (partly development details) and best practices that have been encountered in deploying EJB 3.0 applications using was V7, and attempts to demonstrate these experiences to developers who need to develop EJB 3.0 applications in the was V7 environment with a few simple examples.

This article is based on the following conditions:

Using IBM WebSphere Application Server V7.0 (was V7) as an application server

Development work using IBM Rational application Developer for WebSphere Software V7.5

Some best practices for creating projects

interface, business objects are separated from implementation logic:

It is recommended that the EJB client and all defined business objects (Business Objects) be placed in a project that resembles a dependency library so that it can be easily invoked in other projects in the future. In addition, this improves the maintainability of interfaces and business objects. So when we created the project we chose the "Create an EJB client JAR module to hold the client interfaces and classes" option (so that the client that was automatically generated by RAD would be placed in the client project, and in the future I You can also place custom business objects in the project.

Figure 1. Creating a client JAR module

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.