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

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

On Sat, May 3, 2014 at 4:59 PM, Shailendra Jain
[email protected] 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 S. ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

Hassan S. wrote in post #1144920:

On Sat, May 3, 2014 at 4:59 PM, Shailendra Jain
[email protected] 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 S. ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

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
?

On Mon, May 12, 2014 at 6:54 AM, Shailendra J. [email protected]
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.


Hassan S. ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs