On Sat, Aug 29, 2009 at 12:12 AM, Enrico Bianco<[email protected]> wrote: > > I'm currently trying to integrate this with my application, which has > custom-written participants that make changes to models in the > application. The participants are defined and registered with the > engine when the Rails application starts up (not when the DRb ruote > instance does). I see the following error when one of these custom > participants is invoked: > > undefined method `new' for #<DRb::DRbUnknown:0x114b7b0>
Hello Enrico, I have no experience with drb, but let me ask for a few clarifications, maybe that'll explain Rui Ma for a further reply. Do you have a detailed stack trace for that "undefined method" issue ? Maybe you could show the piece of code where the error occurs. Do I guess correctly when I say that the error occurs on the remote (engine) side ? > I know that this particular participant never instantiates any new > objects, so I think this might be happening when the participant > itself is being instantiated and passed the workitem by ruote. Participants are instantiated at registration time. > Should participants be defined and registered when the engine starts > up instead of the app? How would those participants then access the > application models? I guess it's bit hard to push the work to a "remote" engine and then expect the participants to interact with "local" models. Thorny issue indeed. Best regards, -- John Mettraux - http://jmettraux.wordpress.com --~--~---------~--~----~------------~-------~--~----~ you received this message because you are subscribed to the "ruote users" group. to post : send email to [email protected] to unsubscribe : send email to [email protected] more options : http://groups.google.com/group/openwferu-users?hl=en -~----------~----~----~----~------~----~------~--~---
