ruby on rails integration with j2ee

I

ittay.dror

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)

Thanx,
Ittay
 
Z

Zach Dennis

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
 
I

ittay.dror

also http://www.jboss.com/products/seam

the thing that attracts me to ruby is that it is scripted. i think that
java (or any other typed language) doesn't fit for web gui programming.


however, i won't go into an adventure of trying to figure out for
myself how to make ruby and java work together, so if you or any reader
have references to that, please post them.

thanx,
ittay
 
T

Tanner Burson

------=_Part_510_24998156.1129666171309
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

also http://www.jboss.com/products/seam

the thing that attracts me to ruby is that it is scripted. i think that
java (or any other typed language) doesn't fit for web gui programming.


however, i won't go into an adventure of trying to figure out for
myself how to make ruby and java work together, so if you or any reader
have references to that, please post them.


Ruby includes in the standard distribution a SOAP and I believe XML-RPC
implementation. It would be pretty straightforward to use Ruby to connect t=
o
a Java web-service and pull the data that way. You could even use this to
populate your models in rails, so that you can take better advantage of
Rails as a whole. Off-hand I don't have any links to anyone using this
approach, but it seems as if it should be pretty straightforward.

thanx,


--
=3D=3D=3DTanner Burson=3D=3D=3D
(e-mail address removed)
http://tannerburson.com <---Might even work one day...

------=_Part_510_24998156.1129666171309--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,181
Messages
2,570,970
Members
47,536
Latest member
VeldaYoung

Latest Threads

Top