Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on Business Method?

 
kishore chitturi
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any body tell me diffrence between Home interface business method and remote interface business method?

regards
kishore
 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Home interface business methods are not specific to particular entity bean. wherras component interface business methods are related to particular instance of the bean.

Homebusiness methods are run in pooled state while component in ready state.

Hope it helps..
Gemini
 
Chetan Sahasrabudhe
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Homebusiness methods are run in pooled state while component in ready state.


Just want to clarify this statement.

Is it mandetory to call home methods in pooled state.
What I am trying to say here is, will it be possible to call a home method by getting home handle through component reference->entitycontext->home handle ?

I need to clarify that if I call home method on a active bean then will it throw exception ?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chetan Sahasrabudhe:


Just want to clarify this statement.

Is it mandetory to call home methods in pooled state.
What I am trying to say here is, will it be possible to call a home method by getting home handle through component reference->entitycontext->home handle ?

I need to clarify that if I call home method on a active bean then will it throw exception ?


If you use the home handle you are no longer referencing a specific bean.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic