Here is the standard sb.xml deployment descriptor:
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"> <ejb-jar> <description>Deployment descriptor for the sb JOnAS example</description> <display-name>sb example</display-name> <enterprise-beans> <session> <ejb-name>Op</ejb-name> <home>sb.OpHome</home> <remote>sb.Op</remote> <ejb-class>sb.OpBean</ejb-class> <session-type>Stateful</session-type> <transaction-type>Container</transaction-type> <env-entry> <env-entry-name>prop1</env-entry-name> <env-entry-type>java.lang.String</env-entry-type> <env-entry-value>prop1 value</env-entry-value> </env-entry> </session> </enterprise-beans> <assembly-descriptor> <container-transaction> <method> <ejb-name>Op</ejb-name> <method-name>*</method-name> </method> <trans-attribute>Required</trans-attribute> </container-transaction> </assembly-descriptor> </ejb-jar> |
Here is the JOnAS specific jonas-sb.xml deployment descriptor:
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE jonas-ejb-jar PUBLIC "-//ObjectWeb//DTD JOnAS 3.2//EN" "http://www.objectweb.org/jonas/dtds/jonas-ejb-jar_3_2.dtd"> <jonas-ejb-jar> <jonas-session> <ejb-name>Op</ejb-name> <jndi-name>OpHome</jndi-name> </jonas-session> </jonas-ejb-jar |