This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[URLyBird]How to realize both local and remote Client?

 
Zhixiong Pan
Ranch Hand
Posts: 239
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi rancers,
Assignment requires me to realize both local and remote Client. I plan to create BusinessFactory in Business Layer. Can any one guide me in details?
 
Oricio Ocle
Ranch Hand
Posts: 284
Debian Firefox Browser Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I plan to create BusinessFactory in Business Layer

Yes, it's an elegant solution.
Since i expose both business, and data methods to the client through a facade, I have FacadeFactory instead.

Regards
 
Zhixiong Pan
Ranch Hand
Posts: 239
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Oricio,
Could you please talk something about your FacadeFactory? I think it will help me a lot.
 
Oricio Ocle
Ranch Hand
Posts: 284
Debian Firefox Browser Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes of course,

My FacadeFactory class provides three efundamental issues:
  • Constructs default facade implementations based on default smaller pieces(default lockManager,default DAO,...).
  • Provides a single access point to backend services.
  • Provides instance pooling


  • Has two static methods getLocalFacade (filepath ,islockingEnabled) that returns a facade implementation from the specified parameters and getRemoteFacade(port,alias) that returns a facade implementing proxy to a registry bound facade.
     
    I agree. Here's the link: http://aspose.com/file-tools
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic