Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java EE 综合讨论区  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 有没有用Lomboz实现了Bean管理的EntityBean
lomboz





发贴: 1
积分: 0
于 2007-10-30 19:41 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我用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成***过的吗?




话题树型展开
人气 标题 作者 字数 发贴时间
7312 有没有用Lomboz实现了Bean管理的EntityBean lomboz 3021 2007-10-30 19:41

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   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