Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] How to specify jar file location for entities using properties programatically

Hi Tom
 
I had all my other properties set programmatically and also because the location of the jar file changes as we move from one env to other env. I want to keep the persistence.xml file at bare minimum..
 
Thanks EclipseLink Team for your responses.
 
Kris

f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng

--- On Wed, 3/4/09, Tom Ware <tom.ware@xxxxxxxxxx> wrote:

From: Tom Ware <tom.ware@xxxxxxxxxx>
Subject: Re: [eclipselink-users] How to specify jar file location for entities using properties programatically
To: "EclipseLink User Discussions" <eclipselink-users@xxxxxxxxxxx>
Date: Wednesday, March 4, 2009, 1:40 PM

Hi,

  Unfortunately, the only place to add a jar file is through the <jar-file> element in persistence.xml.

  What do you hope to gain by specifying the jar file as a property?

-Tom

krisusa123 wrote:
> I have a jar file which has entity classes to be persisted. My persistence.xml file has an entry like this
>  <jar-file>../_zzz_.jar</jar-file>
>  and instead of specifying in persistence.xml file, I want to set it programmatically using
> something like
>  properties.put("YYYY","../zzz.jar");
>  What is the YYYY value I can use here.. Did not find anywhere in the documentation.
>  Any help is highly appreciated.
>  Thanks EclipseTeam!

>
> f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top