Adam Bien's Weblog

Do You Know Any Container-Less App?

A Java EE container is defined as:

"Containers are the interface between a component and the low-level platform-specific functionality that supports the component."
and further
"Before a web, enterprise bean, or application client component can be executed, it must be assembled into a Java EE module and deployed into its container.

The assembly process involves specifying container settings for each component in the Java EE application and for the Java EE application itself. Container settings customize the underlying support provided by the Java EE server, including services such as security, transaction management, Java Naming and Directory Interface (JNDI) lookups, and remote connectivity. (...)"

[https://docs.oracle.com/javaee/5/tutorial/doc/bnabo.html]

According to the definition above, a container is the realization of separation of concerns between business logic and infrastructural functionality like: concurrency, state management, transactions, monitoring, dependency injection / inversion of control, aspects, throttling, resource pooling (connections, queues) etc.

Without container concepts the business logic and generic infrastructure would be intermingled.

More interesting is the question whether a component has to be deployed into a container, or whether the container is embedded into the application. Although this question remains interesting, it looses its importance with the increasing popularity Rkt or docker.

With e.g. docker, you are deploying a single archive regardless of its contents. Docker needs an executable start script which could point to either a fully fledged application server or an executable Java archive which launches the application server (or a container-less framework which acts like an application server, but is named differently).

See you at Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting


NEW workshop: HTML 5 and JavaScript Essentials, Three days in April 2017: from Java EE 7 Architectures over Microservices to Performance, Troubleshooting and Monitoring
On demand workshops: Java EE 7: Bootstrap, Effective, Testing and Microservices available for streaming.

Newsletter: airhacks.news

A book about rethinking Java EE Patterns

Comments:

Thanks, nice post

Posted by Binh Nguyen on June 10, 2015 at 05:00 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
realworldpatterns.com
Online Workshops
...the last 150 posts
...the last 10 comments
License