Hubert Łępicki
2008-Oct-28 07:33 UTC
Ruby application talking to Java application (IPC suggestions please)
Hi all, I''m wondering how can I make RoR application talk to Java application running in background. Does anyone have any experience with this kind of stuff? Anny suggestions welcome. I am running Ruby on MRI, and Java application will run on the same machine but in JVM. Thanks, H. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
jemminger
2008-Oct-28 15:24 UTC
Re: Ruby application talking to Java application (IPC suggestions please)
+1 for restful web service, or perhaps run your rails app in jruby & then you can make java calls from ruby. On Oct 28, 3:33 am, Hubert Łępicki <hubert.lepi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > I''m wondering how can I make RoR application talk to Java application > running in background. Does anyone have any experience with this kind > of stuff? Anny suggestions welcome. > > I am running Ruby on MRI, and Java application will run on the same > machine but in JVM. > > Thanks, > H.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Bill Walton
2008-Oct-28 15:30 UTC
Re: Ruby application talking to Java application (IPC suggestions please)
Hi Hubert, Hubert Lepicki wrote:> I''m wondering how can I make RoR application talk > to Java application running in background.Web Services; RESTFUL or otherwise. Though you can do SOAP on Rails, I recommend picking up "RESTful Web Services" by Leonard Richardson and Sam Ruby. HTH, Bill --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hubert Łępicki
2008-Oct-28 18:42 UTC
Re: Ruby application talking to Java application (IPC suggestions please)
Hi, I went third route. I couldn''t use web services as I was clearly told not to use any Java web container. I also couldn''t use jruby, as I am dependent on some C++ libraries. Fortunately, there is nice library Ruby Java Bridge (http://rjb.rubyforge.org/) that helped me get around this issue and include my Java classes into project directly. Can''t say much about resources consumption/memory leaks or stability yet, but all looks good for now. Thanks, H. On 28 Paź, 16:24, jemminger <jemmin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> +1 for restful web service, or perhaps run your rails app in jruby & > then you can makejavacalls from ruby. > > On Oct 28, 3:33 am, Hubert Łępicki <hubert.lepi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi all, > > > I''m wondering how can I make RoR application talk toJavaapplication > > running in background. Does anyone have any experience with this kind > > of stuff? Annysuggestionswelcome. > > > I am running Ruby on MRI, andJavaapplication will run on the same > > machine but in JVM. > > > Thanks, > > H.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---