J. Matthew Pryor wrote:

> Would the setEntity() method assume it was being given a local reference
> Is this perhaps a place to use the Business Interface rather than the
> entity bean interface ?


setEntity() would be called with the actual *instance*, so the class of 
the parameter would be "MyEntityImpl" or similar. I.e. it does not go 
through any interface. Yes, if you want multiple implementations for 
some reason, using the BI pattern would be the best way to solve it cleanly.

> You'd want the command object to work regardless of EJB or not perhaps ?


Yes. AFAICT there are no explicit mentions of EJB in my current code, 
although some of the interfaces obviously inherit from EJB interfaces.

> I expect the webwork integration can be automated with xdoclet as well, I
> haven't looked into the xdoclet/webwork support yet but intend to.


Yes, that would be entirely possible, depending on how much special 
casing you need, i.e. whether the code is generatable or not.

> Would you still partition out the DTO from the Command or would the
> command contain all the data itself ?


That is a very good question. I am currently reviewing Floyd's book on 
EJB design patterns (check theserverside.com for details), and I am 
constantly asking myself what the worth of DTO's is over the command 
pattern. At all. Currently many gurus and books focus a lot on DTO's and 
session facades, but I'm questioning whether that is such a good idea. 
No conclusion so far, but it seems as though the command pattern is 
doing good...


> I guess this is an old question but in :
> 
>>public void ejbCreate(CreateMyEntity command)
>>
> 
> would CreateMyEntity be a base class or perhaps an interface ?


In my current code I have it as a base class (called "CreateEntity" so I 
  can have a generic ejbCreate method), but yes, it would be entirely 
possible to do it as an interface in order to avoid tying the EJB code 
to a particular command framework.


> Well I can go on and on and perhaps this isn't the exact right list
> but I look forward to more information as your work progresses.


Watch TSS, and stay tuned :-) It's looking good, oh yeah...

/Rickard, coding, in a hotel in Austin/Texas

-- 
Rickard Öberg
Chief Architect, TheServerSide.com
The Middleware Company


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to