File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ruby and the fly likes Ruby and J2EE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Ruby and J2EE" Watch "Ruby and J2EE" New topic

Ruby and J2EE

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2068
Does ruby also fit in J2EE applications? In what ways?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

Are you saying whether you can run Ruby applications in a J2EE server ?

Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
In theory, you could embed Ruby code into a J2EE application using JRuby.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Justin Gehtland
Ranch Hand

Joined: Jan 30, 2007
Posts: 31
As Lasse said, there's JRuby. Without a compiler, it is mainly used to glue together existing J2EE apps or components right now, but eventually, they'll get a compiler working and you'll be able to marshal objects in both directions.

Conversely, we've been able to integrate through messaging channels (RESTfule web services, SOAP, and STOMP for messaging). I much prefer this strategy because it implies that you have a well-factored application design in the first place, and the Ruby code could be anything, as long as it can process the messages correctly.
I agree. Here's the link:
subject: Ruby and J2EE
jQuery in Action, 3rd edition