• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java web architecture  RSS feed

 
Bob Dylan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all. This is my first post, so I'll try to behave.

For a couple of days now I have been googling an answer to a simple problem without much luck.

The problem is:
I want to run a web server with administrator's panel on it. From this panel I want to start/stop independent Java SE apps by clicking mouse.
I also want these apps to take further commands from the web panel (more mouse clicks) and pass some messages back to it (logs for example).

By now I found a Jetty server, which would be hosting user interface made with Vaadin (that is because I don't know any JS).
So, I have to listen to some buttons in the UI and start/stop/pass-and-get-messages inside the embedded Jetty code? This seems somehow wrong.
I bet there are solutions for this exact scenario, I just can't seem to understand what to look for.

Any help much appreciated.
Thanks in advance.
 
Paul Clapham
Sheriff
Posts: 22379
42
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't say whether the Java applications you want to start and stop are running on the server or on the client. Basically if they are running on the client then your web app can't even see them, let alone do insecure things like starting them. So I'm going to assume they are on the server, otherwise there's no point in pursuing this idea.

And if they are running on the server then your user interface on the client is going to be exceedingly simple. You don't need any JavaScript on the client, just basic HTML would suffice. Furthermore your web app is going to have a very small volume of requests -- how many times a day is somebody going to start and stop those applications? -- so it really matters very little what you run on the server either.
 
Bob Dylan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. The Java applications will run on the server. The question was about HOW to run/manage separate JVMs from the web. Volume of requests in going to be small, but I also want to see logs in the web, and that's something not so small.
 
Paul Clapham
Sheriff
Posts: 22379
42
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bob Dylan wrote:The question was about HOW to run/manage separate JVMs from the web.


I missed that entirely. Yes, you said you were going to do that but it looked to me like your question was about the mechanics of writing a web application.

Volume of requests in going to be small, but I also want to see logs in the web, and that's something not so small.


Probably still a small volume of requests, as web applications go. And still pretty simple.

But could I ask why you chose a web application for this project? I would have rather considered instrumenting the Java applications with JMX and have them accept requests directly if that's what it's for.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!