search for: drbssl

Displaying 2 results from an estimated 2 matches for "drbssl".

Did you mean: drbl
2006 Jun 07
1
Using DRb within Rails
...end def process(amount, card, type = :auth) @biller.process(amount, card, type) end def set_card(user_id, number) @biller.set_card(user_id, number) end protected def initialize DRb.start_service nil, nil, PaymentGateway.ssl_config @biller = DRbObject.new(nil, "drbssl://#{PaymentGateway.host}:#{PaymentGateway.port}") end end In my environment.rb file, I set up the config options. For development/testing I''ve set up a mock class so it doesn''t actually have to use DRb. In my code, I just do gateway = PaymentGateway.gateway gateway.set_c...
2006 Jun 15
12
Multithreading and DB access in Rails
I just tried writing some controllers, etc. that would allow me to start and monitor background tasks running in new (Ruby) threads, with the idea that I''d eventually manage long-running indexing processes that way. I can kick off such threads OK (by using Thread.new in a routine called by a controller), but it seems like Rails gets huffy if those background tasks and the ordinary