The EJB inheritance question crops up periodically in different guises and forums. A
good discussion is at:
http://www.theserverside.com/discussion/thread.jsp?thread_id=265
There are lots of gotchas, e.g. narrowing an inherited remote. And even if the
technical problems are overcome, the imp
ZHU Jia [SMTP:[EMAIL PROTECTED]]
> Sent: 04 July 2001 09:15
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Help! - Can EJB inherit from normal
> classes? Packaging with normal classes?
>
> Many thanks for the detailed information!
> But I've some questions her
Many thanks for the detailed information!
But I've some questions here:
1. I thought reflection is forbidden by the EJB spec, have you used it
successfully in your code?
2. As far as I see, the way you do it is delegation and not inheritence,
and you don't make this for conversion of individual Ja
Hello Jia!
We migated the folowd situation to ejb
Class ImplBasic implements InterfaceA
Class Impl1 extendes ImplBasic
Class Impl2 extendes ImplBasic
Class Impl3 extendes ImplBasic
...
InterfaceA obj = (Inter...)new Implx(...)
as
MyRemote extends InterfaceA, EJBObject
MyBean extends
i would refactor honestly. its probably too much of a pain to try and
keep these classes in the inheritance structure of an ejb.
you can read some examples of how to inherit things in the RMH book.
But its mostly aimed at new development. Since the bean instantiation
class implements entityBean y
We do use inheritance of the BeanClass from a normal class but we don't use
constructors of the baseclass, just calling methods.
And we put the normal baseclass (and other normal classes used from the
beans) and the BeanClass in the same package and one jar.
It works very well for us.
Ciao
Anneg
I read an article in Javaworld.com about converting existing classes to
EJB. You may want to have a look there.
Devraj
At 07:28 3/07/01 +0200, you wrote:
>Hello,
>
>I've a question on inheritence in EJB.
>As I'm working on the adaption of an existing Java framework, I have to
>convert many norm