Displaying 2 results from an estimated 2 matches for "myappserverobject".
2006 Apr 08
3
[Tip] Application Wide Context Howto
...t.
It''s uses are only limited to your creativity ;) Of course you might
want to publish a different class then a hash in this AppServer. If
you want to do that then just replace this:
$application_wide_hash = Slave.new(Hash.new).object
with this:
$application_wide_hash = Slave.new(MyAppServerObject.new).object
The slave library will take care of forking a background process and
starting a drb server inside said process. Then the heartbeat takes
care of shutting down the AppServer when you shut down rails so you
don''t get orphaned AppServers. Of course all the context in your...
2006 Apr 11
4
Managing "application scope" data - best practices
All,
I have some data that I need to be able to see across the application.
For J2EE people out there, I need something that I want to have
available in the "application scope" of my app.
What is the best way to handle this?
I''m trying to access a class variable that I created in my controller
from my view (to no avail).
Create a class variable in my helper class and use