Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes EJB Certification (SCBCD/OCPJBCD) 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "local vs remote" Watch "local vs remote" New topic

local vs remote

marcus don
Ranch Hand

Joined: Jan 26, 2005
Posts: 38
Let's imagine that you did write two sets of interfaces, one for a local client view and one for a Remote client view.
You decide to expose both at deployment.

I don't understand when you have to use Remote and when you use Local.

[ March 15, 2005: Message edited by: marcus don ]
marcus don
Ranch Hand

Joined: Jan 26, 2005
Posts: 38
Ok, a local client means that both the bean and the client live in the same heap.
But living in the same heap means in the same jvm...
An instance of my app.server (i.e. JBoss) run in a process that use an instance of JVM.
So when the app. server generate a new instances of JVM?

I don't understand why I have different heap/jvm and why I use Local client with entity.

May you please help me?
Gian Franco
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
Hi Marcus,

Check out the following article
Local and Remote EJB Interfaces

I hope it answers your question, it
did for me



"Eppur si muove!"
marcus don
Ranch Hand

Joined: Jan 26, 2005
Posts: 38
Thank you !

It is sorta covered in the JavaRanch Style Guide.
subject: local vs remote
Similar Threads
Local vs. Remote Interface
class casting with ejb
EJB Question
Is it possible to call Local Interfaces in same mechine if 2 containers is there