标签云

微信群

扫码加入我们

WeChat QR Code

I'm trying to figure out how to deploy a huge (40-50 MB) EAR file to the server through a rather slow VPN connection. The EAR contains EJB and WAR projects created in Glassfish, and 90% of the file size is from external dependency libraries used.Has anyone came up with a strategy for elegant deployment to production system from Netbeans, where the deployment (over the network) is done only for what is really needed (i.e. just one WAR, not the entire EAR, or just one lib, not the entire libraries subproject).Related to the first point, how to separate external dependency libs from project in Netbeans, so that the project compiles on development machine, but when the EAR/WAR/EJB is created it does not contain all the dependency JARs, which are making it huge.Perhaps we need to write custom ant script? Start using maven? Thank you all for kind answers,Bozo


typo: the projects are obviously created in Netbeans (6.7.1) but are deployed to Glassfish. Solution does not need to work in other IDEs.

2019年04月22日12分59秒

40-50 MB isn't large. And you need the dependencies in the EAR or it won't run. Look at an alternative mechanism to deploy, like SSH.

1970年01月01日00分05秒

It is large if you are deploying it through a slow network connection, irrelevant is it SSH or IPSec VPN. And no, I don't think I need deps in EAR, they can be place in domain/lib and domain/app-lib but the latter although good requires me to have practically excel file with all the dependency links to WAR/EJB - Glassfish has this no so good as Weblogic or JBoss (no shared libs, as deployment option).

2019年04月22日12分59秒

Hi, thank you for answering. Exploding EAR seems like the easiest solution. Is it possible that you provide a few pointers or links for exploring the build process you suggested. Or similar schemes. Quite honestly we're just setting up a production grade build process since the business expanded. So, actually I'm looking for ideas on how to deploy new features of software without too much additional infrastructure, but with a solid process for deployment in place. Thanks again, Bozo.

2019年04月22日12分59秒

Good idea, I like it, thank you. At the end I created an ant script on the "build server" that pulls sources from SVN, builds them and deploys them to application server locally, so the file size is not an issue anymore, but you idea is fine.

2019年04月22日12分59秒