• Post Reply Bookmark Topic Watch Topic
  • New Topic

J2ee Pattern

 
AshJava JavaGeek
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My client wants to web enable an existing legacy application .The app is in c++/c code.
Has lot of complexity involved in the sense it has some business logic embedded in some user interfaces.
We are thinking of implementing business delegate pattern as we do not want to touch or change the existuing business logic .Do u think this pattern will suit well in this situation ?
Thanks
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Business Delegate is definitively a good practice.
It hides the business implementation and thus reduce coupling between the presentation tier and the business services.
Nevertheless, my understanding is that your presentation includes some business logic. So if you want to have a clean business delegate pattern, you'll have to remove it from the client side to put it into business objects.
It means some refactoring will be needed.
 
Edy Yu
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Business Delegate is great.
Put a facade before your business logic will be even better.
Anyway, there are quite a few patterns availble. But the bottom line is which one will meet you needs plus give you a clear, straightforward design. Sometime, simpler is better.
Just a piece of thought. Good luck.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!