• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Spring: delimiter after & in spring config

 
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

i am working with spring and Hibernate support. in spring config file i want to reference the LocalSessionFactoryBean (which gets proxied through spring). that does not work somehow.

when calling and using the bean directly in java-code i have to reference the target class with ctx.getBean("&sessionFactory"), which works.
when i want to wire this sessionFactory in spring xml-config-file, where LocalSessionFactoryBean gets passed as property, spring-framework claims that the reference-defintion must end with a delimiter ';'.


but any combinations i tried out ("&sessionFactory;","&;sessionFactory" etc.) don't work

any ideas what i am doing wrong?

thnx.
[ July 04, 2006: Message edited by: manuel aldana ]
 
manuel aldana
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
autsch...
i see, i am a bit stupid...

for i am using xml, of course i have to escape & with '& amp';
[ July 04, 2006: Message edited by: manuel aldana ]
 
You can't expect to wield supreme executive power just because
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic