The real question to explore is WHY does one entity need to call another
entity needing to call another entity. What business problem are you trying
to model? Secondly, why do you view an entity bean to be a key generator.
It would seem to me this is best managed by a session bean, as you are
modeling a verb or action and not a noun or object.
Dave Wolf
Internet Applications Division
Sybase
----- Original Message -----
From: "laiq ahmad" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 29, 2001 8:48 PM
Subject: Re: Critical architectural problem using EJB2.0
> Hi cedric,
> Yes u r right but partially there are lot of other
> aspects to it one of the major concern is to find
> that will an entity bean permit me to pass some
> arguments to retrive another entity bean and then pass
> parameters to another entity bean which will give can
> generate a key which i can pass in another entity
> bean to retrieve xml data ..
> Well thanks for that but it will really be appreciable
> if u can tell me documentation available and if
> possibel teh example of it .
> ur help is highly appreciable
>
> thanks
> laiq
>
> --- Cedric Beust <[EMAIL PROTECTED]> wrote:
> > > From: A mailing list for Enterprise JavaBeans
> > development
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of
> > laiq ahmad
> >
> > > Is it possible to pass data in entity bean and
> > then
> > > call anothor bean and then call another bean ...so
> > as
> > > to generate the key till i reach my last table
> > where
> > > this XML document is stored indexed by this key.
> > >
> > > May be i am not able to express my problem
> > effectively
> > > but please do let meknwo am i going right or i
> > need
> > > some special concederation since i am in a
> > critical
> > > stage.
> >
> > Iaiq, it seems to me your question can be summarized
> > as follows:
> >
> > Q: Can I look up and use EJB's from within the
> > onMessage() method of a
> > MessageDrivenBean?
> >
> > A: Yes. It is actually already a common pattern. A
> > lot of customers are looking
> > up and invoking Session and Entity beans from within
> > MessageDrivenBeans. They
> > also publish messages on other Topics/Queues from
> > these MessageDrivenBeans (thus
> > resulting in "chained invokations").
> >
> > --
> > Cedric
> >
> >
>
===========================================================================
> > 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".
> >
>
>
> __________________________________________________
> Get personalized email addresses from Yahoo! Mail - only $35
> a year! http://personal.mail.yahoo.com/
>
>
===========================================================================
> 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".