Re: [JBoss-user] Help! - Can EJB inherit from normal classes? Packaging with normal classes?

2001-07-05 Thread Fred Loney
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

RE: [JBoss-user] Help! - Can EJB inherit from normal classes? Packaging with normal classes?

2001-07-04 Thread Schouten, Andreas
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

Re: [JBoss-user] Help! - Can EJB inherit from normal classes? Packaging with normal classes?

2001-07-03 Thread ZHU Jia
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

RE: [JBoss-user] Help! - Can EJB inherit from normal classes? Packaging with normal classes?

2001-07-03 Thread Schouten, Andreas
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

Re: [JBoss-user] Help! - Can EJB inherit from normal classes? Packaging with normal classes?

2001-07-03 Thread Allen fogleson
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

RE: [JBoss-user] Help! - Can EJB inherit from normal classes? Packaging with normal classes?

2001-07-03 Thread Sternagel Annegret (PN-SYS/DAS)
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

Re: [JBoss-user] Help! - Can EJB inherit from normal classes? Packaging with normal classes?

2001-07-02 Thread Devraj Mukherjee
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