Make a session bean classs and extend the appropriate class you want to use.
I think you want to reuse the code. Declare the functions of the base class
in the remote interface
I think you want to resuse the code .Isn't it ?
Warm Regards
Ashwani Kalra
Sr. Member Development Staff
Aithent Technologies(P) Ltd.
Email : [EMAIL PROTECTED]
----- Original Message -----
From: Vaibhav Kumar Agarwal <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 07, 2001 4:41 PM
Subject: Help in extending the SessionBean class.
> Hi All,
>
> I'm a little new to EJB and have not much experience in this. I've got a
> problem like this.
>
> My base class is ServiceManager which has got some methods and their
> implementations. I have two classes MailServiceManager and
> CalendarServiceManager. These two classes extend from ServiceManager.
> Now the MailServiceManager is supposed to be Stateless SessionBean hence
>
> it needs to extend the SessionBean class but it cannot as its extending
> the
> ServiceManager class. I don't want to make the ServiceManager as an
> interface. The ServiceManager cannot extend SessionBean as
> CalendarServiceManager is not bean.
> Is there anything sort of a interface which gives the SessionBean
> features or
> is there any way to handle this.
>
> Regards
> Vaibhav
>
>
===========================================================================
> 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".
>
>
===========================================================================
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".