1 Reply Latest reply on Dec 1, 2003 5:14 PM by timmytool

    JBOSS CMP XDOCLET VALUE OBJECTS

      I am using Xdoclet to generate the ejb interfaces. I am suppling a value object in the tag and a class gets generated called UserCMP.

      UserCMP has a method called getUserValue() that is supposed to return the value object for this instance.

      After I lookup the Home interface and do a create. I am unable to call the getUserValue() function. When I reflect the class I notice that it is called proxy34 and the only methods that are in it are for the bean properties and some proxy stuff. How can I use this CMP object to create the value objects from and Entity bean?

        • 1. Re: JBOSS CMP XDOCLET VALUE OBJECTS

          I suddenly realized my own stupidity.

          I must define in my bean class

          /**
          * @ejb.interface-method
          * @ejb.transaction
          * type="Mandatory"
          */
          public abstract UserValue getUserValue( );

          /**
          * @ejb.interface-method
          */
          public abstract void setUserValue( UserValue data );

          now everything works wonderfully!!