Configuration by Exception

Coupled with the ability to specify behavior declaratively is the strong use of intelligent defaults in EJB. Much behavior
is attached automatically to an EJB or an entity without it being declared explicitly, such as the transactional behavior
of session bean methods and the names of the table and columns that map to an entity’s persistent data properties.
An annotation, or its counterpart in XML, needs to be specified explicitly only when non-default behavior is desired.
In the most common cases, where the default behavior is leveraged, this approach leads to very sparse, clean code.
This development model is known as configuration by exception, because only in exceptional (non-default) cases is it
necessary to configure the behavior of the component explicitly.

Ref : Beginning EJB 3 Java EE 7 Edition[p.3]

me on google plus+Jirawong Wongdokpuang


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s