> current working directory is one obvious difference that does screw up > some things. > > Fred
thanks for your quick response! still, it's not working. everytime i call an instance-method of 'some_class' in my remote application, it crashes. without copy/paste-ing a whole bunch of code, here is what happens (in pseudocode): [code] >> myobject = MyObject.new >> myobject.save >> myobject.my_instance_method! NameError: uninitialized constant MyObject::RemoteAppControlClass from (druby://localhost:9003) /home/n0ne/_files/work/_code/ my_remote_app/vendor/rails/activerecord/lib/../../activesupport/lib/ active_support/dependencies.rb:478:in `const_missing' from (druby://localhost:9003) ./app/models/my_object.rb:95:in `my_instance_method!' from (druby://localhost:9003) /home/n0ne/_files/work/_code/ my_remote_app/lib/drb_server.rb:30:in `some_method' from /home/n0ne/_files/work/_code/my_local_app/app/models/ my_object.rb:97:in `my_instance_method!' from (irb):6 [/code] explanation: - there are two rails-apps 'my_local_app' and 'my_remote_app' - both apps share a common database-connection for 'MyObject' (with the plugin use_db) - when 'my_local_app' calls 'my_instance_method!' it's redirected (via drb_server) to 'my_remote_app' and 'my_instance_method!' gets evaluated there - when starting both apps individually this works great! which means there is no fundamental error in my code. - when starting 'my_remote_app' through the 'remote_app_control_class' i get that weird error. - a manual start is done by calling 'script/start_remote_app' - a remote startis done in 'my_local_app' by the 'remote_app_control_class' calling 'system "#{path}/script/ start_remote_app"' i can only assume, that there is a problem with the environment ENV or something similar. is there a way of getting a clean/fresh ENV for my system call (so that it is just like i would have started it manually)? thanks again dominik --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---