Rick Olson wrote:
> On 7/25/06, Curtis Spencer <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I have a controller where I access a singleton class that I use to
>> connect to a DRbprocess
>>
>> DrbConnector.instance.some_method
>>
>> I notice that on every request, the constructor is called so it is
>> making a new instance of this singleton.  Is this normal?
>>
>> Thanks,
>>
>> Curtis
> 
> If you look in the mongrel source under
> trunk/projects/mongrel_upload_progress, I start and maintain a drb
> process.
> 

Rick,

Thanks for the information.  This looks to be a little lower level than 
I was originally working with (using Mongrel handlers instead of Rails 
Controllers).  Do I need to bind a variable to a Mongrel constant in 
order to have it persist between requests?  My question is more about 
why the singleton is reinitialized every request rather than about drb 
specifically.

Thanks,
Curtis

_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to