Comments
Richard Davies wrote: The UK has a good crop of technology pioneers in cloud computing - for example ElasticHosts, FlexiScale, Flexiant, OnApp - and also some strong government initiatives such as G-Cloud. We will have to see whether this kind of technical leadership converts into swift mass-market adoption or not.
Cloud Expo on Google News

SYS-CON.TV
Cloud Expo & Virtualization 2009 East
PLATINUM SPONSORS:
IBM
Smarter Business Solutions Through Dynamic Infrastructure
IBM
Smarter Insights: How the CIO Becomes a Hero Again
Microsoft
Windows Azure
GOLD SPONSORS:
Appsense
Why VDI?
CA
Maximizing the Business Value of Virtualization in Enterprise and Cloud Computing Environments
ExactTarget
Messaging in the Cloud - Email, SMS and Voice
Freedom OSS
Stairway to the Cloud
Sun
Sun's Incubation Platform: Helping Startups Serve the Enterprise
POWER PANELS:
Cloud Computing & Enterprise IT: Cost & Operational Benefits
How and Why is a Flexible IT Infrastructure the Key To the Future?
Click For 2008 West
Event Webcasts
Sun Proposes Single Data Persistence Model for Java
Sun Proposes Single Data Persistence Model for Java

Sun Microsystems has proposed a new data persistence model for Java that will fuse the focus of two Java specifications. The specifications in questions are, EJB (Enterprise JavaBeans) 3.0, JSR (Java Specification Request) 220; and JDO (Java Data Objects) 2.0, JSR-243.

Linda DeMichiel and Craig Russell, of Sun, called the effort a "reconciliation," and asked for support from the Java community. However, the move to reconcile persistence models could come at the expense of delays in the delivery of the next version of the Java 2 Enterprise Edition specification, J2EE 5.0, according to Sun officials.

The reason for seeking to unify the two specifications has to do with variations in EJB and JDO data persistence models. Data persistence refers to objects and data that continue to exist between runs of a program. There is no unified opinion among programmers regarding persistence models of both EJB and JDO. What Sun is leading a community-based effort to create is a single Plain Old Java Object (POJO) persistence model.

Dennis MacNeil, line manager for J2EE at Sun, explained the benefits of POJO, "The big news to the Java Technology Community is to give people an update on EJB 3.0. EJB 3.0 is all about ease of use, and as part of that we're going to Plain Old Java Objects [POJO] persistence model."

DeMichiel and Russell provided some background information relating to variations in persistence models that led to the decision. "For years, the Enterprise JavaBeans (EJB) and Java Data Objects (JDO) specifications have evolved independently. Even to this day, the data persistence models in EJB and JDO differ significantly. This divergence has caused confusion and debates among Java developers, and is not in the best interest of the Java community."

The new POJO specification is designed to run across both J2EE and J2SE. DeMichiel said that Sun decided to forge ahead with the initiative after seeing how strong a response EJB 3.0 was met with. She said, "it is good to converge the efforts."

In general, it appears that community support of the new initiative is there. Even among some Java developers who had at first criticized EJB 3.0, the reaction to POJO is more receptive. Rod Johnson, a London-based enterprise Java architect, J2EE consultant and author, was an early critic of EJB 3.0. However, the convergence of data persistence has promise, according to him.

Johnson said, "It's odd for EJB3 to be defining a persistence API applicable to J2SE. But overall I think it's promising. Everyone seems to agree that transparent persistence is important, and that POJO persistence is the future. The EJB expert group seems finally to accept that persistence should not be tied to the EJB container. Hopefully from here the focus will be on getting a good technical solution, rather than on politics."

About Java News Desk
JDJ News Desk monitors the world of Java to present IT professionals with updates on technology advances, business trends, new products and standards in the Java and i-technology space.

In order to post a comment you need to be registered and logged in.

Register | Sign-in

Reader Feedback: Page 1 of 1

I like the convergence idea also.
EJB component model is too heavy-weight to be used solely for 'transparent' persistence purpose. POJO seems to be more attractive for a simple web application project.

One additional comment:
I also don't like the way that persistence is tied to the container. I think we should delegate the effort to the datastore vendors or opensource community instead. What if we have a 'pluggable persistence layer'? I think many J2EE implementations lack support of ODBMS, LDAP, legacy systems because it's burdensome for J2EE providers to provide persistence code for each of DBs.

I also would like entity EJB to support n-ary relationship. For example, it's not easy to model the following fact - 'Man(name) graduates University(uName) in Year(AD)'. This kind of relationship cannot be easily abstracted by a 'bi-directional' relationship that entity EJB currently uses unless we create an intermediate relationship to combine any pair of them first. I prefer the way ORM (Object-Role Modeling) tackles this problem.
Please share your thought. :-)

Ek C.

If they are using a POJO model why not just bless and absorb one of the existing open source projects such as Hibernate?

Again, they will reinvent the wheel for no reason.

Well, it's not so easy, but it has been done. Check out http://castor.org. Relational databases still have a lot of value though. The problem with XML as a datastore has to do with granularity and concurrency. How many different XML files do you want to keep up with in the filesystem, because (especially if it's gzipped) you have to write out the whole file every time you make a change. Also, if two threads need to change data in the same file, you have to account for that. Finally, there's a paradigm mismatch between XML and Java Objects, just as there is with relational databases. The specifics are different, but they're still difficult. In my opinion, XML is only good as a transport and for storage of data that very rarely changes but needs to support lots of unknown, custom features. But, if it's so simple, why don't you write it--maybe it'll be the next big thing.

How about simply making the objects serialize themselves to/from gzipped XML? Standardize on the XML format, and -anything- can then operate on the serialized data. It's so easy that it probably won't be done.


Your Feedback
Ek C. wrote: I like the convergence idea also. EJB component model is too heavy-weight to be used solely for 'transparent' persistence purpose. POJO seems to be more attractive for a simple web application project. One additional comment: I also don't like the way that persistence is tied to the container. I think we should delegate the effort to the datastore vendors or opensource community instead. What if we have a 'pluggable persistence layer'? I think many J2EE implementations lack support of ODBMS, LDAP, legacy systems because it's burdensome for J2EE providers to provide persistence code for each of DBs. I also would like entity EJB to support n-ary relationship. For example, it's not easy to model the following fact - 'Man(name) graduates University(uName) in Year(AD)'. This kind of relationship cannot be easily abstracted by a 'bi-directional' relationship that entity EJB cur...
Don wrote: If they are using a POJO model why not just bless and absorb one of the existing open source projects such as Hibernate? Again, they will reinvent the wheel for no reason.
Scott wrote: Well, it's not so easy, but it has been done. Check out http://castor.org. Relational databases still have a lot of value though. The problem with XML as a datastore has to do with granularity and concurrency. How many different XML files do you want to keep up with in the filesystem, because (especially if it's gzipped) you have to write out the whole file every time you make a change. Also, if two threads need to change data in the same file, you have to account for that. Finally, there's a paradigm mismatch between XML and Java Objects, just as there is with relational databases. The specifics are different, but they're still difficult. In my opinion, XML is only good as a transport and for storage of data that very rarely changes but needs to support lots of unknown, custom features. But, if it's so simple, why don't you write it--maybe it'll be the next big thing.
Kirk wrote: How about simply making the objects serialize themselves to/from gzipped XML? Standardize on the XML format, and -anything- can then operate on the serialized data. It's so easy that it probably won't be done.
Latest Cloud Developer Stories
Swisscom, the Swiss telecom, is going into the cloud business. Its subsidiary Swisscom IT Services AG has signed up with Red Hat as a Certified Cloud Provider and launched a public cloud Infrastructure-as-a-Service (IaaS) cloud targeting enterprise-class customers primarily in ...
Apache Deltacloud, the Red Hat-contributed ReSTful API that abstracts differences between clouds so services on any cloud can be managed – provided of course there’s a driver – has graduated from the Apache Foundation’s incubator and is now a full-fledged Top-Level Project (TLP)....
In a surprise move on Tuesday, January 10, Oracle wheeled out its Big Data Appliance. That’s the one it said in October would be ready sometime in the first half. Only nobody believed it meant early in the first half. Heck, it’s not even clear anybody thought Oracle could make ...
Rackspace Hosting, the service leader in cloud computing, on Thursday announced its acquisition of SharePoint911, an industry leader in SharePoint consulting, training, and "JumpStart" services within SharePoint. The unification of both companies provides capabilities to deliver ...
CloudLinux, Inc., on Thursday released CafeFS 3, a virtualized file system for shared hosters that cages each customer within its own virtualized file system. CageFS becomes part of CloudLinux OS at no additional charge. CloudLinux OS, the only commercially-supported Linux OS m...
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021

SYS-CON Featured Whitepapers
ADS BY GOOGLE

Breaking Cloud Computing News

ANN ARBOR, Mich., Feb. 16, 2012 /PRNewswire-USNewswire/ -- In recognition of a $15 million gift t...