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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
deadlock_gr
Posts: 54
Joined: Tue Apr 19, 2011 10:32 am
Contact:

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

Post 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.

Online
admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

Further explanation has been added to the question.

thanks for your feedback!

PMiglani
Posts: 14
Joined: Sat Jan 19, 2013 8:42 am
Contact:

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

Post 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.

Online
admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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

himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

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

Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests