Hi!
Seerangan Saminathan wrote:
> I'm new to EJB and this mailing list too.
> I have a very basic doubt.
> According to EJB specification, we need to implement REMOTE interface to
> BEAN class. But in the tutorial, the DemoBean implements SessionBean not
> Demo interface.But they defined all the methods in REMOTE interface.
Well, the bean should not implement the Remote interface, so my guess is
that you misunderstood the specification.
The remote interface is implemented by a class that is created by the
EJB container. This is what the client calls. When this class receives
an invocation, it transparently forwards this call to a method in your
bean.
> ================
> From EJB document ...
> SessionBean interface extends EnterpriseBean and ExterpriseBean extends
> Serializable.
> ===================
But this doesn't say that the bean should implement the Remote
interface, does it? Remember that the Remote interface extends
EJBObject, not SessionBean.
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684
===========================================================================
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".