I did, I attached both deployment descriptors for the EntityBean CoReductionHead.
The descriptors for CoReductionDetail are identical except for the name.
Greetz,
CB
ejb-jar.xml:
============
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
<ejb-jar>
<enterprise-beans>
<entity>
<description></description>
<ejb-name>CoReductionHead</ejb-name>
<home>com.crazy_bytes.business.promotion.ejb.CoReductionHeadHome</home>
<remote>com.crazy_bytes.business.promotion.ejb.CoReductionHead</remote>
<ejb-class>com.crazy_bytes.business.promotion.ejb.CoReductionHeadEJB</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>com.crazy_bytes.business.promotion.ejb.CoReductionHeadEJB</prim-key-class>
<reentrant>False</reentrant>
<security-role-ref>
<role-name>user</role-name>
<role-link>user</role-link>
</security-role-ref>
</entity>
</enterprise-beans>
<assembly-descriptor>
<security-role>
<role-name>user</role-name>
</security-role>
<method-permission>
<role-name>user</role-name>
<method>
<ejb-name>CoReductionHead</ejb-name>
<method-name>*</method-name>
</method>
</method-permission>
<trans-attribute>Required</trans-attribute>
</assembly-descriptor>
</ejb-jar>
jboss.xml:
==========
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
<jboss>
<security-domain>java:/jaas/crazy-bytes-security-domain</security-domain>
<enterprise-beans>
<name>CoReductionHead</name>
<entity>
<ejb-name>CoReductionHead</ejb-name>
<jndi-name>CoReductionHead</jndi-name>
<clustered>true</clustered>
<cluster-config>
<partition-name>${jboss.partition.name:DefaultPartition}</partition-name>
<bean-load-balance-policy>org.jboss.ha.framework.interfaces.RoundRobin</bean-load-balance-policy>
</cluster-config>
</entity>
</enterprise-beans>
</jboss>
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57:





by: humanonomicsPosted on 2009-06-22 at 09:30:06ID: 24684043
Have you put the entries in ejb-jar.xmls ?