Meaningless Drivel is fun!
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 2066
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