|
From: <jue...@we...> - 2004-02-24 10:17:56
|
Was on my todo list. I've just changed LocalSessionFactoryBean's = configuration properties to org.springframework.core.io.Resource arrays = as far as possible. =20 There's still "mappingResources", expecting classpath locations, = analogous to <mapping resource=3D"xxx"> entries in a Hibernate XML = config file. But there's also "mappingLocations" now, taking any = Resource path like "classpath:xxx" or "file:xxx" or = "WEB-INF/mappings/xxx" in a web application context. =20 The former "mappingResourceJars" is now called "mappingJarLocations", = taking a Resource array too. Additionally, there's also = "mappingDirectoryLocations" now, supporting Hibernate's = config.addDirectory method, taking a Resource array too. =20 LocalSessionFactoryBean's "configLocation" is now a Resource too instead = of classpath String. This is unfortunately incompatible with = "/hibernate.cfg.xml"-style classpath Strings, but hardly anyone is using = that AFAIK (as it is preferable to keep the configuration in the Spring = context), and it's easy to convert: "classpath:/hibernate.cfg.xml". =20 Juergen =20 ________________________________ Von: spr...@li... im Auftrag von = Shishir K. Singh Gesendet: Di 24.02.2004 07:05 An: spr...@li... Betreff: RE: [Springframework-user] PropertyPlaceholderConfigurer bug Can config.addJar(resourcePath) in LocalSessionFactoryBean.java be = changed to accept File as an input parameter instead of String since the = Configuration:addJar(String fileName) method in Hibernate 2.1.1 is = deprecated Thanks Shishir=20 -----Original Message----- From: spr...@li... = [mailto:spr...@li...] On Behalf Of = j=FCrgen h=F6ller [werk3AT] Sent: Monday, February 23, 2004 5:34 PM To: spr...@li... Subject: Re: [Springframework-user] PropertyPlaceholderConfigurer bug It's already fixed in CVS, and even replaced with some new code in the = meantime. We support a "type" argument for the "constructor-arg" tag = now, thus that code had to be adapted anyway. BTW, we're gonna do a quick 1.0 RC2 release this week, including those = changes. Juergen ________________________________ Von: spr...@li... im Auftrag von = Nick Minutello Gesendet: Fr 20.02.2004 02:42 An: spr...@li... Betreff: RE: [Springframework-user] PropertyPlaceholderConfigurer bug Here is a patch if you like. -Nick -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf Of = nic...@bn... Sent: 19 February 2004 13:03 To: spr...@li... Subject: [Springframework-user] PropertyPlaceholderConfigurer bug Ive found a bit of a buggette in PropertyPlaceholderConfigurer I am getting a Concurrent modification Exception out of protected void parseGenericArgumentValues(Properties props, Set gas) The reason is that we are remove/adding to the collection rather than = the iterator. http://opensource.atlassian.com/projects/spring/secure/ViewIssue.jspa?ke y=3DSPR-41 -Nick This message and any attachments (the "message") is intended solely for = the addressees and is confidential. If you receive this message in error, please delete it and immediately = notify the sender. Any use not in accord with its purpose, any = dissemination or disclosure, either whole or partial, is prohibited = except formal approval. The internet can not guarantee the integrity of = this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable = for the message if modified. --------------------------------------------- Ce message et toutes les pieces jointes (ci-apres le "message") sont etablis a l'intention exclusive de ses destinataires et = sont confidentiels. Si vous recevez ce message par erreur, merci de le = detruire et d'en avertir immediatement l'expediteur. Toute utilisation = de ce message non conforme a sa destination, toute diffusion ou toute = publication, totale ou partielle, est interdite, sauf autorisation = expresse. L'internet ne permettant pas d'assurer l'integrite de ce = message, BNP PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce message, dans = l'hypothese ou il aurait ete modifie. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software = kit from IBM. Click Now! http://ads.osdn.com/?ad_id=3D1356&alloc_id=3D3438&op=3Dclick _______________________________________________ Springframework-user mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-user ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software = kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id438&op=3Dick _______________________________________________ Springframework-user mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-user ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id438&op=3Dick _______________________________________________ Springframework-user mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-user |