Access to the class inside the can in the ear from the other ear

hi is it possible to access jar files in one ear from the other ear? Let's say I have App1.ear inside, which is webapp1.war, and inside, that is app1jar.jar, and it contains Foo.class. Now say that I have App2.ear inside, that there is Webapp2.war. Is it possible to access Foo.class from webapp2.war?

if possible, what configuration change do I need to make? I do not get what I need to search to find this, so I posted here.

+4
source share
1 answer

If you are thinking about weblogic, you can define B.ear as a common application library and access it from A. A similar thing can be done in jboss and weblogic

http://docs.oracle.com/cd/E17904_01/web.1111/e13706/libraries.htm#i1065356

0
source

Source: https://habr.com/ru/post/1501832/


All Articles