Hi All

 

I'm having a major problem with my reactor setup in production no reloading
after an XML change.

 

I'm running reactor inside a MG2 app with coldspring. I have reactor set to
production mode and I have MG's reload set to false. So I assume then
everything is cached in somewhere in application scope.

 

Now, for example say I add a new field to a table this is my process:

 

Change the xml

Change the form where the field displays

If im using generic commits via MG then I don't change my controllers,
otherwise I change any controller logic, custom validation rules etc.

 

After the code change I upload all of this to the QA and production
environments. I then call

 

http://www.mydomain.com/index.cfm?init=true

 

My understanding here was that using 'init=true' causes any controllers etc
cached in scope to be reloaded. However, it appears that my reactor
generated code doesn't reload!!

 

So, I built a little cfm script that deletes all the 'project' files that
reactor generates. Eg.

 

http://www.mydomain.com/admin/reactorDeleteObjects.cfm?object=customerProfil
e

 

This file then deletes off the disk

C:\wwwroot\reactor\project\myproject\dao\customerProfileDao.cfc

C:\wwwroot\reactor\project\myproject\gateway\customerProfileGateway.cfc

C:\wwwroot\reactor\project\myproject\metadata\customerProfileMetadata.cfc

C:\wwwroot\reactor\project\myproject\record\customerProfileRecord.cfc

C:\wwwroot\reactor\project\myproject\to\customerProfileTO.cfc

C:\wwwroot\reactor\project\myproject\validator\validator.cfc

 

However, I keen running into the problem that things aren't being reloaded
in memory and we get strange errors saying 'element newField is undefined in
qRead'. It appears the only thing that gets this fixed is to restart the CF
instance.

 

Is this some kind of MG thing that I have to reload the scope on every
controller in my app ? (I have probably 4-5 controller objects)

 

Is there some other way to reload reactor objects without having to stop the
CF Instance ? 

 

Patrick

 

 

Patrick Branley
-------------------------------------------------
Senior Application Developer
Red Square :: Internet Design & Development

Level 3, 414 Kent St 

Sydney 2000

<Ph :: +612 8289 4966 />
<Fax :: +612 8289 4901 />

 <http://www.redsquare.com.au/> www.redsquare.com.au



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to