简体   繁体   English

分发glassfish服务器应用程序

[英]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 . 因此,我用java和Netbeans制作了一个客户机-服务器应用程序,该服务器是一玻璃鱼服务器,它们与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 . 一切都运行正常,但问题是它是一个uni项目,他们不看源代码,他们需要二进制或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 ? 现在,当您构建一个Web应用程序时,IDE会生成一个.war文件,该文件将部署在您的glassfish服务器中(这就是我所知道的方式,如果我错了,请更正我)。以便使其在该PC上的另一台PC上运行是否需要安装玻璃鱼?

Usually the teacher would click some "client.exe" and a "server.exe" and test things out , but im afraid this wouldnt work this time . 通常,老师会单击一些“ client.exe”和一个“ server.exe”并测试一下,但是这次恐怕无法正常工作。

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 ? 有没有办法像.exe那样打开窗口,然后选择要部署的.war或老师必须安装glassfish并转到管理页面并像在PC上那样部署war的方式? 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. 不幸的是,我能想到的唯一解决方案是通过公共URL对其进行访问。 Maybe your university does provide some kind of a free VPS. 也许您的大学确实提供了某种免费的VPS。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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