About Question enthuware.ocpjp.v11.2.3427 :
Moderator: admin
-
- Posts: 13
- Joined: Tue Jul 21, 2020 1:39 pm
- Contact:
About Question enthuware.ocpjp.v11.2.3427 :
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.
-
- Site Admin
- Posts: 10068
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v11.2.3427 :
That is correct.
If you like our products and services, please help us by posting your review here.
-
- Posts: 4
- Joined: Sun Jan 23, 2022 9:03 am
- Contact:
Re: About Question enthuware.ocpjp.v11.2.3427 :
What if I modularize only the myapp.jar and leave data-layer and mysql-connector-java on the classpath. Will it work?
-
- Site Admin
- Posts: 10068
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v11.2.3427 :
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
If you like our products and services, please help us by posting your review here.
-
- Posts: 4
- Joined: Sun Jan 23, 2022 9:03 am
- Contact:
Re: About Question enthuware.ocpjp.v11.2.3427 :
Thanks for the info.
-
- Posts: 17
- Joined: Fri Aug 12, 2022 10:19 am
- Contact:
Re: About Question enthuware.ocpjp.v11.2.3427 :
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)?
-
- Site Admin
- Posts: 10068
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v11.2.3427 :
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.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 146 guests