Skip navigation
Toggle Sidebar

Project Documentation

Installation Instructions

Unzip the project distribution under the GigaSpaces XAP root directory. After that you should not have the following new directories in the distribution:

  • Under <GigaSpaces root>/examples/openspaces you should have a dotnetservice directory, which contains an example for a .Net processing unit.
  • Under <GigaSpaces root>/examples directory, you should have a NetInterop directory which contains the .Net solution.
  • Under <GigaSpaces root>/lib/ServiceGrid directory, you should have a dotnet directory which contians all the DLL files needed to run the .Net processing unit.

Usage Instructions

In order to use the .Net processing unit, you should do the following:

  1. Implement the NetInterop.IService interface. This interface has two methods - start() and stop(). The start method receives an array of String arguments, the first of which is a space URL which the implementation can use to access the Space (this URL can be embedded).
  2. Create a DLL file that contains the above implementation.
  3. Create an OpenSpaces processing unit with the following bean defined:
    <bean id="dotNetService" class="org.openspaces.netservice.JavaNetBean">
        <property name="spaceUrl" value="/./mySpace" />
        <property name="args" value="" />
        <property name="netDllName" value="UserService.dll" />	 
    </bean>

The JavaNetBean instance defined above loads the netDllName DLL file, which points to the DLL created in the previous stage.
It will then call the start() method of the IService implementation, passing it the given spaceUrl as first argument and the value the args property as the following arguments (this should be a semicolon separated list of arguments).
When the processing unit will be shut down, the stop() method will be called.

Examples

The project is provided with a sample build script and a readme file which describes how to use it.
The build script builds a sample implementation of the .Net processing unit and deploys it to the GigaSpaces SLA driven container. Please refer to the readme file for more details.







Adaptavist Theme Builder Powered by Atlassian Confluence