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 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 Sun, Aug 8, 2010 at 12:57 PM, Pinit Asavanuchit <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>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 think it''s too much effort to build 2 separate RORs project talk to > each others. > > Please guide me. Thanks you in advance > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 Kahn 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?-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sunday, August 8, 2010, Pinit Asavanuchit <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Pinit Asavanuchit 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 marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org Sent from my iPhone -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 Mear 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 Asavanuchit 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 > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > Sent from my iPhone-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 Asavanuchit <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>> 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 Mear 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 Asavanuchit 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 > > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > > > Sent from my iPhone > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > 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 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.