• Post Reply Bookmark Topic Watch Topic
  • New Topic

ejbLoad question  RSS feed

 
Gaurav Chikara
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We all know that ejbLoad loads data from from database
then how can we retrive this data from client
because
from client we can only use finder methods to get the results of a query
 
Rohit Ahuja
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brother,
The ejbLoad and ejbStore, for that matter all the callback methods are not to be used by the client. the load method is primarily used by the ejb to syncronise its state with the database.
as for the client, the client has to use a findBy method to get a remote reference or enumeration depending on the type of finder method called.(findByPrimaryKey returns Remote using which u can get access to the fields for that particular record.)
please note :
the ejbload and ejbstore have to be explicitly written or rather filled with code in case we are using Bean Managed Persistances.
take Care,
Love,
The Prince of Pune,
Deepak.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!