-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: SpringFramework, 1 SessionFactory 1 datasource???
PostPosted: Mon May 09, 2005 7:23 am 
Newbie

Joined: Mon May 09, 2005 7:16 am
Posts: 1
Im using Spring to manage the hibernate configuration and it seems as though you can only define one datasource per sessionfactory.
What Ive got is something like this:

<bean name="blahblahTechSessionFactory" class="org.springframework.orm.hibernate.LocalSessionFactoryBean">
<property name="mappingResources">
<list>
...list of stuff...
</list>
</property>
<property name="hibernateProperties">
<props>
...list of props...
</props>
</property>
<property name="dataSource">
<ref bean="blahblahDataSource"/>
</property>

</bean>

and what I would like is something like this (or any format that allows the definition of several dataSource property values:

<bean name="blahblahTechSessionFactory" class="org.springframework.orm.hibernate.LocalSessionFactoryBean">
<property name="mappingResources">
<list>
...list of stuff...
</list>
</property>
<property name="hibernateProperties">
<props>
...list of props...
</props>
</property>
<property name="dataSource">
<ref bean="blahblahDataSource"/>
<ref bean="blahblahContentSource"/>
</property>

</bean>

Does anyone know if this is possible?

thanks
bryan


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.