Hi Filip,
The classloader implementation in the stable release of SF does not allow to
unload and reload classes. There is a development branch in SVN where we have
integrated OSGi which does (among other things) what you want but it has not
been merged into the main branch yet.
The mechanism that we have used to reload classes without restarting the
daemon is to deploy your components in a sub-daemon (in SF terms a SubProcess).
When you want to redeploy your components then you just replace the jars and
then restart the subprocess that will load the new classes during start. The
thing that you have to be careful with is that the new classes are not
referenced in the main (ROOT) daemon so that you do not get API errors.
In any case, it is also a good practice to deploy apps/components in
subproceses to protect the main daemon from JVM crashes caused by unstable app
code.
Best regards,
Julio Guijarro
From: Filip Nguyen [mailto:[email protected]]
Sent: 09 May 2012 09:41
To: [email protected]
Subject: [Smartfrog-users] Dynamic classloading
Hi!
I have setup dynamic classloading on my nodes but to reaload a class I have to
restart the daemon.
Is there a way to remedy this? Basically I do not want to restart daemons on
every node just because I have modified some components...
-- Filip
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Smartfrog-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/smartfrog-users