Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / January 2005

Tip: Looking for answers? Try searching our database.

Bean inside another bean...

Thread view: 
Dom - 31 Jan 2005 15:04 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.