3tier suggestion (ROR <--> ROR <--> DB

I have to develop an ROR application that talk to it’s self.

3 Server (1st server ROR <—> 2nd server ROR <—> 3rd server DBMS)

How can I easily develop this ?

I think it’s too much effort to build 2 separate RORs project talk to
each others.

Please guide me. Thanks you in advance

What are you trying to achieve by this architecture? It is not entirely
clear but are you talking about the 2nd server being an
‘application/business logic’ server where the 1st server is the web
server?

Yes. I’m in situation to adapt this great MVC to multi-tier. Exactly
what you said.
which the first ROR of 1st server will act like web server talk to 2nd
another ROR (application tier) server be-hide firewall.

Just need suggestion if it has any easy method to implement Rails for
this than 2 separate rails projects.

Thank you

David K. wrote:

What are you trying to achieve by this architecture? It is not entirely
clear but are you talking about the 2nd server being an
‘application/business logic’ server where the 1st server is the web
server?

On Sunday, August 8, 2010, Pinit A. [email protected]
wrote:

I have to develop an ROR application that talk to it’s self.

3 Server (1st server ROR <—> 2nd server ROR <—> 3rd server DBMS)

How can I easily develop this ?

I’ve heard of similar architectures where the two Rails tiers use
ActiveResource to talk to each other. Basically the middle app exposes
resources as a web service, and the front app consumes them, using
ActiveResource so that it can treat them like ActiveRecord-like
objects.

Chris

Pinit A. wrote:

Yes. I’m in situation to adapt this great MVC to multi-tier. Exactly
what you said.
which the first ROR of 1st server will act like web server talk to 2nd
another ROR (application tier) server be-hide firewall.

What’s the point? I don’t see why you’d need 2 Rails apps here.

Just need suggestion if it has any easy method to implement Rails for
this than 2 separate rails projects.

Thank you

Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Sent from my iPhone

Thanks.

I have to build Rails App to deploy on existing architecture.

It’s Jboss (java) which I have successfully test it with jruby.

I have 1st server that all client can access in the same time it can see
2nd server which client don’t
2nd server running jboss too which can connect to database server which
1st server can’t
the 3rd server is database.

I cannot install or reconfig them but can deploy Java WAR to it which
jruby+rails+warbler can do it.

That is my situation. I will try Activeresource as Chris M. suggest.
But I’m looking for something easier if any of you have experience with
it.

Alternatively I’m thinking about write a ROR app that act-like proxy to
real ROR app on 2nd server, Is it possible ? Any suggestion ?

Marnen Laibow-Koser wrote:

Pinit A. wrote:

Yes. I’m in situation to adapt this great MVC to multi-tier. Exactly
what you said.
which the first ROR of 1st server will act like web server talk to 2nd
another ROR (application tier) server be-hide firewall.

What’s the point? I don’t see why you’d need 2 Rails apps here.

Just need suggestion if it has any easy method to implement Rails for
this than 2 separate rails projects.

Thank you

Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Sent from my iPhone

Hi,
(not discussing if your approach is the best)
You can create a Service layer (search for Domain Driven Development
layers)
in top of your logic in the business app, in fact you should. And make
it
accessible in the presentation tier via EJB invocation.
I think it will be better performant and fastest to develop than
invoking
the business tier via XML.
So your calls will be like:
presentation_tier.jruby → presentation_tier.java -(through ejb)->
business_tier.java → business_tier.jruby …

Let us know about your final approach.

Regards

2010/8/9 Pinit A. [email protected]

the 3rd server is database.

Just need suggestion if it has any easy method to implement Rails for

[email protected][email protected]
.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

Oliver Hernà ndez Valls

http://codit.wikidot.com
http://wiki.tramuntanal.cat