I want to specify that my entity's getXXX() methods are specified as read-only so that they are not included in a transaction, tying up resources unnecessarily.
I don't want to make the entire CMP/CMR field read-only. Just the getXXXX() methods. I think something like this:
<ejb-name>Block</ejb-name>
<method-attributes>
<method-name>get*</method-name>
<read-only>true</read-only>
</method-attributes>
Could work, but I cannot generate this with XDoclet (I cannot find the right command to add this in). XDoclet already is generating jboss.xml, so I'm not sure how I should approach this. I have already tried merging my own XML in (as shown above), but that conflicts with the existing definition for that EJB in jboss.xml.
What's the best way to do this? thanks :)
Collin
Hi,
It's possible to generate this using XDoclet.
First you should set version="3.2" in your in ant.
Second you should put this:
@jboss.method-attributes read-only="true"
just before your method.
At least this works for me :).
best regards,
greg