auto reload non extension class files

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
huhailong
Posts: 28
Joined: 14 May 2010, 04:39

auto reload non extension class files

Post by huhailong »

This seems to be a pretty trivial problem that I *hope* has an answer not involving "please upgrade to 2X" since that option would require a huge amount of rewriting.

We are currently using 1X and we've noticed that the autoreload functionality only applies to Extension classes, however since our application is pretty complex, we require to have the same autoreload function for non-Extension class files, like for example DAO classes. How have other users of SFS 1X handled the case of pushing to a live server new non-Extension application class files without restarting the sfs server?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: auto reload non extension class files

Post by Lapo »

When you reload the main Class of your extension all other classes in your application are reloaded as well.
Other dependencies don't get reloaded because they usually are already in the classpath. If you want your DAO classes to be reloaded deploy them together with your extension code.

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply