java指定sql生成xml,用Java实现可保存状态的数据库生成XML树(8)-JSP教程,Java与XML...

4.ejb-jar.xml文件

//sun microsystems, inc.//dtd enterprise javabeans 1.1//en http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd>

resultedit

com.sitechasia.ejb.resultedithome

com.sitechasia.ejb.resultedit

com.sitechasia.ejb.resulteditbean

stateful

container

imis

javax.sql.datasource

application

resultedit

*

required

5.weblogic-ejb-jar.xml文件

//bea systems, inc.//dtd weblogic 5.1.0 ejb//en http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd>

resultedit

imis

imis_jndi

resultedit

6.build.cmd文件

@rem copyright (c) 2000 bea systems, inc. all rights reserved.

@rem you must set your environment by running the setcabinsenv shell script

@rem prior to executing this script.

@rem create the build directory, and copy the deployment descriptors into it

mkdir build build\meta-inf

copy *.xml build\meta-inf

@rem compile ejb classes into the build directory (jar preparation)

javac -d build resultedit.java resultedithome.java resulteditbean.java

@rem make a ejb jar file, including xml deployment descriptors

cd build

jar cv0f resultedit.jar meta-inf com

cd ..

@rem run ejbc on jar file

java -classpath %classpath%;%weblogic_home%/lib/weblogic_sp.jar;%weblogic_home%/lib/weblogic.jar weblogic.ejbc -compiler javac build\resultedit.jar %weblogic_home%\config\mydomain\applications\resultedit.jar

@rem compile servlets and ejb interfaces into web-inf/classes directory of the cabins web app

@rem this ensures that the ejb can be accessed by jsps and servlets of the cabins web app

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值