Data agregation pattern for effective monitoring

By |2020-10-07T10:24:09+00:00November 27, 2008|

In my previous post I wrote about two patterns for using a GigaSpaces cluster to solve some of the issues involved in managing distributed applications: Using the space as a scalable alternative to a directory service. With this approach each...

You want it Fast or Super Fast? – The IB, 10GbE , GigE Benchmark

By |2020-10-07T10:27:42+00:00November 16, 2008|

With the current global financial meltdown, the ability to effectively compete becomes essential. Faster data access and sharing are critical for business success. Speed is critical for beating the competition, translating into a need for better latency. With MW products this means the ability to push your data from the [...]

HelloWorld — a bonus readme

By |2020-10-07T10:42:34+00:00November 4, 2008|

When you download the GigaSpacesXAP product (currently at version 6.6.1) you get a few really nice examples. With those examples come some very detailed instructions and explanations as to how to use GigaSpaces. These instructions are found in the "d...

Making EDA programming simple with JeeWiz

By |2020-10-07T10:57:47+00:00October 6, 2008|

Event Driven Architecture (EDA) is becoming more popular these days, as the drive for loosely coupled and scalable architecture forces us to break our systems into components and integrate them through some sort of workflow. Having said that, thinking in...

Is MapReduce going mainstream?

By |2020-10-07T11:01:26+00:00October 4, 2008|

I'm getting a lot of questions lately about the use of MapReduce: how it compares with other technologies such as Grid, and how the the different solutions that claims support for MapReduce (GigaSpaces included) fit into the puzzle. A good...

.Net Customer Announcement: Susquehanna (SIG)

By |2020-10-11T14:42:19+00:00March 11, 2008|

In the past few months we've made several exciting announcements, such as our partnership with SpringSource , the expansion of our executive team, the launch of our community site , the OpenSpaces Developer Challenge and the Start-Up Program . But there is nothing like a customer announcement, as in [...]

Update on Virgin Mobile post (thanks to Julian Browne)

By |2020-10-12T06:45:45+00:00December 13, 2007|

A while ago I posted a note about the success Virgin mobile experienced from switching to a Space-Based Architecture. I received a comment from Julian Browne that I think is informative and so I make it public here: *** Hi Owen - a backend system ...

SBA –all over the world!

By |2020-10-12T07:04:31+00:00October 22, 2007|


This Fellow seems to really like GigaSpaces and SBA!!

Check out his blog here.

I wonder where he got his material for the blog...?

I guess the influence of SBA on the architect is felt worldwide.

: )

It does my heart proud to see more and more the path of the parallel and co-located rising up to meet the feet of the technologists who seek it.


Project Creator Version .03

By |2020-10-12T07:26:51+00:00September 11, 2007|

(My good friend Toby Found a BUG (NPE) I have since fixed it and added one more trick)

You may download the latest jar from any of the links referring to it.
Such as this one here

(I only have the latest copy available and all links point to the same one)

Note the src.jar is similarly updated and can be found here

Added features:

For those of you who want to add additional files and get really fancy - and in anticipation of supporting Spring Remoting with at least one specified Interface and a possible DAO etc... I have added the ability to do two more things with project creator. (these will no doubt again be improved upon, but for now they suffice to allow me to extend the available use-cases this tool will support)

The Two Added Features:

  1. First Feature: (Pretty Cool and useable)
    Specify the existence of a properties file called and specify its directory. You specify the flag and also the relative or absolute directory containing file

    -customTokens ./extraStuffGoesHere

    -customTokens c:/tmp/wrk/extraStuffGoesHere

    The contents of that properties file is a series of named tokens and their replacement values.

    NB: The tokens must all begin with @


    # the use of this file allows you to add arbitrary name-value pairs which will
    # act as replacement tokens within the massaged (template) files.
    # the massaged (template) files are limited to:
    # whatever you provide as args to :
    # -setServiceTemplateName
    # -setPUTemplateName
    # -customTemplateFileNameList (comma-separated list of files found in the -templateDir)
    # as well as the always generated:
    # build.xml
    # the sometimes generated:
    # dataObject.javasrc
    # and the various files generated by the intellij and eclipse handlers
    #to avoid name conflicts it is advised to use a prefix such as @username.THETOKEN
    # Where username is the prefix and token is the thing you care about
    # note that in your template files you will have to provide the complete matching token
    @owen.description=/* A really wild ride baby! */
    @owen.methodsig= public static void doIt(){

  2. Second Feature: (Kinda ugly and less than simple to get correct)
    Specify the existence of additional files to be used as templates (The astute will notice this was hinted at in the comments within the example file above)

    It is important to note that there are several expected conditions within the project creator to enable this to work:

    1. You must specify the flag -customTemplateFileNameList followed by a comma-delimited string containing the filenames of the extra template files you wish to include

      -customTemplateFileNameList Message.javasrc_custom,readme.txt
    2. If adding additional java source files as templates: You must also specify the flag -customPackageDir and supply a single valid package into which they will *all* be placed

      -customPackageDir com.test.common.interfaces
    3. The package declaration of each of the additional java source templates should also contain this value as either hard-coded or using the following expected token: @customPackageDir
    4. The filename given to the java source template must contain the string: "javasrc" somewhere

      -customTemplateFileNameList ServiceInterface.myjavasrc_secondVersion
    5. The Resulting java Class or interface will be created using the first-half of the given template filename

      ServiceInterface.myjavasrc_secondVersion becomes
    6. As a result of the above, the Class or Interface name specified within the java template must match the first-half of the given template filename

      public interface ServiceInterface extends Serializable{
    7. Non-Java Files specified as part of -customTemplateFileNameList will be saved into the project root directory and will be given the exact same name as provided template filename

      readme.txt becomes readme.txt and is placed in the root directory of the project

      Again, the primary reason for adding such additional functionality is for me to be able to offer additional templates and examples of such things as Spring Remoting using OpenSpaces and the use of DAO decoupling - not to mention adding additional monitoring services and their associated datatypes that will store their discovered values using the space.
      If you find this additional (restrained) flexibility useful for your purposes as well --great! But feel free to ignore it as well.

      Finally, an example of a script that uses all the above-described features:
      (latest args made available in this release are in bold)

      Example Script: createCustomStuff.cmd
      rem Personal Settings (these change according to each machine environment)
      set JAR_FILE_LOCATION=./project-creator.jar
      set OUTPUT_DIRECTORY=D:\demoProjectCreator\out
      set JAVA_HOME=c:\java\jdk1.5.0_07
      if "%JSHOMEDIR%." == "." set JSHOMEDIR=c:\GigaSpacesXAP6.0

      rem Script-specific Configuration Settings:
      set PROJECT_NAME=Worker
      if "%IDE%." == "." set IDE=-eclipse
      set SERVICE_TEMPLATE_NAME=service.javasrc_myversion
      set PU_TEMPLATE_NAME=pu.xmlsrc
      set TEMPLATE_DIR_ARG=-templateDir ./dummytemplates

      rem the following points project-creator to
      rem the directory containing :

      set CUSTOM_TOKENS_ARG=-customTokens ./dummytemplates

      rem the following tells project-creator that the additional
      rem template files specified will exist in the -templateDir

      set CUSTOM_TEMPLATES_ARG=-customTemplateFileNameList Message.javasrc_custom
      set CUSTOM_PACKAGE_DIR_ARG=-customPackageDir com.test.common

      rem General Options
      rem elect to overwrite existing projects with same name:
      set OVERWRITE_OPTION=-overwrite

      End Of Example Script: createCustomStuff.cmd



version .02 Update to project-creator.jar –Make your own templates!

By |2020-10-12T07:27:07+00:00September 7, 2007|

I have made another fix to the project-creator.jar found here.

This fix allows you to specify

-templateDir X

X = path relative to the directory from which the script is invoked
X = Absolute path


Let's say I want to create a new template for my data Object so that it always has a defined String property.

I create a file called "dataObject.javasrc" (because that is currently the only name available for the dataObject template file)

The file could look like this:

package @packageName.common;

public class @dataObjectName {

private String dummyValue;
public void setDummyValue(String val){dummyValue=val;}
public String getDummyValue(){return dummyValue};


I save that file in:

in c:\tmp\openspaces I have a script that looks like this: (changes from previous examples are in different font)

rem Personal Settings (these change according to each machine environment)
set JAR_FILE_LOCATION=./project-creator.jar
set OUTPUT_DIRECTORY=c:/tmp/openspaces/output
set JAVA_HOME=c:\java\jdk1.5.0_07
if "%JSHOMEDIR%." == "." set JSHOMEDIR=c:\GigaSpacesXAP6.0

rem Script-specific Configuration Settings:
if "%IDE%." == "." set IDE=-eclipse
set SERVICE_TEMPLATE_NAME=service.javasrc_myversion
set PU_TEMPLATE_NAME=pu.xmlsrc

set TEMPLATE_DIR=-templateDir ./mytemplates

rem General Options
rem elect to overwrite existing projects with same name:
set OVERWRITE_OPTION=-overwrite



If I call that script from the c:\tmp\openspaces directory all will be well and it will find my new version of the dataObject.javasrc file.

If I do not want to call it from that dir everytime, I can instead provide the arg:

set TEMPLATE_DIR=-templateDir c:/tmp/openspaces/mytemplates

and call the script from anywhere.

If the template needed for an operation is not provided in your specified TEMPLATE_DIR, projectcreator will look for it in the jar file as usual.

The template directory structure is as follows:


All the templates are stored in the root of the templateDir except the files used for eclipse and intellij.

Some of the templates you can create must have certain names such as:

any of the eclipse or intellij files

The template files used for the and pu.xml files can be given any name you like.

Within the templates you create you can currently use any of the following as replacement tokens: (consult the source code found here for more details)

@projectName (Name of the project you want to build)
@spaceName (Name of the space you want to connect to ex: MySpace)
@propertySpaceName (Name of the space with a lowercased first letter – derived from @spaceName ex: mySpace)
@varGSHome (Path to [and including] Root Directory of your XAP installation)
@spaceUrl (This is derived from the @spaceName and your choice of remote or embedded)
@packageName (You specify this as the package for your first service in this Project)
@packageDir (This is derived from the @packageName)
@serviceName (You specify this as the name of your service class)
@dataObjectName (You specify this as the name of your data class (note the package name will set to @packageName.common to ensure this class is packaged in a separate jar file for classloading purposes)

I hope this addition makes this utility even more fun to use.



Project Creator Demo: tutorial (Webcast -no sound)

By |2020-10-12T07:27:16+00:00September 6, 2007|

I have created a webcast tutorial that should prove instructive to those seeking to utilize the projectcreator utility.

It demonstrates how to create the scripts, get the jar, build a simple application and run it.

It is my hope this will encourage more successful use of this tool and of the OpenSpaces platform.

Note that the webcast moves very quickly so you may want to ready the pause button to catch all the details. . . uh.. "there is no pause button..."
Sorry. Let me know if it is unusable the way it is.

You can watch the webcast by clicking the following link: projectcreator_tutorial_noSound

Remember: project-creator is *not* supported by GigaSpaces, but OpenSpaces and GigaSpaces are.

: )

--if you have questions regarding the use of the GigaSpaces core services or the OpenSpaces Spring abstraction layer, check out the award-winning documentation found: here .

And if you still have concerns, you can register with the online users forum and post them to the GigaSpaces Forum.