Page 1 of 1

About Question enthuware.oce-ejbd.v6.2.571 :

Posted: Wed May 11, 2011 1:26 pm
by deadlock_gr
Hi, I found the reason for the answer in par. 16.3.4, and not in the paragraph mentioned by the answer.

The container must ensure that the enterprise bean instances have only read access to their environment variables. The container must throw the javax.naming.OperationNotSupportedException from all the methods of the javax.naming.Context interface that modify the environment naming context and its subcontexts.

Re: About Question enthuware.oce-ejbd.v6.2.571 :

Posted: Fri May 13, 2011 5:38 am
by admin
Further explanation has been added to the question.

thanks for your feedback!

Re: About Question enthuware.oce-ejbd.v6.2.571 :

Posted: Tue Dec 03, 2013 12:52 pm
by PMiglani
Hi, The javax.naming.OperationNotSupportedException exception should be thrown only if JNDI lookup and determineActualLocale() method return different locale. Please clarify whether option 1 will be true in all cases.

Re: About Question enthuware.oce-ejbd.v6.2.571 :

Posted: Tue Dec 03, 2013 8:27 pm
by admin
That is correct. It will throw the exception only if a different locale is returned. The problem statement has been updated to make it clear.
thank you for your feedback!
Paul

Re: About Question enthuware.oce-ejbd.v6.2.571 :

Posted: Tue Apr 28, 2015 12:28 pm
by himaiMinh
As the API says at http://docs.oracle.com/javase/7/docs/ap ... .Object%29 ,
The rebind method throws NamingException, instead of OperationNotSupportedException.