hello Cedric,

> > My wish is to have the client to be able to select the
> BillPaiementProcess
> > method at runtime and invoke specific mehtods as needed. (this
> is only an
> > example, it may not be completely adequate).
>
> Why not specify the type of payment process as a parameter to
> your ejbCreate()
> method?

If I well understand your point :
        - specify in Bill.create(...) the paiement process type as a parameter (an
enum class for example)
        - in my BillBean.ejbCreate, also create a BillPaiementProcess EJB object of
the right class (determined thanks to the parameter)
        - from my client code get my BillPaiementProcess EJB object from the newly
created Bill
        - adjust properties and call method, from the client, on the
BillPaiementProcess EJB created by and from the Bill EJB.

This way?

the point is to know who should be responsible for the creation of the
BillPaiementProcess EJB. I know this question may seems basic but as I do
not feel completely free with the EJB component model (due to restrictions
for example), I try to find usefull "patterns" for different issues...
Reading the newsgroups threads, it seems that many people feel this lack
when travelling in these border-line areas... ;)

Thanks. Cheers,




                                        Sacha

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