This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 2049
Does ruby also fit in J2EE applications? In what ways?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

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.
Don't get me started about those stupid light bulbs.
subject: Ruby and J2EE
Similar Threads
web using Ruby
Ruby Application Performance
IntelliJ Ruby on Rails support?
Need help running Java as script (urgent)
So why should I switch to Ruby?