• Post Reply Bookmark Topic Watch Topic
  • New Topic

Session beans equal method

 
Deepika Joshi
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I added reply to following thread but my reply is not visible in the following thread
http://www.coderanch.com/t/446507/EJB-Certification-SCBCD/certification/Session-beans-equal-method

this Continue to mentioned thread....
According to the specification its fine, I just wander why the stateless beans equal method returns true for the same interface? That means the container will create a single object for it?

I think it does not matter if it is same object or different but it depends how container is extending byte code (implementing equals method).
e.g.

Please note: ThisClass is not Java entity, but className added by container while implementation of equals method.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
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!