Hi,
the Implementation of the EJBObject interface is generated by the
Container at deployment time. Making it extend java.rmi.Remote just
states that the implementation should be a distributed object. Depending
on wich distribution scheme the target server uses, the ejb Object will
looks different. All these information are not relevant for a bean
programmer.
Associating EJBObject to the rmi's skeleton is wrong. In an rmi based
impelmentation, the EJBObject will be the rmi object itself. Notice that
the bean implementation (the Object extending EntityBean or SessionBean)
isn't a distributed object.
Wether a server needs one EJBObject per client accessing the bean is
also an implementation issue.
- A simple rmi-based implentation will instantiate one rmi-object per
client-bean relationship (great performance hit). Possible optimisation
could be done like using the same rmi-objet for serving all clients of a
stateless session bean (i.e.).
- A CORBA-POA based implementation can use one sevant per bean class,
managins instance references in tables. But all this are impelemntation
isues. It is better to ask server providers to tell u how their server
behave.
/Francis
Ashutosh wrote:
>
> Hello all,
> I am trying to understand the functionality of the EJB object.
> The Remote interface extends the EJBObject. The specification says that the
> implementation for the EJBObject is provided by the container.
> Also, the EJBObject extends java.rmi.Remote. So, does it mean that the
> ejbObject is actually the Skeleton which communicates with the Bean class?Or
> is it a class other than the Skeleton?
> Also, is there one EJBObject for every bean that i deploy? So, if there are
> many clients trying to use an Entity bean can i say that only one client
> will be serviced as the EJBObject is associated with only one instance of
> the bean at a time.
> I seem to be terribly confused!!
>
> Ashutosh
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
--
[EMAIL PROTECTED]
MATHEMA Software GmbH
N�gelsbachstra�e 25 b
91052 E r l a n g e n
D e u t s c h l a n d
Tel +49(0)9131/8903-0
Fax +49(0)9131/8903-55
http://www.mathema.de
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".