Java Reference
In-Depth Information
<enterprise-beans>
<entity id="Board">
<ejb-name>Board</ejb-name>
<home>com.bitterjava.bbs.ejb.BoardHome</home>
<remote>com.bitterjava.bbs.ejb.Board</remote>
<ejb-class>com.bitterjava.bbs.ejb.BoardBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>com.bitterjava.bbs.ejb.BoardKey
</prim-key-class>
Here, we see the class names for the home, remote, bean class ( ejb-class ),
EJB entity bean persistence type, and the primary key defined for Board .
<reentrant>False</reentrant>
<cmp-field id="Board_name">
<field-name>name</field-name>
</cmp-field>
.
.
<env-entry id="EnvEntry_1">
<env-entry-name>ejb10-properties/providerURL
</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value> iiop://localhost:900
</env-entry-value>
</env-entry>
.
.
</entity>
The Board description is one of the fields that we specified in our interface,
followed by information that the detailed environment might need to manage
the bean, such as properties and types. We have several similar fields and envi-
ronment entries, which we've removed here for brevity. The full version is
available at http: // www.bitterjava.com:
<session id="BoardManager">
<ejb-name>BoardManager</ejb-name>
<home>com.bitterjava.bbs.ejb.BoardFacadeHome</home>
<remote>com.bitterjava.bbs.ejb.BoardManager</remote>
<ejb-class>com.bitterjava.bbs.ejb.BoardFacadeBean
</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
Here, we have an entry for a session bean, which is the facade that we'll use in
the refactoring exercise. A facade is a new interface layer that we'll place
between the EJB client and server. Because it isn't an entity bean, there will
be no fields or primary keys. We do have tags for the home, remote, and
Search WWH ::




Custom Search