 |
上一主题
想问一个比较简单的问题,java中的Object怎么可以被多重继承,
|
|
下一主题
在JBoss中使用1对1的关联CMR时,进行数据插入时JBoss报出如下错误,请问如何解决:小弟的疑惑是userinfo是CMR的字段,和数据库表本身字段有什么区别呢,为什么会有这样的问题,急,盼复谢..
|
|
|
|
|
|
|
|
使用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.
|
|
|
|
热点TAG:
anti spam
|