简体   繁体   中英

Accessing class inside jar in ear from another ear

hi is it possible to access jar files in one ear from another ear? Say I have App1.ear inside that there is a webapp1.war and inside that there is a app1jar.jar and it contains Foo.class. Now say I have App2.ear inside that that there is a Webapp2.war. Is it possible to access Foo.class from webapp2.war?

if possible what configuration change I need to do? I am not getting what I need to search in-order to find this so i posted here.

If you think about weblogic You could define B.ear as a shared application library and access it from A Similar thing can be done in jboss and weblogic

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM