I would like to mark some of my EJB methods as read-only. But when I try

 

@jboss.method-attributes pattern="get*" read- ,

 

it seems to generate the following  XML fragment (in the jboss.xml) file

 

<method-attributes>

              <method-name>get*</method-name>

              <read-only>true</read-only>

 </method-attributes>,

 

 

instead of

 

 <method-attributes>

         <method>

               <method-name>get*</method-name>

               <read-only>true</read-only>

          </method> 

 </method-attributes>

 

 

XDoclet somehow doesn’t generate the wrapping <method> tag for the ‘jboss.method-attributes’ tag,

and this doesn’t seem to have any effect on the Beans. I am not sure if there’s something

more to be done.

 

I am using XDoclet 1.2 and JBoss 3.2.1.

 

Any help would be appreciated.

 

Thanks!

 

- Rajeev

 

Reply via email to