Hi all,
I think I know the better answer but I just wanted some input. I only pass DTO's over the wire. (In the body of a Message object)
I at the very least have 2 implementations of my objects. A DTO implementation and a DomainObject implementation.
interface IMyObject
MyObjectDTO implements IMyObject
and
MyObjectDomainObject implements IMyObject
I have been sending the interface over the wire and then packaging the interfaces and the DTO's to be distributable in a common lib but I am now thinking I should just pass an AbstractDTO back and forth.
For one my MessageBody has to take an Object and I would rather it be a little more strongly typed. (ie. AbstractDTO)
Anyone have any thoughts/patterns/experience?
Brian
Spend like you don't need the money,
love like you've never been hurt and dance like nobody's watching!
I think I know the better answer but I just wanted some input. I only pass DTO's over the wire. (In the body of a Message object)
I at the very least have 2 implementations of my objects. A DTO implementation and a DomainObject implementation.
interface IMyObject
MyObjectDTO implements IMyObject
and
MyObjectDomainObject implements IMyObject
I have been sending the interface over the wire and then packaging the interfaces and the DTO's to be distributable in a common lib but I am now thinking I should just pass an AbstractDTO back and forth.
For one my MessageBody has to take an Object and I would rather it be a little more strongly typed. (ie. AbstractDTO)
Anyone have any thoughts/patterns/experience?
Brian
Spend like you don't need the money,
love like you've never been hurt and dance like nobody's watching!