How to use codebase and GigaSpaces

In order to use codebase you need to place your classes/jars at webserver folder , and make sure your application java.rmi.server.codebase property will have the location of the HTTP address defined correctly.

See more info here: http://java.sun.com/j2se/1.4.2/docs/g...

Examples for using codebase:

If the location of your downloadable classes is on an HTTP server named "webvector", in the directory "export" (under the web root), your codebase property setting might look like this: -Djava.rmi.server.codebase=http://webvector/export/

If the location of your downloadable classes is on an HTTP server named "webline", in a JAR file named "mystuff.jar", in the directory "public" (under the web root), your codebase property setting might look like this: -Djava.rmi.server.codebase=http://webline/public/mystuff.jar

Now let's suppose that the location of your downloadable classes has been split between two JAR files, "myStuff.jar" and "myOtherStuff.jar". If these JAR files are located on different servers (named "webfront" and "webwave"), your codebase property setting might look like this: -Djava.rmi.server.codebase="http://webfront/myStuff.jar or http://webwave/myOtherStuff.jar"

Please note that GigaSpaces comes with web server called Webster. You can use it for Dynamic code downloading.

See the following section at one of the container schema files \GigaSpacesEE5.0\config\schemas\XXX-container-schema.xml:

<embedded-services> <httpd> <enabled>${com.gs.embedded-services.httpd.enabled}</enabled>

<additional-roots></additional-roots>

<explicit-binding-address>${java.rmi.server.hostname} </explicit-binding-address> </httpd> </embedded-services>

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=2286]{quote}

asked 2006-03-30 21:21:01 -0500

bernard gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete