Tip

Application server components

 

Application server components
Paul Perrone

Just what are the pieces of an application server? This tip, excerpted from InformIT, gives a rundown. Paul Perrone,

    Requires Free Membership to View

author of the article from which this tip comes, is also the author of Building Java Enterprise Systems with J2EE.

One of the most attractive features of an application server is that it gives enterprise software developers the capability to focus on developing the business logic and data for an enterprise application. Business logic and data are encapsulated within the enterprise application components that get plugged into an application server environment. For the J2EE, these enterprise application components are implemented as Enterprise JavaBeans. Thus, enterprise developers focus on defining the application logic and data within the component, and the application server handles how distributed clients access such components in a scalable and secure fashion. Application servers also implement much of the infrastructure logic that components use to access other enterprise systems and enterprise database resources.

Very often, application servers define an interface contract to which enterprise application components must adhere if they want to enable the application container/server environment to manage the life cycle of that component. Life cycle management of components includes instance creation, instance destruction, state management, and perhaps database connectivity management.

An EJB component first indicates its capability to operate inside an EJB container by implementing the javax.ejb.SessionBean interface. The setSessionContext() and various ejbXXX() methods defined on the EJB support this interface contract and enable the EJB to operate inside a J2EE EJB container. Thus, by implementing a few simple methods and providing its own business logic, the EJB component becomes a first-class citizen of a J2EE enterprise application environment and can be managed by the EJB container.


To read this entire tip, click over to InformIT. You have to register there, but the registration is free.


This was first published in November 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.