Business logic is logic that is related to and can be described in terms of the domain in which the application is operating.
The domain in which the site operates is the online sale of products such as books, CDs, DVDs, and so on, while the business domain includes concepts such as products, customers, addresses, etc. Here, business logic might involve the process of a customer buying a product, applying discount rules and so on. Before the introduction of J2EE and, specifically, Enterprise JavaBeans, business logic was implemented in several ways. The first of these was that business logic was embedded within the user interface code, alongside any logic required to present information to the user. As a start point, we should start from the controller logic. For example: on update, your controller should direct your code to the method/service that delivers your changes to the model. In the model, we may easily create helper/service classes where the application business rules or calculations can be validated. Business logic is just a fancy way of saying code.. :-). More precisely, in a three-tier architecture, business logic is any code that is not specifically related to storing and retrieving data (that's data storage code), or to formatting data for display to the user (that's presentation logic). JSP can also make use of Java Beans. The business logic could be placed inside Java Beans. If the design is architected correctly, a Web Designer could work with HTML on the JSP site without interfering with the Java developer. In the MVC architecture... the original request is always handled by a servlet. Introduction. Business logic is an often overused term that can be used to describe many things and the definitions are typically very verbose. However, a general definition is that business logic is logic that is related to and can be described in terms of the domain in which the application is operating. The second statement is basically telling about two javabeans: one for business logic and other for the model. So, yes the business logic can still be placed in javabeans. The javabean for the business logic can encapsulate the javabean for model as its property. Building Java Enterprise Applications By Brett McLaughlin. This excerpt is Chapter 8 from Building Java Enterprise Applications, Vol I: Architecture, published in March 2002 by O'Reilly. You have now completed the data layer of your application, and are ready to dive into the business layer.
http://www.javaranch.com/journal/2003/05/buslogic.htm http://www.javaranch.com/journal/2003/05/buslogic.htm http://programmers.stackexchange.com/questions/165444/where-to-put-business-logic-in-mvc-design http://www.jguru.com/faq/view.jsp?EID=97696 http://stackoverflow.com/questions/2489642/place-the-business-logic-in-java-beans http://www.javaranch.com/journal/2003/05/buslogic.htm http://stackoverflow.com/questions/2489642/place-the-business-logic-in-java-beans http://www.onjava.com/pub/a/onjava/excerpt/bldgjavaent_8/index1.html
what is meant by business logic in java