The following comment has been added to this issue:

     Author: Marcus Brito
    Created: Wed, 4 Jun 2003 9:46 AM
       Body:
That's intended. The jboss-{0}.xml purpose *is* to define the whole bean in one place. 
Our goal is to support every DTD element with some xdolet tag so partial merges aren't 
neccessary. The full merge is there if you don't want to use xdoclet at all for an 
specific bean.

For your specific case, you can use @jboss.method-attributes read-only="true" to mark 
read only methods. Note that this only works if you specify version="3.2" (or greater) 
in your <jboss/> subtask, as the <method-attributes/> element only appeared during the 
3.2 development cycle.
---------------------------------------------------------------------
View the issue:

  http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-510


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-510
    Summary: jboss-{0}.xml merge file completly replaces the contents of 
<entity></entity>
       Type: Improvement

     Status: Assigned
   Priority: Major

 Time Spent: Unknown
   Estimate: 1 hour

    Project: XDoclet
 Components: 
             JBoss Module
   Versions:
             1.2 Beta 2

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Julien Dubois

    Created: Wed, 4 Jun 2003 7:16 AM
    Updated: Wed, 4 Jun 2003 7:16 AM
Environment: Mandrake Linux 8, Sun JDK 1.4.1

Description:
I wish to add some XML into jboss.xml, in order to make some methods of some entity 
beans read-only (see 
http://www.onjava.com/pub/a/onjava/2003/05/28/jboss_optimization.html?page=2)
Trouble is, creating a jboss-{0}.xml file completly replaces the 
rest of the contents of my entity bean in my jboss.xml.

For example, without my jboss-{0}.xml file, XDoclet creates this code :
     <entity>
         <ejb-name>User</ejb-name>
         <local-jndi-name>local/icf/User</local-jndi-name>

          <clustered>true</clustered>
      </entity>

If I create a merge/xxx/yyy/jboss-User.xml file, this whole code is replaced. What I 
would like is merge my jboss-{0}.xml with the rest 
of the generated content. I don't want to lose the XDolcet-generated code.
I'm not the only one with this problem :
http://article.gmane.org/gmane.comp.java.xdoclet.user/5280/match=jboss+-+0++xml++merge

I think the jboss-{0}.xml should be included inside the <entity></entity> tags, not 
replace them.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to