Topic: 有没有用Lomboz实现了Bean管理的EntityBean |
Print this page |
1.有没有用Lomboz实现了Bean管理的EntityBean | Copy to clipboard |
Posted by: lomboz Posted on: 2007-10-30 19:41 我用Eclipse3.0.1,Jboss3.2.3,lomboz_3.0.1.N20050106写了一个Bean管理的EntityBean,也就是《精通EJB第二版》中的实体Bean的例子,但是不知为什么,JBOSS没有调实体Bean中的ejbLoad()和ejbStore()方法。 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/dtd/ejb-jar_2_0.dtd " > <ejb-jar > <description > <![CDATA[No Description.]] > </description > <display-name >Generated by XDoclet </display-name > <enterprise-beans > <entity > <description > <![CDATA[ <!-- begin-user-doc -- > You can insert your documentation for ' <em > <b >AccountBean </b > </em > '.]] > </description > <ejb-name >Account </ejb-name > <home >com.roger.j2ee.sample.AccountHome </home > <remote >com.roger.j2ee.sample.Account </remote > <local-home >com.roger.j2ee.sample.AccountLocalHome </local-home > <local >com.roger.j2ee.sample.AccountLocal </local > <ejb-class >com.roger.j2ee.sample.AccountBMP </ejb-class > <persistence-type >Bean </persistence-type > <prim-key-class >com.roger.j2ee.sample.AccountPK </prim-key-class > <reentrant >False </reentrant > <resource-ref > <res-ref-name >jdbc/ejbPool </res-ref-name > <res-type >javax.sql.DataSource </res-type > <res-auth >Container </res-auth > </resource-ref > </entity > </enterprise-beans > <assembly-descriptor > <container-transaction > <method > <ejb-name >Account </ejb-name > <method-intf >Local </method-intf > <method-name >* </method-name > </method > <method > <ejb-name >Account </ejb-name > <method-intf >Remote </method-intf > <method-name >* </method-name > </method > <trans-attribute >Required </trans-attribute > </container-transaction > </assembly-descriptor > </ejb-jar > jboss.xml内容如下: <?xml version= "1.0 " encoding= "UTF-8 "? > <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN " "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd " > <jboss > <unauthenticated-principal >nobody </unauthenticated-principal > <enterprise-beans > <entity > <ejb-name >Account </ejb-name > <jndi-name >AccountEjb </jndi-name > <local-jndi-name >AccountLocal </local-jndi-name > <resource-ref > <res-ref-name >jdbc/ejbPool </res-ref-name > <jndi-name >java:/MySqlDS </jndi-name > </resource-ref > </entity > </enterprise-beans > <resource-managers > </resource-managers > </jboss > 各位有用Lomboz实现过Bean管理的EntityBean成***过的吗? |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |