Marnen Laibow-Koser wrote:
> Raf Jaf wrote:
>> Hi,
>> 
>> We are using Ruby on Rails for an internal project. The data for our
>> model objects exists in many different data sources (database,
>> mainframe, etc), so we we need to avoid using ActiveRecord.
> 
> That doesn't follow.  ActiveRecord is capable of dealing with multiple 
> databases.  What's the point of avoiding it?
> 
>> Our
>> development teams built a data service layer in Java that provides
>> access to our company's information. We want to place Ruby/Rails in
>> front of this data service layer and integrate our model components to
>> get populated from that same Java layer.
>> 
>> So, we want to replace ActiveRecord in our model classes and replace it
>> with code integrated with our Java data services framework. Is there an
>> example that demonstrates how to replace ActiveRecord with Java code?
> 
> Can't you just use ActiveRecord and ActiveResource?  You probably don't 
> need the Java framework, unless there's something I don't understand 
> here.
> 
>> 
>> Thank you
> 
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> [email protected]

The point of avoiding ActiveRecord is because our data sources are 
disparate, meaning that they include databases, mainframes, and, in some 
cases, sources that expose only a message-based interfaces (JMS, etc). 
Furthermore, data from these sources needs to be mapped and processed 
through rules before being populated in model objects and presented to 
the client. Our Java data services layer handles all of this, so it's 
just a matter of integration Rails/Ruby with that interface. We intend 
to use Rails for our presentation tier only, not as a end-to-end 
solution.

The Java framework already exists, and we want to reuse what we have 
available.

Does that make sense now?
-- 
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 [email protected].
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.

Reply via email to