see inline

>>> I have an entity bean, whose bean class is named OrgUnitBean and whose
>>> remote interface is named OrgUnit, that must notionally have an
>>> Organization passed to it when it is created.  Organization is, however,
>>> another entity bean (its remote interface is named Organization and its
>>> bean class is named OrganizationBean).  What should my ejbCreate()
>>> method in OrgUnitBean look like, and what should the member variables in
>>> OrgUnitBean look like?
>>>
>>> Can I have an ejbCreate method like this:
>>>
>>>   public String ejbCreate(Organization owner, String name) {
>>>      this.org = owner;
>>>      this.name = name;
>>>      return name;
>>>   }
>>>
>>> ...and can OrgUnitBean keep a reference to Organization in it like this:
>>>
>>>   private Organization org = null; // assigned by ejbCreate; see above

Yes, I think so, since in session beans it is possible to write code like
this. I've tried it in weblogic 4.5. I didn't try it with entity beans
though

Cheers,
        Anil
--
Anil Colin Lobo
Systems Engineer
Object Technology Group
Tata Infotech Ltd.
http://www.tatainfotech.com
-------------------------------------------------------------------------------
                        (CORBA && EJB) > DCOM ...Period
-------------------------------------------------------------------------------
"Today, if you are not confused, you are just not thinking clearly."
-U. Peter
-------------------------------------------------------------------------------

===========================================================================
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".

Reply via email to