Page 1 of 1

About Question enthuware.ocpjp.v11.2.3427 :

Posted: Sun Apr 18, 2021 6:17 am
by 61d14837
Please confirm if I understand this concept correctly. In the real world, I would employ the top-down migration strategy because I don't have access to mysql-connector-java.jar The datalayer.jar may belong to the same company but another team could own that project.

Re: About Question enthuware.ocpjp.v11.2.3427 :

Posted: Sun Apr 18, 2021 8:07 am
by admin
That is correct.

Re: About Question enthuware.ocpjp.v11.2.3427 :

Posted: Sat Feb 05, 2022 1:58 am
by gayanw
What if I modularize only the myapp.jar and leave data-layer and mysql-connector-java on the classpath. Will it work?

Re: About Question enthuware.ocpjp.v11.2.3427 :

Posted: Sat Feb 05, 2022 3:39 am
by admin
No, classes in modules cannot access classes from jars on classpath. Only automatic modules can do that. So, you need to use automatic modules. Please go through a good book to understand this concept. We recommend the modules chapter of Deshmukh's 1z0815 fundamentals

Re: About Question enthuware.ocpjp.v11.2.3427 :

Posted: Sun Feb 06, 2022 1:51 am
by gayanw
Thanks for the info.

Re: About Question enthuware.ocpjp.v11.2.3427 :

Posted: Mon Nov 14, 2022 10:51 am
by aPerson
Does the question mean: how can you make myapp modularized with as few steps as possible, starting at the bottom? Would leaving mysql as it is, making datalayer automatic and myapp modularized be a good answer to that? Or is the premise of the question that mysql and datalayer should be modularized (either automatic or regular)?

Re: About Question enthuware.ocpjp.v11.2.3427 :

Posted: Mon Nov 14, 2022 12:12 pm
by admin
The problem statement says that you have to use the bottom-up approach to modularize your app. If you use automatic modules then you are not using bottom-up approach (you are using top-down approach). The concept of automatic modules is created solely for the top-down approach.