By using a value object, you also bypass the security and transactional
checks that exist in the EJBLocalObject stub. This bit me last week as I
assumed they were in a subclass of my bean. I don't think this buys you
a ton of performance gain, but it is *something*.

David Harkness
Sony Pictures Digital Networks
(310) 482-4756


-----Original Message-----
From: Eric Chow [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 11, 2003 9:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [Xdoclet-user] Relations : ValueObject or EJB Interface ?


So you means that it doesn't matter to use ValueObject or interface if
using Local Interface, right?

If used Remote Interface, it's better to use ValueObject.

Eric


----- Original Message -----
From: "Shane Griggs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 12, 2003 11:34 AM
Subject: Re: [Xdoclet-user] Relations : ValueObject or EJB Interface ?


> With a remote Entity call you have the overhead of high network 
> traffic
> - serialisation, intercall ops etc... each call to an exposed method
> call, via the interface, incurs this overhead... Its an expensive way
of
> gaining access to entity information - a unfortunate shortfall of
using
> remote entities...
> To reduce this overhead, and as we would normally get all data within
> the client calling method anyway, data should populated in a
ValueObject
> (just a plain old serialisable java object with all field data
> accessible) and returned to the client one call - only one overhead
> association...
>
> Access to this value object (dataobject, data transfer object, pojo or

> whatever), should be done via a session facade... the session facade 
> or the local entity can then populate the valueobject...
> ----- Original Message -----
> From: Eric Chow <[EMAIL PROTECTED]>
> Date: Tuesday, August 12, 2003 2:00 pm
> Subject: [Xdoclet-user] Relations : ValueObject or EJB Interface ?
>
> > Hello,
> >
> > When I defined relationships between EJBs, I always use their 
> > interfaces or always returns their interfaces.
> >
> > I read so many articles and XDoclet user mailling list, there are so

> > many discuss topic in using ValueObject.
> >
> > What's the benefit in using ValueObject? Is it better to return 
> > ValueObjectother than the EJB's interface ???
> >
> >
> > Best regards,
> > Eric
> >
> >
> > ==========================
> > If you know what you are doing,
> > it is not called RESEARCH!
> > ==========================
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email sponsored by: Free pre-built ASP.NET sites 
> > including Data Reports, E-commerce, Portals, and Forums are 
> > available now. Download today and enter to win an XBOX or Visual 
> > Studio .NET.
> > http:
> > _______________________________________________
> > xdoclet-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> >
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including

> Data Reports, E-commerce, Portals, and Forums are available now. 
> Download today and enter to win an XBOX or Visual Studio .NET.
>
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01
/01
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01
/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to