Class files are automatically stored to disk. This is under performance and how often these class files should be checked (AFAIK).
The class files are then stored under WEB-INF/railo/cfclasses
--
Did you find this reply useful? Help the Railo community and add it to the Railo Server wiki at https://github.com/getrailo/railo/wiki
---
You received this message because you are subscribed to the Google Groups "Railo" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/0678fe1b-6efd-4785-b1ef-2bdaf7d8f711%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to a topic in the Google Groups "Railo" group.To view this discussion on the web visit https://groups.google.com/d/msgid/railo/etPan.51f7f55a.216231b.9ad9%40railo.home.
Then put the setting check every time. I mean, then it will still compile it, save it to disk, but just every time. I shall defer to the engineering team on the precise process (i.e. if it needs to actually compile to disk) but I don't understand why you need to turn that off (or on) since it's nothing to do with you (I don't mean, you Brad, I mean a developer in general) as it is the internals of Railo
Again, I am just a propeller head and have no actual details on the compile time settings.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/CALbQ1onvcPiKKATj%3DuEmTfdWpGaiZioXXPkwxaATy%2BR9rj1-ww%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/etPan.51f7f6f1.140e0f76.9ad9%40railo.home.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/CALbQ1o%3DNoxnrb8VkOJSK-1HPukPN46JhgHUj%2B90ci3m8NDAKNg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/525CF06AE9444AEAAE72BE61F09F7BCB%40getrailo.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/CALbQ1okbD-EsSXqYH8z24u0GsFPx6BUXpZiQBcYrrcjE%2BwqSuA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
-- Igal Sapir Railo Core Developer http://getRailo.org/
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/CALbQ1o%3DNoxnrb8VkOJSK-1HPukPN46JhgHUj%2B90ci3m8NDAKNg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/CAFwR%2BKdZWMtjK_4Fz0KCZ0SkAwF4d3dYdp_9XyUcshKFL7BZ_w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Did you find this reply useful? Help the Railo community and add it to the Railo Server wiki at https://github.com/getrailo/railo/wiki
---
You received this message because you are subscribed to the Google Groups "Railo" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/CANUZm76sFfmEfB%3D-tDicScOv5QnDJUJQNPUchRN8HdUK3GXvcw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
-- Igal Sapir Railo Core Developer http://getRailo.org/
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/51F80081.1010804%40getrailo.org.
--
Did you find this reply useful? Help the Railo community and add it to the Railo Server wiki at https://github.com/getrailo/railo/wiki
---
You received this message because you are subscribed to a topic in the Google Groups "Railo" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/CANUZm76sFfmEfB%3D-tDicScOv5QnDJUJQNPUchRN8HdUK3GXvcw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/CALbQ1onTfOyc-atWTxMfjCb40nZ8n-BgoCC-QCv1KTRP%2BM0F%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
perhaps they fixed that, but in ACF8 if you had modified a template 10 times you would get 10 different class files with different numeric suffixes, which was creating huge problem when not addressed in time.
That's possible. I ran my test in ColdFusion 10 Update 11 when I confirmed that the class files are re-used. I don't have ACF 8 or 9 installed right now to try them.
if you create a bunch of classes then you should probably add some cleanup process that will run periodically and remove files older than x seconds.
You mean writing CFML code to delete the Railo class files? Honestly, I'm kind of in the same mindset as Mark on this-- developers ideally shouldn't need to concern themselves with the internal workings of the application server. I would suggest rather than Railo delete class files once the .cfm file has been removed.
also, perhaps those libraries should reconsider their file naming conventions.
What would you suggest? We need to account for any number of concurrent threads creating any number of unique method stubs at a single time on the server by writing files to a shared directory in a way that avoids any collisions. Forcing a unique name for each file is certainly the easiest way to accomplish this. The only other method I can think of is if we kept a running list of rotating filenames in use and marked them as unused after we deleted the .cfm so we could use them again. But that's a lot of work to avoid something that in my opinion the application server should be cleaning up on its own. (class files with no corresponding cfm/cfc file) Do you have other suggestions on how to avoid file collisions without unique names?
Thanks!
~Brad
ColdBox Platform EvangelistOrtus Solutions, Corp
E-mail: br...@coldbox.orgColdBox Platform: http://www.coldbox.org
On Tue, Jul 30, 2013 at 1:26 PM, Igal @ getRailo.org <ig...@getrailo.org> wrote:
perhaps they fixed that, but in ACF8 if you had modified a template 10 times you would get 10 different class files with different numeric suffixes, which was creating huge problem when not addressed in time.
if you create a bunch of classes then you should probably add some cleanup process that will run periodically and remove files older than x seconds. also, perhaps those libraries should reconsider their file naming conventions.
--
Did you find this reply useful? Help the Railo community and add it to the Railo Server wiki at https://github.com/getrailo/railo/wiki
---
You received this message because you are subscribed to the Google Groups "Railo" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/CALbQ1o%3DXE8bHzw8Q%3DvDWKO5AKEQ2uEUVEbOwWy%2BBKRNpqs6B4w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Did you find this reply useful? Help the Railo community and add it to the Railo Server wiki at https://github.com/getrailo/railo/wiki
---
You received this message because you are subscribed to a topic in the Google Groups "Railo" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/CAB%3DtfTq%3D-XW88%2BNF017T%2B7W3i5ep1qo9QmmM5mDfNASVLDbqcQ%40mail.gmail.com.
perhaps they fixed that, but in ACF8 if you had modified a template 10 times you would get 10 different class files with different numeric suffixes, which was creating huge problem when not addressed in time.
I feel an Adam Cameron blog post brewing... Or a disturbance in the Force... I am never sure of which :)
As an aside, Railo does create sub folders and doesn't need to create classes for each function in a CFC so the number of files is greatly reduced
To view this discussion on the web visit https://groups.google.com/d/msgid/railo/51F8032E.3070604%40getrailo.org.