Page 1 of 1

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

Posted: Mon Nov 20, 2017 8:44 pm
by brunomg00
The following wrong alternative:
Deployment Descriptor can always override metadata specified in bean class annotations.
has the following explanation:
Structural information may be provided using metadata annotations in the beans code or in the deployment descriptor. The structural information cannot, in general, be changed using Deployment Descriptor because doing so could break the enterprise bean’s function.
What that Structural information means? Annotations like @Singleton, @Stateless, @Remote, etc?

Thanks in advance.

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

Posted: Mon Nov 20, 2017 11:37 pm
by admin
Yes, section 19.1 of EJB 3.1 spec mentions structural information but does precisely define what constitutes structural information. It merely says, "Structural information describes the structure of an enterprise bean and declares an enterprise bean’s external ".

However, in section 19.2 it says, "The Bean Provider is responsible for providing in the deployment descriptor the following structural information for each enterprise bean if this information has not be provided in metadata annotations or is to be defaulted."

Under this section it lists the structural information. It includes bean class, type, interface types, schema names etc.

HTH,
Paul.

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

Posted: Tue Nov 21, 2017 7:35 pm
by brunomg00
Thanks for the quick reply Paul, it has just made things clearer.
However, I believe the right sections are 19.1 and 19.2 instead of 9.x (which talks about query language).

Regards,
Bruno.

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

Posted: Tue Nov 21, 2017 9:21 pm
by admin
brunomg00 wrote:Thanks for the quick reply Paul, it has just made things clearer.
However, I believe the right sections are 19.1 and 19.2 instead of 9.x (which talks about query language).

Regards,
Bruno.
You are right. 19. Not 9 :oops: