return to homepage.

three ways contact with meemail: contact with me using emailmsn: contact with me using msnQQ: contact with me using QQ

欢迎自由转载,但请注明本blog链接,谢谢合作。

文章分类

成长,转载 (1) 地税 (1) 健康 (2) 趣闻 (1) 生活杂记 (11) 转载 (4) CSS (1) Design Patterns (1) DWR (3) EJB (1) Hibernate (2) javascript (2) Jsp (2) NBA (1) Oracle (2) Struts (4) Tomcat (1) Weblogic (1) XML (1)

2007年4月6日星期五

Weblogic8.1sp6下开发EJB2.0的两个文件

由于本人不喜欢用eclipse + myclipse的插件集成,所以一般都自己写xml,这样在dtd那里就是个难题,所以,把两个写好的xml记录在此,方便自己,也与人方便。

ejb-jar.xml


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd'>
<ejb-jar>
    <enterprise-beans>
        <session>
            <ejb-name>
Hello</ejb-name>
            <home>
org.livahu.ejb.HelloHome</home>
            <remote>
org.livahu.ejb.HelloRemote</remote>
            <ejb-class>
org.livahu.ejb.HelloBean</ejb-class>
            <session-type>
Stateless</session-type>
            <transaction-type>
Container</transaction-type>
        </session>
    </enterprise-beans>
</ejb-jar>

weblogic-ejb-jar.xml


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN" "http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd">
<weblogic-ejb-jar>
    <weblogic-enterprise-bean>
        <ejb-name>
Hello</ejb-name>
        <jndi-name>
HelloHome</jndi-name>
    </weblogic-enterprise-bean>
</weblogic-ejb-jar>

顺便说一下,weblogic的java.naming.factory.initialweblogic.jndi.WLInitialContextFactory

0 评论: