[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-jigsaw-dev
Subject:    =?UTF-8?B?UmVbMl06IHdhci9XRUItSU5GL2xpYiBpbiBKUE1TIGNvbmNlcHQ=?=
From:       Alex Sviridov <ooo_saturn7 () mail ! ru>
Date:       2018-09-28 16:59:18
Message-ID: 1538153958.185385826 () f416 ! i ! mail ! ru
[Download RAW message or body]

Do I understand you right - you suggest to take these jars from /lib and deploy
them on the same layer (where is .war module) as independent modules. 
And when we create this layer we create one class loader for all modules?

Best regards, Alex


>Пятница, 28 сентября 2018, 19:45 +03:00 от Alan Bateman <Alan.Bateman@oracle.com>:
>
>On 28/09/2018 17:06, Alex Sviridov wrote:
>> If we place .war file on JPMS layer and this .war file has .jars in WEB-INF/lib what we should
>> do with these jars? Should we deploy them at the the same JPMS layer with .war module?
>> I mean :
>> JPMS layer:
>> - war module
>> - jarmodule1_from_war
>> - jarmodule2_from_war
>> ...
>> - jarmoduleN_from_war?
>>
>> Or should we create for them another layer? Or something else?
>This may need someone familiar with servlet or other Java EE specs to 
>comment. I think, but not certain, that there is something in the 
>servlet spec about the classes in these JAR files needing to be visible 
>to the web application class loader. I think it may have something to 
>imply that the classes in the web application and the classes loaded 
>from lib/* are defined to the same class loader. In any case, if there 
>are no overlapping packages then you should be able to map all of the 
>modules to the same class loader (defineModuelsWithOneLoader) and it 
>should work.
>
>-Alan.


-- 
Alex Sviridov

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic