By The Old Toxophilist on Jun 06, 2011
Over recent months I have been talking with the NetBeans
development team and we are not looking at building the Coherence
Plugin into NetBeans as a coure module.
Whilst building the "Coherence
Plug-in" I decided to work with the Netbeans "Java Language
Infrastructure" which although reasonably well documented did not
have the answers to all my questions. So given that and as a memory
jogger for myself in future I have decide to put together this short
blog that will show how to write the java, that uses the Java Language
Infrastructure, required for the generating the Coherence Code as
described in "Coherence
Recently I have been working with the Oracle Coherence product and noticed that when using the, recommended, POF Serialization functionality I seem to be writing a lot of similar code. When using POF Serialization you need to implement the PortableObject interface and write a readExternal and a writeExternal method which deserialize and serialize the class properties respectively.
Now this can become a bit tedious so to improve my NetBeans
development environment I decided to implement a some auto generation
functionality to take away the need to manually create these methods.
In addition to the generation of the POF methods I also implemented an
alternative that generates an Inner Serializer class and its associated
methods, as defined in Alek Soevic's book "Oracle
3.5", the final part of the plug-in is the ability to
create and run Coherence cluster nodes from within NetBeans. At
the moment I have built this plugin within NetBeans 6.9, but it runs
fine on 6.10, and it can be downloaded from the NetBean
The rest of this blog entry will describe the functionality provided
and how to create and configure a Coherence instance within Netbeans.
As a member of the Oracle A-Team we specialise in enabling and supporting the Oracle Fusion Middleware communities.