From: Zach Dennis Date: 2005-10-19T00:41:33+09:00 Subject: Re: ruby on rails integration with j2ee ittay.dror@gmail.com wrote: > Hi, > > I'm starting to look at ruby-on-rails, and while it sounds like a great > platform for web GUI, i want to keep the server side in j2ee. I have an > application where performance is important and where the server has a > logic separated from the web gui (that is, it takes actions that are > not initiated from a web page load/submit) > > What are your thoughts on this? > > Do you know how to integrate ruby-on-rails with j2ee? So that the GUI > work is in RoR, but it calls a j2ee API (rmi, or maybe web services) > I would think you would need to have your Controller's call the rmi or web services interfaces, so you can populate all of your data inside of ruby variables. That way you still can get the flexibility and power of the ruby inside your view. You may want to create a Proxy object which handled the to-java communication for you, and have your Controllers deal with the Proxy. This way you would at least minimize the knowledge and exposure to your java calls, and the Controllers and Views could be left to only work in a rails-like fashion w/o having to worry about the outside world... just my initial 2 cents... =) Zach