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

Moderator: admin

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

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

Post by deadlock_gr »

The second answer (marked as wrong) says:
It allows an enterprise bean to modify its environment properties without knowing about them at the development time.
The explanation says:
This is wrong because a bean cannot change its environment. It gets whatever the assembler/Deployer gives to it.
Although I agree the answer is wrong, I think that the explanation is wrong. The bean can change its environment overriding what the assembler / deployer have set by using InitialContext.rebind().
Is this correct or not?
http://download.oracle.com/javase/6/doc ... ntext.html
Last edited by deadlock_gr on Wed May 04, 2011 9:53 am, edited 1 time in total.

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

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

Post by admin »

A container is only obligated to provide a read only namespace. Context.rebind() is not guaranteed to work.
HTH,
Paul.

garfield
Posts: 9
Joined: Sun Dec 07, 2014 3:27 am
Contact:

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

Post by garfield »

Can someone please elaborate on option 4. What does it mean "locate external information without prior knowledge of how the information is named and organized" ?

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

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

Post by admin »

It basically means that you do not need to hardcode the names in your code. A bean can look up information from the JNDI namespace dynamically. The data in the JNDI itself can be changed by external systems.

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

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

Post by himaiMinh »

In the explanation, what does ISV stands for? I could not find it from the spec.

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

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

Post by admin »

Independent Software Vendors.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests