• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Return Type in Home methods

 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Entity Bean home methods can the ejBhome<methods> in bean class return Component Interface? If yes/not why?
[ May 05, 2004: Message edited by: Santosh Ram ]
 
Santosh Ramachandrula
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any takers for my question
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ram
The entity beans home business methods can return anything( that is RMI-IIOP compliant). That is one of the(primary) adv. of these methods We can use these methods to get things like information on all the customers
 
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You've got some methods that give you back a reference to the component interface (or a collection of them), and you have other methods that can give you back anything rmi-able. The former (create, finders, selects) are good for one thing, and the latter (home business methods) are good for another thing. If you want to get information about a group of entities, but don't need to operate on each of them, a home business method may be in order.
--Dale--
 
Santosh Ramachandrula
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
GIRIJA Thanks for the response!
Component Interface is RMI-IIOP and hence ejbHome<method> can return it(??).
DALE SNEG Thanks for the response!
I got your point. I just wanted to make sure that can ejbHome<method> return Component Interface.
 
Girija Siva
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Santosh
Returning component interface[ if that is what u want to do, generally u use them to over come the overhead of making remove calls to the bean(s)] should not be a problem as it is RMI-IIOP compliant. May be ur home method calls a find (or create) and returns the returned value from the find (or create)
Thanks
 
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic