Topic: Interface RoR with other software - is it possible?

Hello everybody,

I'm working on a specialised/proprietary database. Some time ago, a servlet has been written that  implements a (binary) RPC mechanism to access that db's functionality - method calls, exceptions, data are all marshalled through a binary stream to java land..

My question is what chances do I have to implement such a mechanism to interface that db with Rails ... I couldn't find any doc relating to something like that ..

Ideally, I should be using it like this:

[Ruby -land]
...
db_connector = MyDBRemoteConnector.new()
some_results = db_connector.remote_method(args)
...

Thanks for any ideas,
Dan

Re: Interface RoR with other software - is it possible?

You'll want to look at ActiveRecord connection adapters (rails/activerecord/lib/active_record/connection_adapters). The interface is given by the abstract connection adapter, but you may find it more instructive to look over a few of the adapters such as firebird and mysql to see how they were implemented.