Skip Headers

# Advantages and Disadvantages

Previous

Next

Using BMP with a TopLink three-tier architecture offers the following advantages:

- It simplifies the BMP method calls. These can be inherited from an abstract bean class, rather than being generated.

- TopLink makes BMP easier to implement.

- It enables you to implement database-independent code in the bean methods.

- The architecture supports features such as complex relationships, caching, object-level and dynamic queries, and the unit of work.

The main disadvantages of BMP include the following:

- You must create the persistence mechanisms in the bean code.

- It is not as transparent or efficient as CMP.

- TopLink-only Java object applications offer the same degree of independence from the application server.