Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Question about running GSC and the code under $GS_HOME/deploy

How much do the GSM & GSC 'know' about the code under the deploy/ tree?

IOW, if you distribute new code under the $GS_HOME/deploy directory, do you need to restart your GSC? Can you just undeploy/redeploy those PUs and it'll load the new code?

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

asked 2008-06-26 10:53:07 -0600

kov gravatar image

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

First of all - The deploy folder can be configured to be anywhere you want. See below how:
http://www.gigaspaces.com/wiki/display/OLH/OpenSpacesProcessingUnitStructure

When ever you deploy a PU , the GSM http root folder will be examined and used and the relevant PU folder will be sent to the GSC.

Please also note the following:
We should separate the discussion into POJOs as services and POJOs as Space domain classes.

For refreshing services while the system is running see:
http://www.gigaspaces.com/wiki/display/OLH/OpenSpacesCoreComponent-ServiceReloading

For new Space domain POJOs introduced while the system is running – there is no problems with such. Since the POJO itself is not serialized , only its fields (If it is implementing Externalizable the POJO is serialized) the space does not need the POJO class as part of the its classpath.

We did had some enhancement with 6.5 that deals with POJO space domain classes that have non primitive fields.
With 6.5 the non primitive field classes will be loaded dynamically. No need to place POJOs or their non native fields as part of the space classpath.

Shay

answered 2008-06-26 14:06:02 -0600

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Thanks, I think my question was simpler and less interesting than the one you answered. I'm not asking about redeploying or 'refreshing' the running service, I'm asking about the container and the GSM. If I have a GSC already running, then I post updated code for one of my PUs into the PU-folder on that machine, is there anything in the GSC that needs to be updated before I run a gs-pudeply command?

kov gravatar imagekov ( 2008-06-26 20:51:57 -0600 )edit

The one that is responsible for the deployment is the GSM - this should have access to the deployed code - i.e. to the deployed folder. That's it. Shay

shay hassidim gravatar imageshay hassidim ( 2008-06-26 21:27:27 -0600 )edit

Hi,

All you need to do is: undeploy to remove the old version and than deploy the latest version.

Cheers, Guy

nirpaz gravatar imagenirpaz ( 2008-06-27 00:25:19 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2008-06-26 10:53:07 -0600

Seen: 44 times

Last updated: Jun 26 '08