Java Reference
In-Depth Information
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>UserInfoBean</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
This XML file describes the entity bean and how it is to be deployed. A display
name for the bean is given along with a description and the actual name of the
bean. The home, remote, and EJB class names are listed in this XML .
Writing jboss.xml
Listing 14.8 shows the jboss.xml descriptor that is specific to the container you
are using.
Listing 14.8
The jboss.xml entity bean description
<?xml version="1.0" encoding="Cp1252"?>
<jboss>
<secure>false</secure>
<container-configurations />
<resource-managers />
<enterprise-beans>
<entity>
<ejb-name>UserInfoBean</ejb-name>
<jndi-name>jmxbook/ch14/UserInfo</jndi-name>
<configuration-name></configuration-name>
</entity>
</enterprise-beans>
</jboss>
The format and tags in this file are specific to the JBoss container and provide
it with a description of the EJB to deploy. The file also contains some configu-
ration information such as the JNDI name and security information. (You can
Search WWH ::




Custom Search