What is transaction type of entity bean that You call within session bean?
Date: Tue, 23 Jul 2002 09:20:59 -0700
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [JBoss-user] transactions in stateless session bean.
Reply-To: [EMAIL PROTECTED]
hi,
i'm getting this exception from jboss.
08:56:58,675 ERROR [LogInterceptor] TransactionRolledbackException, causedBy:
java.lang.IllegalStateException: A CMR collection may only be used within the transction in which it was created
at org.jboss.ejb.plugins.cmp.jdbc.bridge.RelationSet.getIdList(RelationSet.java:58)
at org.jboss.ejb.plugins.cmp.jdbc.bridge.RelationSet.iterator(RelationSet.java:260)
at test.server.session.PermissionManagerEJBImpl.checkByRelationTraversal(PermissionManagerEJBImpl.java:59)
at test.server.session.PermissionManagerEJBImpl.check(PermissionManagerEJBImpl.java:130)
my ejb-jar.xml says.
<session >
<description><![CDATA[]]></description>
<ejb-name>PermissionManager</ejb-name>
<home>test.shared.PermissionManagerHome</home>
<remote>test.shared.PermissionManager</remote>
<ejb-class>test.server.session.PermissionManagerEJBImpl</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
<container-transaction >
<method >
<ejb-name>PermissionManager</ejb-name>
<method-intf>Local</method-intf>
<method-name>check</method-name>
<method-params>
<method-param>test.shared.UserLocal</method-param>
<method-param>test.shared.TypeLocal</method-param>
<method-param>java.lang.Integer</method-param>
<method-param>test.shared.OpLocal</method-param>
</method-params>
</method>
<trans-attribute>REQUIRED</trans-attribute>
</container-transaction>
since trans-attribute is REQUIRED, shouldn't jboss have a transaction for
me?
barbee.
--__--__--