【问题标题】:What is your method to generate Websphere 6 EJB with Ant / JDK 1.4.x?您使用 Ant / JDK 1.4.x 生成 Websphere 6 EJB 的方法是什么?
【发布时间】:2008-10-09 06:37:57
【问题描述】:

几年前我发现的唯一工作方法是:

  1. 使用 XDoclet 为每个会话 bean 生成 ibm-ejb-jar-bnd.xmi 和 ibm-ejb-jar-ext.xmi(ejbdoclet 任务)
  2. 使用任务 jar 制作 jar(不带存根); ;
  3. 使用此 jar 调用二进制 EJBDEPLOY,但参数中没有存根。

但我觉得必须有更清洁的方法。哪个是你的?

【问题讨论】:

    标签: java ant websphere ejb


    【解决方案1】:

    我使用 wsejbdeploy ant 任务,如果您使用的是 RAD 附带的 ws_ant,那么您可以在构建文件中包含如下内容

    <taskdef name="wsejbdeploy" classname="com.ibm.websphere.ant.tasks.WsEjbDeploy"/>
    <wsejbdeploy inputJar="${EjbJarFile}" outputJar="${tempEjbJarFile}" workingDirectory="${tempWS.dir}"  noWarnings="true" classpathref="project.classpath"/>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-05
      • 2022-11-14
      • 2018-02-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多