CategoryHome is the home interface.
CategoryHome是home接口。
For example, Listing 6 shows a Home interface.
例如,清单6给出了一个Home接口。
This returns an instance of the Home interface.
这返回Home接口的一个实例。
The two methods above are defined in the Home interface.
上面的两个方法是在Home接口中定义的。
For Local home interface, specify com.ibm.wts.WTSLocalHome.
对于Localhome interface,指定 com.ibm.wts.WTSLocalHome。
Each Home instance is cached by the fully qualified name of the Home interface.
由主机接口的全限定名称来缓存各主机实例。
The home interface is used to create or find an object of a specific type.
home接口用于创建或查找指定类型的对象。
In addition, the Home Interface for stateless session beans has been removed.
除此之外,规范中还去掉了用于无状态会话bean的Home接口。
It's the port the programs use to get the home interface of the MDM Server EJB.
这是程序获取MDMServerEJB的主接口所使用的程序端口。
Lastly, we can use the casted home interface to invoke our custom create method.
最后,利用映射后的本机接口调用我们定制创建的方法。
In this case, that object will be the remote home interface for the Person bean.
在本实例中,该对象将成为Person bean的远程本机接口。
EJB reference creation while adding the required code to look up the home interface.
在为查找本机接口增添所需的代码的同时创建e JB引用。
Setting up a remote call (finding Home interface for example, setting up marshaller, etc.)
构建远程调用(例如查找Home接口,构建编组程序(marshaller)等。)
In WAS, this is handled by defining finder methods on the Home interface called custom finders.
在WAS 中,这是通过在Home接口上定义名为定制查找器的查找器方法实现的。
The EJB Snippet support makes it easy to invoke either create or find methods on a home interface.
EJBSnippet支持使得在本机接口上调用create或者find方法变得简单了。
Of course, the string that represents the location of the home interface is different, but guess what?
当然,表示home接口位置的字符串是不同的,但是您猜如何?
The object reference received is narrowed to the EJB home interface using PortableRemoteObject.narrow .
得到的对象引用使用PortableRemoteObject . narrow缩小转换为ejbHome接口。
In this section, we will obtain the Home interface to a HelloWorld bean published in a CosNaming namespace.
在这一节,我们将在CosNaming名称空间中获得已发布的HelloWorldbean的Home接口。
In addition, you aren't required to code the home interface, remote interface, and local interface classes.
另外,不需要编写home接口、remote接口和local接口类。
An instance of EventAccess bean can be created by using the corresponding home interface, as shown in Listing 3.
可以通过相应的主接口来创建EventAccessbean的实例,如清单3所示。
Use the EJB home interface to create or fetch instances of EJBs, in the same manner as server-side EJB programming
使用EJB 本地接口创建或提取EJB的实例,与服务器端的 EJB编程方法一样
For all subsequent servlet requests, you need to request a new service instance needs from the home interface.
对于所有后续Servlet请求,都需要从主接口请求一个新服务接口。
The Person bean also contains a custom create method on the home interface, which we will use for the example lookups.
Personbean也包含一个有关本机接口的定制create方法,该方法可以用来进行实例查找。
Use the PortableRemoteObject.narrow method to narrow the returned remote object to the type of EJB home interface.
使用PortableRemoteObject .narrow方法将返回的远程对象压缩为ejb本地接口的类型。
The samples at the beginning of this article presented different alternatives for doing EJB home interface lookups.
本文开头的样本中提出了几种进行EJB 本机接口查找的可选方法。
The remote interface, retrieved through the home interface, gives you access to the public methods of the remote object.
remote接口是通过home接口检索得到的,为您提供了对远程对象的公共方法的访问。
In this example, we configured the create method on the Home interface of MyBank entity bean to be accessible only by the manager role.
在此示例中,我们在MyBank实体Bean的Home接口上将create方法配置为只能由manager角色进行访问。
Ensure that the JNDI name for the session bean will be the same name you will later use when doing up a lookup of the home interface.
确保会话bean的JNDI名称与您后面查找主接口时将使用的名称一致。
Once you have the home interface of the EJB, you can use the EJB create method to get the actual EJB and carry on with your operations.
有了EJB的主接口之后,您可以使用EJB创建方法来获得真正的EJB并继续您的操作。
As for the home interface (and local home interface, if necessary) you can code them just as you normally would; no changes to either of them.
至于home接口(以及本地home接口,如果需要的话),则可以按照一般情况对它们进行编码;对它们不做任何更改。
应用推荐