| Author |
Spring: delimiter after & in spring config
|
manuel aldana
Ranch Hand
Joined: Dec 29, 2005
Posts: 308
|
|
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 ]
|
aldana software engineering blog & .more
|
 |
manuel aldana
Ranch Hand
Joined: Dec 29, 2005
Posts: 308
|
|
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 ]
|
 |
 |
|
|
subject: Spring: delimiter after & in spring config
|
|
|