chwang wrote:
Wolles,
Thank you. According to what yuo said. Ejb3.0 or Hibernate object must bind with Session bean in the same JVM, so to Manipulate Database.
Am I right?
Chwang
Chwang,
I'm sorry, but I do not really understand your question. So it is difficult for me to give you an answer.
But back to your first post in this thread. There you wrote:
Quote:
Looks like EJB entity bean can be called remotely with JNDI, which means Entity can be downloaded as a copy from different JVM.
I think I can roughly guess what you meant. "can be called remotely" is probably the wrong wording here, creating confusion.
As I mentioned: As of EJB 3.0, Entity Beans are simple POJOs not intended to be called remotely from a different JVM. That means: They do not expose any methods intended to be called from another JVM.
But typically EJB 3.0 Entity Beans are serializable, which means that a copy of them can be passed as a parameter (function argument) of a remote method call from one JVM to another.
But note: When doing such remote calls from one JVM to another, it isn't a remote Entity which is called, but instead a method of the business interface of a remote Session bean (stateful or stateless). When doing such remote calls, Entity beans (and ordinary POJOs) can be passed as parameter (pass-by-value, so a copy of them gets passed from one JVM to another).