[jboss-dev-forums] [JBoss AS 7 Development] - Re: JBoss AS 7 Support for XDoclet tag @jboss.method-attributes needed
Ersin Canli
do-not-reply at jboss.com
Sat Jan 5 10:30:40 EST 2013
Ersin Canli [https://community.jboss.org/people/erscan] created the discussion
"Re: JBoss AS 7 Support for XDoclet tag @jboss.method-attributes needed"
To view the discussion, visit: https://community.jboss.org/message/787828#787828
--------------------------------------------------------------
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
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/787828#787828]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130105/8211e40a/attachment.html
More information about the jboss-dev-forums
mailing list