Thanks for the response.

I see--looks like I was doing it as intended already.  I had been thinking of adding parameters to the tag like this:

@ejb:data-object remoteinterface="true" localinterface="false"

or maybe

@ejb:data-object view-type="remote|local|both|none"

but, after looking at the example, it makes sense that it would be difficult to control the security settings, transactional settings, etc. from tag parameters.

Thanks for making this clear!
-jason




Dmitri Colebatch <[EMAIL PROTECTED]>

10/12/2001 07:17 AM

       
        To:        [EMAIL PROTECTED]
        cc:        [EMAIL PROTECTED]
        Subject:        Re: [Xdoclet-user] @ejb:data-object in remote interface



If you want the data object accessable remotely then you need to put
setData and getData methods in your XDOclet commented source code, with
appropriate (@ejb:interface-method) tags... have a look at AccountBean for
an example

cheers
dim

On Fri, 12 Oct 2001 [EMAIL PROTECTED] wrote:

> Hi all,
>
> I'm using XDoclet 1.0.1.  I have a CMP Entity Bean, which defines an
> @ejb:data-object tag like this:
>
> @ejb:data-object setdata="true"
>
> My ant build script includes a dataobject task for XDoclet.  The
> DataObject and its getter and setter in the generated bean implementation
> are all correct, but the getter and setter is not being added
> automatically to the remote interface.  I can get it to work by adding an
> abstract getData() and setData() method in my bean implementation class
> (extended and then implemented by the XDoclet generated bean class), but
> shouldn't there be an option to just add these to the remote (or local)
> interfaces automatically?  Or am I just missing some option that does this
> already?
>
> -jason



Reply via email to