In this section we will develop the objects of business logic tier. Business logic tier referrers to the mid tier of 3-tier web application architecture.
Business logic tier communicates both with user interface tier and the database tier. In the business logic tier all the logic are encapsulated. The business objects and business services in the application resides in the Business logic tier. The business objects contains the data and logic associated with the data. In our application application there is only one business object the User.
Here is the code of User.java business object:
Since we are using Hibernate for persistence, the User business object provides getter and setter methods for all fields.
Business Services contains the code to interact with the data tier. In this application we have developed a formal service layer, client can use these services interface. There is only one service in this application the ServiceFinder. The ServiceFinder service is used to get the Spring managed beans from WebApplicationContext.
In the next section we will learn about Integration tier of our application. Integration tier is also known as data access tier.
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: May 24, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles