简体   繁体   中英

Distributing a glassfish server application

So ive made a client-server application with java and Netbeans , the server is a glassfish server and they communicate with SOAP .

Everything is working perfectly , but the problem is that its a uni project and they dont look at the source code , they need binaries or jars .

Now when you build a web app , the IDE generates a .war file that would be deployed in your glassfish server (thats how i know it works , correct me if im wrong) .So in order for it to work on another PC that PC would need to have glassfish installed ?

Usually the teacher would click some "client.exe" and a "server.exe" and test things out , but im afraid this wouldnt work this time .

Is there a way like an .exe that opens a window and one would select what .war to deploy or the teacher has to install glassfish and go to admin page and deploy the war just like i would do on my PC ? if its the only way i can include a glassfish installation with some tutorial in a power point to explain how to deploy the app ... but i wonder if theres a fool-proof way since i dont know if my teacher is smart enough to do it the right way .

Actually he would need to deploy the application on a local application server as well. Unfortunately the only solution I can think of is to make it accessible via public URL. Maybe your university does provide some kind of a free VPS.

如果安装了(!)Java SDK 7,则可以尝试Payara Micro ,它是从GlassFish 4派生的,使您可以从命令行运行war文件,而无需安装任何应用程序服务器。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM