• Post Reply Bookmark Topic Watch Topic
  • New Topic

Questions from HFEJB

 
Sanjeev BhimaRao
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. CMR fields can be only local component interfaces. Does this mean that entity beans in CMR should have both local and remote client views defined?

2. Can stateless session beans get reference to the EJBObject in ejbRemove() and ejbCreate() ? It is listed as a permitted operation for these two methods.

Regards
Sanjeev
 
Nguyen Long
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1 . Because get method corresponding to CMR field of bean will return a reference to local interface or a collection of the related bean. if you are using CMR, then you must have local interface. you can defined remote depedn on your need.

2. stateless can get reference to EJBObject in ejbRemove() and ejbCreate().

You can easily find the answer in Sun specification , 7.8.2, page 90.

Regards.
 
Sanjeev BhimaRao
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the quick replies.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!