JiveJdon Community Forums
在线156人   首页   主题表   培训咨询   标签   精华   查搜   注册    登陆 RSS
首页 » 论坛 » J2EE/JavaEE/JEE/EJB/JSF等技术讨论
???en_US.forumThreadPrev.name??? 上一主题
google yahoo 365Key网摘 CSDN网摘 添加到百度搜藏 POCO网摘 新浪ViVi 天极网摘
???en_US.forumThreadNext.name??? 下一主题
Go 共有 0 回复 / 1
 发表新帖子   回复该主题贴
leo_cdp

悄悄话
发表文章: 13
注册时间: 2003年05月23日 20:25
使用LOCALHOME调用CMP实体Bean的问题.谢了 2003年05月23日 20:33 到本帖网址 加入本帖到收藏夹 回复该主题
标签
找了好久找了这文章,但是这里头太多手"?"号,我的E文又不好,请哪位高人指点一下,或是翻译一下,谢了.
从:? The EJB specification recommends, but does not require,
开始这段不大明白,第一种使用references 我知道怎么做,但是第二种是什么意思呢,我现在手上有一个系统用WEBlogic的没使用references 也可以调用我找了只在Weblogic 的部署文件中有一个<local-jndi-name>的内容,请问这是怎么实现的?谢谢!

Submitted By: Albert Lee on 02/13/2002 at 08:32 AM
email: wstd@us.ibm.com

Subject: Re: JNDI name(s) when using local and remote interface
Martin,

In pre-EJB 2.0, locating remote home using direct JNDI lookup (e.g. "ejb/ABeanRemoteHome") is a normal practice and it is still supported in WSTD for compatibility.

In EJB 2.0, the preferred way to locate home is to use "Enterprise Bean Environment", i.e. use of the "java:com/env" JNDI name space via EJB Reference

Look at the EJB 2.0 spec chapter 20.
<exerpt>
20.3.1.1 EJB reference programming interfaces
The Bean Provider "MUST" use EJB references to locate the home interfaces of other enterprise beans as follows.
? Assign an entry in the enterprise bean?s environment to the reference. (See subsection 20.3.1.2 for information on how EJB references are declared in the deployment descriptor.)
? The EJB specification recommends, but does not require, that all references to other enterprise beans be organized in the EJB subcontext of the bean?s environment (i.e., in the java:comp/env/ejb JNDI context).
? Look up the home interface of the referenced enterprise bean in the enterprise bean?s environment using JNDI.
</exerpt>

Local interface is only visible within the same appl server, therefore disallow the binding of the local home to the JNDI name space.

Albert Lee.
标签
共有 0 回复 / 1Go
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表    返回页首返回页首
???en_US.forumThreadNext.name??? 下一主题
热点TAG:
正在读取,请等待...
查询本论坛内 回复超过的热门帖子
标题
 
粗体: [b]文本[/b] 斜体: [i]文本[/i] 下划线 [u]文本[/u] 插入图片 [img]http://wwww.xxxx.com/img.ext[/img] 插入代码 [code]程序代码[/code]  插入url链接 [url]http://url[/url] / [url=http://url]URL加下滑线[/url] 插入附件 插入word文档 Txt等文件
内容
  提交时自动拷贝以上内容到剪贴板 Ctrl-V可取出;提问题前先查询标签列表

RSS 手机阅读 add to google add to yahoo
解惑之道在J道 ,打造中国最具影响力的的企业软件社区 推荐Chrome快速浏览本站
OpenSource JIVEJDON v3.5 Powered by JdonFramework Code © 2002-09 jdon.com

anti spam