Page 1 of 1

About Question enthuware.oce-jpad.v6.1.344 :

Posted: Mon Jul 17, 2017 4:12 pm
by himaiMinh
Hi, this question is very similar to enthuware.oce-jpad.v6.1.343, which says a class in a PU in war is not visible to a class in the PU in the ejb jar file.

But in this question , why the class in /lib/some.jar is visible to the war file in the .ear ?

What is the difference between these two cases?

Re: About Question enthuware.oce-jpad.v6.1.344 :

Posted: Tue Jul 18, 2017 2:27 am
by admin
In the two questions the PUs are defined at different levels. In 344, you have a PU in ear and one in war. The PU in ear will be accessible to all.
In 343, you have one PU in war and one in ejb-jar. They will not be accessible to each other.

Also, please read the explanation carefully, it explains this.

Re: About Question enthuware.oce-jpad.v6.1.344 :

Posted: Tue Jul 18, 2017 8:44 am
by himaiMinh
Hi, thanks for the clarification.
In 344, the PU is in some.jar in lib directory of ear. This PU is considered to be in the ear level because of it is in lib directory of ear ? (Those jar files in lib directory is called "third party jar", which serves as a utility for other .jar/.war modules.)

In 343, the PU is in forumejb.jar along with forum.war in .ear . This PU is not considered to be in the ear level because it is not in the lib directory (or any other directory) in the ear ?

Re: About Question enthuware.oce-jpad.v6.1.344 :

Posted: Tue Jul 18, 2017 10:32 pm
by admin
That is correct.