Hi Wolf-Dieter,
thank you very much for the quick response.
Up to now, I couldn't find a way to configure calls to the getter methods of a CMP Entity Bean (EJB2.1) read-only.
I have looked into the schemas for jboss-ejb3.xml and ejb-jar.xml and couldn't find any support for my problem.
In JBoss AS 4/5/6 we had the jboss.xml.
We don't want to run a load-anything-method with a CMR call in a EJB transaction, because it's just a read, without a write/update operation.
I think, there should not be a need for a transaction in this szenario (performance issues).
So, we need something like
<entity>
...
<method-attributes>
<method>
<method-name>get*</method-name>
<read-only>true</read-only>
</method>
</method-attributes>
</entity>
Otherwise, we get the following exception, when we access the CMR collection.
"A CMR collection may only be used within the transaction in which it was created".
Any idea ?
Ersin