[ajug-members] multiple jar versionsfor one application

Barry Hawkins barry at alltc.com
Thu May 1 11:47:35 EDT 2008


Is this not the problem OSGI and the modules JSR seek to solve,  
multiple concurrent versions of libraries?  For those wondering, this  
becomes desirable when you have large-scale deployments of code being  
accessed by multiple clients, all of whom do not stay lock-step with  
one another in terms of dependencies.  Outside of the work done by  
OSGI, I don't know of a way to accomplish the task Chris has put forth.

Barry

On May 1, 2008, at 10:56 AM, Eugene Thompson wrote:

> Chris,
>
> I'm sure I'm missing something, but there seems to be some practical
> issues with what you are trying to do. First, how would the compiler
> or jvm know which version of the class you wish to instantiate each
> time? Second, you would need to have multiple locations where the jar
> file was stored so you didn't overwrite one with another.
>
> Why would you not just use inheritance to solve this issue? Then you
> could just place the sub-version of the WorkerBee class
> (WackyWorkerBee.class) in the same jar. Do you not have access to
> these jars? 3rd party? And you want to use both implementations? There
> might be a way to solve this problem in a more traditional manner. Can
> you give more context for the issue?
>
> Gene
>
> On Thu, May 1, 2008 at 10:25 AM, Chris Abney  
> <Chris.Abney at theice.com> wrote:
>> Does any one know of a good way to access multiple versions of the  
>> same
>> Jar file from one application.
>>
>> For example:
>>
> <snip>
>>
>> Chris Abney
>>
>>
>> _______________________________________________
>> ajug-members mailing list
>> ajug-members at ajug.org
>> http://www.ajug.org/mailman/listinfo/ajug-members
>>
>
> _______________________________________________
> ajug-members mailing list
> ajug-members at ajug.org
> http://www.ajug.org/mailman/listinfo/ajug-members



-- 
Barry Hawkins
All Things Computed
site: http://www.alltc.com
weblog: http://www.yepthatsme.com







More information about the ajug-members mailing list