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

isIdentical method on stateless session beans.

 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the question number 19 of WhizLabs Diagnostic exam, it asks something about the isIdentical method on stateless session beans? Will this method appear on the real exam too?
 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure the question didn't have any code, which added this method? There is no such method for stateless session beans, unless you create it.
 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it didn't have any code. Thanks Raf.
 
Ralph Jaus
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no such method for stateless session beans, unless you create it.

That's wrong. isIdentical() is part of the EJBObject interface and EJBLocalObject interface. So, if the session bean (regardless whether stateful or stateless) has a component interface, this method can be used to compare the identity of session bean objects. This concerns clients with an EJB 2 client view.

 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's true. Sorry for the confusion.
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Ralph.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic