How to restrict the class visibility in the child project
I have an ear file with following configuration.
I have configured a sharedContext.xml in em-client for enabling sharing the context for multiple web applications.
I followed the below link for configuring a shared context.
I have brought in a dependency by adding the required jars in the MANIFEST.MF files of each project.
Inside MANIFEST.MF of em-web I have mentioned em-client.jar as a dependency.
Similarly inside MANIFEST.MF of em-client has a em-services.jar as dependency.
My web application is working properly.
But,I want em-web to depend only on em-client. But I am able to access my the em-service classes inside em-web even though there is no direct dependency. Is it because, em-service has been included in em-client? Is there any way I can block the visibility of my service classes in em-web.