JEE Core Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 3: Line 3:
* [[JEE#Subjects|JEE]]
* [[JEE#Subjects|JEE]]


=Changing Application Behavior without Changing Code=
=Subjects=


The possibility to change an application's behavior without changing code is a core concern in JEE. The entire Chapter 5 in the [[JEE#jsr_316|JEE specifications]] is dedicated to it.
* [[JEE Core Concepts - Resources, Naming and Injection|JEE Resources, Naming and Injection]]
 
* [[JCA Concepts]]
The essential mechanism than makes this possible is the ''application component environment'', also known as ''enterprise naming context (ENC)''. ENC is a JNDI naming context, accessible to and private for each application component.
* [[EJB Concepts]]
 
* [[JPA Concepts]]
The application code ''uses named entries'' in ENC to refer to configuration values and external resources. The names of those elements do not change in the code, and actual configuration values and external resource references are ''mapped'' to actual deployment environment specific actual values and resources during deployment.
 
The key element here is the use of ''deployment descriptors'', that act as a layer of indirection between code and the deployment environment, and provide the mappings mentioned above.

Latest revision as of 13:21, 25 September 2017