Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring: delimiter after & in spring config

 
manuel aldana
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
  • 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
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic