如果是 CMP,还需要 PrimaryKey 类啊。
然后只要编写一个 deployment descriptor 的 XML 文件,
再将它们作为一个 JAR 打包打起来即可。
这个操作,AppServer 一般会有专门的工具来操作,或者在开发工具中就可完成(VisualAge for Java, Enterprise Edition)。
或者,你可以依靠 Ant 制作 makefile 来自动完成。(www.apahce.org)

解决方案 »

  1.   

    Weblogic5.1 + TogetherJ4 + XMLSpyit's not so difficult
      

  2.   

    To YYboy:
    你配过么?
    能具体谈谈么?
      

  3.   

    use TogetherJ to help you to generate XML automatically and use XMLSpy to check itWeblogic5.1 offer a deployer tools to do this
    remember to register a Database connect pool, this will be used during the deployment if use CMP or BMP
      

  4.   

    建议您访问www.etechbase.net/tech,里面有很多资料,也许可以解决您的问题。
    访问http://168.168.18.11:81/etechbase/advsearch.php将您的问题输入查询内容框,选择不同的精确程度,即可以找到你所需要的答案。效果还是可以的。
      

  5.   

    To YYboy:
    你能提供一些TogetherJ的详细信息么?
    那里可以得到它
    怎么使用它做好给我一个sample谢谢!
      

  6.   

    我配置过,啃了两个多星期的英文文档才搞定的,重装了十几次,建议你自己啃一遍DOC,很有好处的,有具体问题再问,如果实在要说的话,我也只能附上英文文档,实在太多了,不想翻译一遍[email protected]
      

  7.   

    相对来说jboss的配置比较简单,简单的ejb只要打包放到指定的目录下面即可,不过ejb-jar.xml要自己写
      

  8.   

    To JavaBoy :
    你能将文档mail给我么?
      

  9.   

    你安装了jrun吗?在doc里总共有5个PDF文档,说的很详细了,自己花点时间看吧
      

  10.   

    按照下列步骤进行Enterprise JavaBean的部署:1 编译remote interface, home interface和bean implementation文件。
    2 准备一个bean properties文件或者bean deployment descriptor。 
    bean properties:
    ejb.homeInterfaceClassName=ejbeans.CustomerHome
    ejb.remoteInterfaceClassName=ejbeans.Customer
    ejb.enterpriseBeanClassName=ejbeans.CustomerBean
    ejb.primaryKeyClassName=ejbeans.PK
    ejb.beanHomeName=sample1a.CustomerHome
    ejb.stateManagementType=stateful_session
    deploy.properties:
    ejipt.classServer.host=localhost
    ejipt.ejbJars=sample_ejb.jar
    ejipt.jdbcSurces=source1
    source1.ejipt.sourceURL=jdbc:odbc:sampledb
    #source1.ejipt.sourceUser=xyz
    #source1.ejipt.sourcePassword=pass
    ejipt.logStackTrace=true
    ejipt.userHomeName=sample.CustomerHome
    ejipt.roleHomeName=ejipt.RoleHome
    ejipt.loginSessionHomeName=sample.CustomerSessionHome
    ejipt.storeName=default
    3 准备一个manifest文件,在其中定义bean properties文件的文件名并标记为enterprise bean,如下所示:
    Name: <package-name>/<bean name>.properties
    Enterprise-Bean: True4 使用jar功能将上述所有文件打包成 .jar文件。 
    5 Copy .jar文件到JRun server的 /deploy 目录。 
    6 将你的 .jar文件加入到deploy.properties文件的ejipt.ejbJars 属性中去。 
    7 从JRun根目录使用类似于命令行的方式运行运行Deploy tool,如下所示:
    java -Djava.security.policy=jrun.policy
    -classpath lib/ejipt_tools.jar allaire.ejipt.tools.Deploy
    或者用jrun manage console来deploy