• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Local vs Remote

 
Isaias C. Barroso
Ranch Hand
Posts: 165
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
In what situation is more interesting to utilize Home and Remote Objects? Have a pattern for this.
Thanks
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont think there is a pattern for this one. There is no need for a pattern here.
 
Chris Mathews
Ranch Hand
Posts: 2712
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Local clients are best off using local interfaces. Remote clients must use remote interfaces.
 
Isaias C. Barroso
Ranch Hand
Posts: 165
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,
Right, don�t need a pattern, but anyone have a case study with this?
 
Chris Mathews
Ranch Hand
Posts: 2712
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A case study for what?
 
Isaias C. Barroso
Ranch Hand
Posts: 165
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think so didn't clear.
Thanks by response, i understand how to Local Object work
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
 
Dan Malks
Author
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Isaias C. Barroso:
Hi all,
In what situation is more interesting to utilize Home and Remote Objects? Have a pattern for this.
Thanks

If requirements dictate a remote business tier, then you'll need a way to communicate across that physical distribution, in which case using a session bean to access the remote business tier makes sense (Session Facade).
Remember though that distribution brings with it much complexity, so you certainly don't want to do so just because it's "interesting" ;-)
If you have a local business tier, then you can still use EJB, using Local Session beans as a Service Facade, providing transaction semantics and declarative security support.
Alternatively, if you have a local biz tier and are not using EJB, then you can use a Plain Old Java Object (POJO) Facade to coordinate access to your business objects.
We cover these issues in more detail in our book.
Thanks
 
Isaias C. Barroso
Ranch Hand
Posts: 165
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks all,
Specially by link http://www.onjava.com/lpt/a/825
bye.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic