SCJP 6 with 93%
Oracle Database SQL Expert with 98%
SCSA, OCA, SCJP 5.0, SCJD, CCDH, CCAH http://www.linkedin.com/in/carlosamorillo
Jianping Wang wrote:The reason for this is I want client only know interfaces, and completely eliminate the possibility of client accessing server side classes.
Jianping Wang wrote:The reason for this is I want client only know interfaces, and completely eliminate the possibility of client accessing server side classes.
Carlos Morillo wrote:I personally placed my BusinessService and RemoteBusinessService interfaces together with some other classes
in a domain package. My domain package is the core of all the business logic domain.
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
Roberto Perillo wrote:
Carlos Morillo wrote:I personally placed my BusinessService and RemoteBusinessService interfaces together with some other classes
in a domain package. My domain package is the core of all the business logic domain.
Hum... interesting. I'd just tell you to be careful not to mix the concepts: if you have a BusinessServices, then it is pretty likely that you have an anemic domain model (which is ok in this certification, since the logic to be implemented is very simple). If there was a domain model, then we could have, for instance, a class called Room implementing the logic of booking rooms. This modeling is more adequate when the domain logic is complex, so your way is more adequate. I'd just advise you to rename the domain package to services and put the domain package inside it, with your Room class (that is, your class that represents a room).
Did you implement any logic in your Room class, champion?
SCSA, OCA, SCJP 5.0, SCJD, CCDH, CCAH http://www.linkedin.com/in/carlosamorillo
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
SCSA, OCA, SCJP 5.0, SCJD, CCDH, CCAH http://www.linkedin.com/in/carlosamorillo
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD
SCSA, OCA, SCJP 5.0, SCJD, CCDH, CCAH http://www.linkedin.com/in/carlosamorillo
Carlos Morillo wrote:What about the packages location of some classes?
That was the original question Jianping had instead of this diversion to J2EE patterns.
Cheers, Roberto Perillo
SCJP, SCWCD, SCJD, SCBCD