1

I have a project which will need to have some Java layer. I am wondering it if is reasonable to try to avoid using jRuby by having the Ruby code call some URL that would invoke a Java controller, which, I guess, would return some JSON.

Is that a reasonable approach? Or does it have inherent problems when in comes to architecture and would be a pain in the long run?

Also, if it is just Ruby, can it still be hosted on Tomcat and be part of my .war file? And What is that rails part that I will seem to be missing?

1 Answer 1

1

You could do it either way. For me it would be easier not to involve Java in the mix, and keep Ruby talking to JRuby. Also, I'm not sure if you know this or not, but JRuby is also available as a self contained interpreter. Look for the complete jar in the download page.

Also, if Java is a must, you could call the Ruby code from Java, via the scripting engines, as presented here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.