Home > Coherence, Java, Oracle > Preparing Eclipse OEPE for Oracle Coherence

Preparing Eclipse OEPE for Oracle Coherence

Oracle Coherence provides a data grid mechanism to use most accessed data in many different ways. It is scalable and high available and it has many advanced features to handle records inside. I will be explaining some of Oracle Coherence features in a few posts. First topic of this series is this post.

Eclipse is the most used Java development environment and I will use this IDE for my Oracle Coherence post series.

By the way I am using one of the Oracle VM template for VirtualBOX  ( Enterprise Java Development Template ) to run Oracle Coherence, Eclipse. And OS and linux kernel version of VM is here:

[root@localhost etc]# cat /proc/version
Linux version 2.6.18-194.el5 (mockbuild@ca-build10.us.oracle.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Mon Mar 29 20:06:41 EDT 2010
[root@localhost etc]#

To use Oracle Coherence in the Eclipse you should follow these steps:

1 ) Download Eclipse OEPE 12c ( Oracle Enterprise Pack for Eclipse ) ~400MB
2 ) Download Oracle Coherence 3.7.1 coherence.jar ~10MB
3 ) Create a new Java Standalone Project

Create Java Project

I specify the project name as “CohExam_AFSungur”

4 ) Add library to your project, you should use User Library

Add Library to Java Project

User Library

Then you select User Library you should specify the path of coherence.jar file.

5 ) After you successfully imported coherence.jar file to our project we can finish the creation of the java project.

Then we can configure the Project Facets of our just created project.

6 ) Press Right Click of your project and then select Properties.

Then in the opened window choose Project Facets as in below:

Project Facet

Click Convert to faceted from link.

7 ) Then check Oracle Coherence and bottom of screen you see Further configuration available, click it.

Then import and check Coherence371 and finish it.

8 ) Eventually, you should see the project something like this:

Project Status

If you see the 3 xml files and coherence.jar file as shown in the above you completed this section successfully.

In next chapters I will unveil some of Oracle Coherence features with examples.

So far you’ve imported Coherence library to your project and then in your java class you can use all available coherence methods.  And also you can configure cache and cache server parameters by editing xml files.

Advertisements

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: