Building GUI using Ruby on rails communicate (real time) with Java application running on linux

60 views
Skip to first unread message

Shailendra Jain

unread,
May 3, 2014, 7:59:59 PM5/3/14
to rubyonra...@googlegroups.com
Hi,

  I have a requirements below.

   A stand alone Java application running on Linux machine using mysql databse to store/retrieve data.  

   I need to build GUI to allow end user to fetch/update records from/to mysql database and at the same time the stand alone Java application should handle the real time requests from GUI to perform business logic. 
  
  Question : What would be the best approach recommended here for a java application to handle requests from GUI (ruby on rails app) ? Can websocket be preferred? or any other alternatives?


Thanks,
Shailendra 

  
  

Hassan Schroeder

unread,
May 4, 2014, 12:04:08 PM5/4/14
to rubyonrails-talk
On Sat, May 3, 2014 at 4:59 PM, Shailendra Jain
<shailen...@gmail.com> wrote:

> A stand alone Java application running on Linux machine using mysql
> databse to store/retrieve data.
>
> I need to build GUI to allow end user to fetch/update records from/to
> mysql database and at the same time the stand alone Java application should
> handle the real time requests from GUI to perform business logic.
>
> Question : What would be the best approach recommended here for a java
> application to handle requests from GUI (ruby on rails app) ? Can websocket
> be preferred? or any other alternatives?

? Why do you want to separate "business logic" into a standalone
application? Why not just put that in your Rails app and be done?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

Shailendra J.

unread,
May 12, 2014, 9:54:41 AM5/12/14
to rubyonra...@googlegroups.com
Hassan Schroeder wrote in post #1144920:
The business logic was included in Java application in the past and now
it would be additional effort to implement the same in RUBY. The current
requirement is to build GUI and have the Java application handle the
requests from GUI. Can you please advise which approach would be better
?

--
Posted via http://www.ruby-forum.com/.

Hassan Schroeder

unread,
May 12, 2014, 12:43:20 PM5/12/14
to rubyonrails-talk
On Mon, May 12, 2014 at 6:54 AM, Shailendra J. <li...@ruby-forum.com> wrote:

> The business logic was included in Java application in the past and now
> it would be additional effort to implement the same in RUBY. The current
> requirement is to build GUI and have the Java application handle the
> requests from GUI. Can you please advise which approach would be better
> ?

Not without a whole lot more information about this "Java application".
You say it's "standalone" - what does that mean? How do you interact
with it now? Does it have an API? An embedded http server?

Is it embeddable in another app? If so, you might build a Rails app
using JRuby that incorporates this for the business logic.

Impossible to say without lots more background.
Reply all
Reply to author
Forward
0 new messages