I'm learning XDoclet and JBoss CMP and am using the latest 1.2 beta-2 code.

When creating a new value-object for my CMP beans the generated code uses an instance 
variable, which is not at all thread-safe.  

This doesn't seem right because I will be setting all get* methods to be read-only 
which should allow multi-threaded reads (at least that's what the JBoss documentation 
seems to tell me).

Here is the generated ValueObject code and non-thread-safe ivar:

 /* Value Objects BEGIN */

   private cmp.DomainValue DomainValue = null;

   public cmp.DomainValue getDomainValue()
   {
      DomainValue = new cmp.DomainValue();
      try
         {
            DomainValue.setId( getId() );
            DomainValue.setName( getName() );
            DomainValue.setDescription( getDescription() );
         }
         catch (Exception e)
         {
            throw new javax.ejb.EJBException(e);
         }
          return DomainValue;
   }
...

Am I missing something or is this a problem with the value object code generation?  
Thanks in advance for any help or advice.

Jonathan



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to