Deploying a standalone J2SE application within JBoss
I have a run-of-the-mill Java SE server application. In our normal case, we create an installer using NSIS, and run the server as a Windows service using Windows Service Wrapper. We then have a Start Menu folder, desktop icons, an uninstaller, etc.
We have a potential require开发者_运维问答ment to run the same program, but deploy it in JBoss. What is the best approach for doing such a thing?
I think the correct scenario is to deploy an EAR file, then access a web page and click a button that says "Start", which will then launch our standard J2SE process. Ideally, this page would know whether the underlying process is running, so it would provide Start/Stop options accordingly.
The key here is to keep it all in JBoss, as opposed to installing our own program like we do now. JBoss is a customer-driven requirement and is not negotiable. Our approach for deploying it is entirely up to us.
Thoughts?
If I'm getting you right, you just want to run a java program from a browser instead of locally on a desktop. You'll need to dive into some J2EE if you're going to be handling any user input (even clicking the button to kick off the code is going to require a servlet). In this case, an ear is all you need.
精彩评论