Related interface

xiaoxiao2021-03-06  106

For the STOREACCESSBean in the example, its automatically generated interfaces are:

1. StoreAccess -Remote Interface

Interface of Bussiness Method, CLIENT wants to call the Bussiness Method agent by him? ? Delegate? ?

2. StoreAccessDao -Data Access Object Interface for StoreAccess

Public void init ();

And the interface implemented in the DAO

3. StoreAccessHome -Home Interface for StoreAccess

Public static final string comp_name = "java: comp / env / ejb / storeAccess"; public static final string JNDI_NAME = "StoreAccessBean"

Public au.com.tusc.session.StoreAccess Create ()

Create an EJB Object and return to the client an EJB Object Reference

Generate the instance of StoreAccess? ? ? Reference? ? ?

4. StoreAccessLocal -Local Interface for StoreAccess

5. StoreAccessLocalhome -Local Home Interface for StoreAccess

Public static final string comp_name = "java: comp / env / ejb / storeAccessLocal"; public static final string jndi_name = "storeAccessLocal";

Public au.com.tusc.session.storeaccessLocal Create () THROWS JAVAX.EJB.CREATEXCEPTION

6. StoreAccessSession -Session Layer for StoreAccess

Method, including some session

7. StoreAccessutil

Some nice tool methods

How to generate a refrescence / instance in xxxhome

Note: [Important] In the EJB-JAR in EJB-JAR in SessionBean with TAG. The XML section has a mistake,

EJB / CustomerLocal

should be:

EJB / CustomerLocal CustomerLocal

转载请注明原文地址:https://www.9cbs.com/read-122970.html

New Post(0)