Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Return Type in Home methods

 
Santosh Ramachandrula
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Any takers for my question
 
Girija Siva
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • 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
 
Dale Seng
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic