On Aug 28, 12:30 pm, John Mettraux <[email protected]> wrote:
> 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 ?
Unfortunately, I can't get a full stack-trace. That was inside the
ProcessError log entry. But I think your guess is correct.
>
> > 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.
Strange, because if that's the case then why did the error occur
during the process? *puzzled*
>
> > 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.
Incredibly. I'm very tempted to just switch to using a separate ruote-
rest server after all. But since I integrated ruote to my application
using ruote_plugin to begin with, the amount of refactoring that would
be required to separate them again is reason enough to seriously
consider alternatives.
But in good news, I did get the participants to work, in the end. I
shuffled code around so that the DRb process was defining and
registering them instead of the application. Somehow that "Just
Works." Now I'm just finding that any expressions that use the
scheduler are not getting fired.
>
> Best regards,
>
> --
> John Mettraux - http://jmettraux.wordpress.com
Thanks for all the help!
- Enrico
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---