开发者

Deploying *.war application with Java Web Start (JNLP)

I want to rollout a web application (*.war) with Java Web Start (JNLP). My starting condition is that I have a running configured Tomcat 6.0 server available at the client. Normal deployment at tomcat is pretty clear to me. Just put the *.war file to the webapps folder and restart tomcat - finished.

If I want to the same with JNLP it looks somehow complicated. I was thinking about the following JNLP:

<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for JimageConnect.com JTwacker Application -->
  <jnlp codebase="file:///local_installer">
<information&g开发者_运维知识库t;
   <title>War deployment</title>
   <vendor>Vendor</vendor>
   <description>long </description>
   <description kind="short">short</description>
  <offline-allowed/>
 </information>
 <security>
      <all-permissions/>
  </security>
 <resources>
   <jar href="deployment.jar"/>
   <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
 </resources>
 <application-desc main-class="com.vendor.deployment.Deploy" />

Where deployment.jar holds:

-) the *.war file which should be deployed

-) everything which is needed to use command line redeployment of web application descibed at http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Executing_Manager_Commands_With_Ant

-) the class Deploy which reads the *.war as Stream from the classloader and executes an undeployment/deployment for tomcat.

That sollution should work but it looks hand made and somehow ugly. Is there a better solution available?


I solved the problem by creating a customer installer which installed my Tomcat server and even handled UAC correctly. A second tooling deployed my application if needed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜