Hi to all,
may I have a Bean inside another Bean? I mean:
BeanA = {fieldA1, ...fieldAn, BeanB}
BeanB = {fieldB1, ...fieldBn}
What about get/set method? Is this implementation compliant to Java Bean
Spec?
Other approach?
thanks in advance
dom
Giovanni Azua - 31 Jan 2005 16:40 GMT
Hello Dom,
I have limited exposure to EJB but I think containment
is one of the main uses of *Session* EJBs ... I think
that it just does not make sense to get/set the contained
beans from within a Session EJB but instead expose
as remote the actual bussiness methods.
I would say that the following scenario is correct:
BeanA: Session EJB.
BeanB: Whether Session EJB or Entity Bean.
However I have never seen an Entity EJB containing
other EJBs ... I would not even expect this to
be considered as valid on the EJBs spec. I will
for sure have a closer look when I get home ...
HTH,
Best Regards,
Giovanni
> Hi to all,
> may I have a Bean inside another Bean? I mean:
[quoted text clipped - 7 lines]
> thanks in advance
> dom