Replacing Toplink Essentials with EclipseLink

EclipseLink is full version of TopLink donated
by Oracle to Eclipse foundation.
Full features of EclipseLink can be read in
http://www.eclipse.org/eclipselink/

TopLink Essentials is a subset of
TopLink donated by Oracle as JPA
reference implementation. Why the Essentials suffix?
Thats because full feature of TopLink is not in
TopLink Essentials. Only features necessary for
JPA implementation is in TopLink Essentials.

In Java EE 6 and GlassFish 3 EclipseLink will become
JPA reference implementation.

But we do not have to wait for Java EE 6 or
GlassFish 3 to be able to use EclipseLink
because EclipseLink is fully compatible with
TopLink Essentials. We can replace Toplink
Essentials with EclipseLink. How?

  1. Download and unzip EclipseLink from
    http://www.eclipse.org/eclipselink/downloads/
  2. Add one line of text in your persistence.xml file.
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    Add those line under persistence unit element.
  3. Add eclipselink.jar jar in jlib directory from
    EclipseLink installation into group of library
    used by your application.

Enjoy and learn the sophisticated features of EclipseLink.

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 )

Connecting to %s