|
Summary: Launches a space container; a space; an HTTP Daemon; the Jini Lookup Service; the Jini Distributed Transaction Manager Service; and the JavaSpaces Service and RMI Registry.
OverviewThe GigaSpaces server is designed to run the core GigaSpaces Container and space(s) as part of the Jini 2 service starter.
The gsServer utility starts the above services together with a default space called myCache running as part of a container called myCache_container using the default schema and properties defined as part of the gs.properties file.
gsServer vs. gsInstanceThe GigaSpaces Instance starts a light version of the GigaSpaces server, which loads a container and one space, using the gsInstance script. It differs from the GigaSpaces Server – the gsServer uses code defined by Jini, while the gsInstance script uses code defined by GigaSpaces. Moreover, the GigaSpaces Instance starts services which are defined in the GigaSpaces configuration, while the GigaSpaces Server starts services which are defined in the Jini configuration.
Syntax & ArgumentsSyntaxThe full gsServer syntax (the arguments passed below are optional): gsInstance "/./newSpace?schema=persistent" "../../classes" "-DmyOwnSysProp=value -DmyOwnSysProp2=value" The following command starts a space called mySpace running as part of a container called mySpace_container: gsServer "/./mySpace"
The following command starts clustered replicated spaces with synchronous replication: gsServer "/./mySpace?cluster_schema=sync_replicated&total_members=2&id=1&schema=cache" gsServer "/./mySpace?cluster_schema=sync_replicated&total_members=2&id=2&schema=cache" The following command starts clustered partitioned spaces: gsServer "/./mySpace?cluster_schema=partitioned&total_members=2&id=1&schema=cache" gsServer "/./mySpace?cluster_schema=partitioned&total_members=2&id=2&schema=cache" ArgumentsThe gsServer arguments are passed through the command line. These arguments are optional – if you do not want to pass any arguments, you don't have to specify anything in the command line, as seen below: gsServer You can use three arguments. All arguments must be enclosed by quotes (" "). If used, the arguments must be entered in the following order (descending):
If you are using the third and/or second argument only, you must use empty quote signs for the argument or arguments that come before the one you are using. For example: gsServer "" "" "-DmyOwnSysProp=value -DmyOwnSysProp2=value" In the example above, only the third argument is used, so two pairs of empty quote signs are written before it. In this case, the default URL and classpath (defined in the gsServer script) are used, and only the system properties are appended. |
Wiki Content Tree
Your Feedback Needed!
We need your help to improve this wiki site. If you have any suggestions or corrections, write to us at techw@gigaspaces.com. Please provide a link to the wiki page you are referring to.
Add Comment