| |
EJB Tutorial from JBoss: stateful session bean deployment descriptor |
|
File: jboss.xml
<?xml version="1.0"?>
<jboss
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
version="3.0">
<enterprise-beans>
<session>
<ejb-name>ShoppingCart</ejb-name>
<jndi-name>org.jboss.tutorial.stateful_deployment_descriptor.bean.ShoppingCart</jndi-name>
</session>
</enterprise-beans>
</jboss>
File: ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
version="3.0">
<description>JBoss Stateful Session Bean Tutorial</description>
<display-name>JBoss Stateful Session Bean Tutorial</display-name>
<enterprise-beans>
<session>
<ejb-name>ShoppingCart</ejb-name>
<remote>org.jboss.tutorial.stateful_deployment_descriptor.bean.ShoppingCart</remote>
<ejb-class>org.jboss.tutorial.stateful_deployment_descriptor.bean.ShoppingCartBean</ejb-class>
<session-type>Stateful</session-type>
<remove-method>
<bean-method>
<method-name>checkout</method-name>
</bean-method>
<retain-if-exception>false</retain-if-exception>
</remove-method>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
|
|
jboss-EJB-3.0_RC9_Patch_1.zip( 10,289 k) |
Related examples in the same category |
|