Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Obsolete Context methods

 
Nikhil Jain
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
does getEJBHome(), getEJBObject, getEJBLocalHome(), getEJBLocalObject throw illegalStateException when invoked upon context object. I did not find anything on it in the spec. But as per o'Rel these methods throw RUNTIME EXceptions.
 
E Lievaart
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bill Burke works on JBoss, so I guess this is the behavior of JBoss.

There is indeed little mention of this subject in the spec.
From the wording of the spec. it seems defining a home interface is optional.
If there is no home, then I guess the getEJBHome() method could either return null or throw an Exception.
I wouldn't count on getting questions on this on the exam given the limited amount of words spent in the spec.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!