This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Spring: delimiter after & in spring config Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring: delimiter after & in spring config" Watch "Spring: delimiter after & in spring config" New topic
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