General discussion


how to use two different version jar in same ear

By amit jain ·
In our project ear we have tow ejb jars.
both are depending on utility jar of project.
Both ejb jars depends on different version of utility jar.
So while making ear i included both version of utility jar with different name & in ejb jars meta-inf file refered to different name of utility jar.

Problem is that earclassloader loads only one time class from utility jar and next time when i try to refer to different version of utility jar if gives me the already loaded classes , it does not go for loading class using second ejb jar meta-inf.

One solution which i thought was making two different ear for different version utility jar but it will require client to deploy two ear.

Is there any way to load different version classes in same ear ??

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Related Discussions

Related Forums