I have a java bean that creates an endpoint:
@Bean
public String endpoint() {
return "jdbc" + "a" + "b" + "c";
}
And I want to use that endpoint in my SessionFactory Bean:
<bean id="SessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"
parent="AbstractSessionFactory">
<property name="hibernateProperties">
<props>
<prop key="hibernate.connection.url">endpoint</prop>
</props>
</property>
</bean>
How do I wire this up so that I can use it this way?