I know exactly what YOU meant (as I said in a previous post). But I dont
think that's what he is asking.

-----Original Message-----
From: Vincent Harcq [mailto:[EMAIL PROTECTED]]
Sent: 05 January 2001 08:55
To: jBoss
Subject: RE: [jBoss-User] Inheritance in CMP beans - followup


OK

To be clear, I describe here what I mean.  I think these are simply good
practices and what I originally meant is that this way of working is no
problem with JBoss.

1. Everywhere in my code I use Interface "A" that does not have javax.ejb in
it but well the definition of business methods.  Then I extend A to
"ARemote" where I implement EJBObject.

2. I create a "general" Bean "AImpl" where I do not use javax.ejb but well
the definition of my fields and the set/get methods I want to have on my
ENTITY.  Then I extend it to "ABean" that implement
javax.ejb.Entity/SessionBean and defines ejbCreate, ejbPostCreate, ...

The goal for Stateless Session bean is to mask EJB.
The goal for Entity Bean is ("will" as I am in the beginning right now) to
mask EJB to be able to switch from/to EntityBean from/to JDO.  What I miss
here is a way to generalize the Home interface.

If I have a Bean "B" which is a specialization of "A", I will have a B
extends A, BRemote extends B, BImpl extends AImpl and BBean extends BImpl.
My new Business methods will define in B and implemented in BImpl.
My new entity attributes will be in BImpl.

Vincent.

-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]De la part de Kenworthy, Edward
Envoy? : vendredi 5 janvier 2001 9:05
? : 'jBoss'
Objet : RE: [jBoss-User] Inheritance in CMP beans - followup


I dont think that's what he's thinking of.

What you suggest is eminently sensible (and what we do). However Shahar is
asking about extending a remote interface (presumably to create another
remote interface) this is a Bad Idea(tm).

-----Original Message-----
From: Vincent Harcq [mailto:[EMAIL PROTECTED]]
Sent: 03 January 2001 17:47
To: jBoss
Subject: RE: [jBoss-User] Inheritance in CMP beans - followup


Yes you can !

I have a zzzBean and a zzzRemote always empty that extends a zzzImpl and a
zzzInterface that have code in them.
Both Entity and Session.

It works like a charm.

Vincent.


-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]De la part de Shahar
Envoy? : mercredi 3 janvier 2001 18:12
? : [EMAIL PROTECTED]
Objet : [jBoss-User] Inheritance in CMP beans - followup


[Hi again]
off course, I also intend to extend the remote interface. Possible ?



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to