• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Business Delegate - To which layer does it belong

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am building a 3 tier web application(non-ejb) using struts we have build the basic application requirements, recently we have decided to add a indirection to de-couple the controller and the persistence layer(design in the craig larman's book) now my doubt is to which layer does the business delegate belong because i want to package it into a namespace, the current project has package's such as
1) com.oitlindia.domain.register
2) com.oitlindia.persitence.mappers
3) com.otilindia.web.register
Right now i have placed the Business Delegate in
com.otilindia.web.register but if this is done
then business delegate will belong to web or rather the controller namespace which is my doubt, what is the right namespace for the business delegate, depending on the layer mostly, one such namespace could be com.oitlindia.service
Thanks in advance
 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What exactly does your business delegate do? Is there just one category of business delegate? The business delegate usually corresponds to the Model portion of the M-V-C pattern. That is, the controller delegates responsibility of handling business functions to the business delegate, thus the name. This keeps the controller decoupled from any of the actual persistence logic. You would normally group business delegates by logical functions. For example:
package com.xyz.orders.model // group together classes that encapsulate Order business rules
package com.xyz.invoices.model // group together classes that encapsulate Invoice business rules
and so on...
HTH
[ September 04, 2002: Message edited by: Junilu Lacar ]
 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by prashant patel:
I am building a 3 tier web application(non-ejb) using struts we have build the basic application requirements, recently we have decided to add a indirection to de-couple the controller and the persistence layer(design in the craig larman's book) now my doubt is to which layer does the business delegate belong because i want to package it into a namespace, the current project has package's such as
1) com.oitlindia.domain.register
2) com.oitlindia.persitence.mappers
3) com.otilindia.web.register
Right now i have placed the Business Delegate in
com.otilindia.web.register but if this is done
then business delegate will belong to web or rather the controller namespace which is my doubt, what is the right namespace for the business delegate, depending on the layer mostly, one such namespace could be com.oitlindia.service
Thanks in advance


I think com.oitlindia.proxy or businessdelegate is better naming convention. In a physical 3 tier architecture (1 web/client + server side + DB )and Business delegate stays in the web/client side. In my opinion, Busines Delegate should remotely or locally obtain the server side.
com.oitlindia.service sounds like the Session Facade portion. This is definitely on the physical server side.
 
prashant patel
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks, so the likely packages are
com.oitlindia.domain.businessdelegate
com.oitlindia.web.businessdelegate
 
Your buns are mine! But you can have this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic