wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Local vs Remote Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Local vs Remote" Watch "Local vs Remote" New topic
Author

Local vs Remote

Isaias C. Barroso
Ranch Hand

Joined: Jan 22, 2002
Posts: 165
Hi all,
In what situation is more interesting to utilize Home and Remote Objects? Have a pattern for this.
Thanks


Isaias
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

I dont think there is a pattern for this one. There is no need for a pattern here.


Groovy
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Local clients are best off using local interfaces. Remote clients must use remote interfaces.
Isaias C. Barroso
Ranch Hand

Joined: Jan 22, 2002
Posts: 165
Thanks,
Right, don�t need a pattern, but anyone have a case study with this?
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
A case study for what?
Isaias C. Barroso
Ranch Hand

Joined: Jan 22, 2002
Posts: 165
Hi,
I think so didn't clear.
Thanks by response, i understand how to Local Object work
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

http://www.onjava.com/pub/a/onjava/2001/05/10/ejb.html
Dan Malks
Author
Greenhorn

Joined: Jul 21, 2003
Posts: 10
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


<i><b>- Dan Malks</b></i><br />Co-Author of <a href="http://www.corej2eepatterns.com" target="_blank" rel="nofollow">Core J2EE Patterns: Best Practices and Design Strategis</a>
Isaias C. Barroso
Ranch Hand

Joined: Jan 22, 2002
Posts: 165
Thanks all,
Specially by link http://www.onjava.com/lpt/a/825
bye.
 
Consider Paul's rocket mass heater.
 
subject: Local vs Remote