What is POJO?

6 10 2007

A POJO (Plain Old Java Object) is simply a Java object that does not implement any special interfaces such as those defined by the EJB framework. However, POJOs by themselves are insufficient. In an enterprise application, we need services such as transaction management, security, and persistence, which were previously provided by the EJB container. The solution is to use the increasingly popular so-called “lightweight” frameworks that replace some “heavyweight” parts of the J2EE stack. They do not completely replace the J2EE stack but can be used in combination with some parts of it to provide important enterprise services.

An important feature of these technologies is that they are non intrusive. Unlike EJBs, they provide transactions and persistence without requiring the application classes to implement any special interfaces. Even when your application’s classes are transactional or persistent, they are still POJOs, which means that you continue to experience the benefits of POJOs.

POJO & EJB comparison
Table 1 Comparing classic EJB and POJO approaches

One of the great things about POJOs and lightweight frameworks is that we can do a lot of development without going near an application server. Eventually, however, we do need to deploy the application. An application that uses Spring for transaction management and Hibernate or JDO for persistence can often be deployed in a simple web container-only server such as Jetty, Tomcat, or WebLogic xpress.

Advertisements

Actions

Information

2 responses

27 05 2008
pojo.nut

Now there is true POJO Application Server.

Runs normal Java applications and network enables them.
Uses any technology because its a normal Java application.
Whole application is designed outside the container, then dropped in.

Even run Games… because its a true POJO container.
No longer now just for biz logic, drop your whole accounting package into this conatiner and its networked.

Superb technology, in a different class
Look at how the application is designed.
Whole EJB application with user side done in a mere 3 mins, not kidding.

11 07 2009
cat

It’s too good.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s




%d bloggers like this: