Hi there. I am trying to get automatic reloading of WebORB service classes upon changes to the file when in development mode. I''ve inlcluded the ''Reloadable'' module, but the class is not being reloaded after changes are made without restarting the server. I suspect the problem is that I do not know the class that will be loaded beforehand. It is loaded dynamically by calling both: require ''UserService'' and then: Object.const_get ''UserService'' Where the string ''UserService'' comes over the wire from a Flex client. Is there an easy way to get these classes to be reloaded by the ruby interpreter? Does anyone know how Reloadable works under the hood? It would be a great help if anyone has some insight here. Thanks, ~harris -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
What up everyone? I solved the problem... for anyone interested in more details about how "Reloadable" works I provided some details about my solution here: http://blog.themidnightcoders.com/2006/12/reloadable-reloaded-auto-reload-weborb.html Happy holidays to any and all that celebrate holidays! ~harris Harris Reynolds wrote:> Hi there. I am trying to get automatic reloading of WebORB service > classes upon changes to the file when in development mode. I''ve > inlcluded the ''Reloadable'' module, but the class is not being reloaded > after changes are made without restarting the server. > > I suspect the problem is that I do not know the class that will be > loaded beforehand. It is loaded dynamically by calling both: > > require ''UserService'' > > and then: > > Object.const_get ''UserService'' > > Where the string ''UserService'' comes over the wire from a Flex client. > Is there an easy way to get these classes to be reloaded by the ruby > interpreter? Does anyone know how Reloadable works under the hood? > > It would be a great help if anyone has some insight here. > > Thanks, > > ~harris-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---