|
|
|
In this chapter, we've touched on how to use
a variety of aspects of WebSphere Studio Application Developer.
This is by no means a complete introduction to the functionality,
but it covers the basics of what most developers will run into when
developing an application. We've also covered some of the design
considerations to use when creating an application and the
implications of the design decisions on the presentation. Lastly,
we've covered WebSphere extensions
|
|
|
|
|
|
Download CD Content
Chapter 2 advanced the argument for a componentized approach in creating the elements that compose an application. Dividing these elements into the essential categories of presentation, business, and data logic promotes a modularity that can increase the flexibility of the distribution of the application elements; can facilitate independent development of different element categories by different people, departments, or organizations; and can additionally provide new opportunities for logic reuse.
Business logic,
The J2EE architecture specifies a component model for each of the major tiers in the application landscape. In the previous chapter, we took a close look at the use of the web component model in building the presentation logic. In this chapter we will use the Enterprise JavaBean (EJB) component model to build up the business logic for our sample application, Plants-By-WebSphere.
The EJB component model is a good choice for building business logic for several reasons:
It includes stateless, stateful, and persistent models.
This means we have flexibility in choosing the component type that best fits our needs. Stateless EJBs are
It is
EJBs do not imply your choice for the other tiers in the computing models, increasing their flexibility. EJBs can be driven by presentation tiers on the same system as the EJBs
It offers powerful declarative transaction and security policy.
These and other services are provided by the EJB container, further simplifying the task of creating reusable business components by removing the need for business logic developers to
In the remainder of this chapter, we will focus on using WebSphere Studio Application Developer to build and test the business logic for our Plants-By-WebSphere application. The task ahead of us is to understand the design requirements for the business logic of our application, implement that design using EJBs, and then integrate our EJBs with the web presentation logic that we created in Chapter 4.
|
|
|