Using Reloadable in WebORB Rails Services

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

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 R. 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