Entity beans questions

T

Tim

Some simple clarification is appreciated. This is what I think I've
determined and would just like some reassurance that I am right or
correction if I'm mis-stating or am completely out of the ball park.

Each entity bean has two interfaces and an actual bean (abstract).
They are either remote and remote home or local and local home.
For a bean that is going to be accessed from some remote location or
separate JVM, you use the remote and remote home interfaces and for a
bean that is going to be accessed from another bean in the same JVM you
use the local and local home interfaces.
Is the main difference the way the parameters are sent between the two
beans?
Also, is the home interface only used by the container itself? By that I
mean, it determines when a new instance is required and calls the proper
method etc. but none of the home methods are ever used by another bean
or client.
 
S

Sudsy

Tim said:
Some simple clarification is appreciated. This is what I think I've
determined and would just like some reassurance that I am right or
correction if I'm mis-stating or am completely out of the ball park.

Each entity bean has two interfaces and an actual bean (abstract).
They are either remote and remote home or local and local home.

Or you can have both.
For a bean that is going to be accessed from some remote location or
separate JVM, you use the remote and remote home interfaces and for a
bean that is going to be accessed from another bean in the same JVM you
use the local and local home interfaces.
Is the main difference the way the parameters are sent between the two
beans?
Also, is the home interface only used by the container itself? By that I
mean, it determines when a new instance is required and calls the proper
method etc. but none of the home methods are ever used by another bean
or client.

The home interface is the only way to obtain a bean reference or
a Collection of references. It contains your finder (including the
essential findByPrimaryKey) and select methods as well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top