# Use Java code in RoR

**URL:** <https://www.ruby-forum.com/t/use-java-code-in-ror/142369>\
**Category:** Rails\
**Created:** [July 7, 2008, 12:12pm UTC](https://www.ruby-forum.com/t/use-java-code-in-ror/142369 "2008-07-07T12:12:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![procrastinx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@procrastinx](https://www.ruby-forum.com/u/procrastinx)\
**Post date:** [July 7, 2008, 12:12pm UTC](https://www.ruby-forum.com/t/use-java-code-in-ror/142369/1 "2008-07-07T12:12:00Z")

</div>

Hi All,

I have some old code in Java which does a set of tasks which are  
needed by my RoR application.  
Currently the mecahnism is that there is a java web server which runs  
the Java code and the ROR app gets the data via http and XML.

## Is there a better/ faster way of doing this … i mean using the java code directly in my RoR app.

Thanks

---

<div class="post-metadata">

**Author:** ![procrastinx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@procrastinx](https://www.ruby-forum.com/u/procrastinx)\
**Post date:** [July 7, 2008, 12:35pm UTC](https://www.ruby-forum.com/t/use-java-code-in-ror/142369/2 "2008-07-07T12:35:59Z")

</div>

On 7 Jul 2008, at 11:09, Procrastinx wrote:

> Hi All,
> 
> I have some old code in Java which does a set of tasks which are  
> needed by my RoR application.  
> Currently the mecahnism is that there is a java web server which runs  
> the Java code and the ROR app gets the data via http and XML.
> 
> Is there a better/ faster way of doing this … i mean using the java  
> code directly in my RoR app.

Have you looked at jruby?

Fred
