<p>We have 3 applications using 3 different spring configuration files. But we have one database and one datasource, so one session factory.Hhow can we import the session factory bean into the 3 different spring config files?</p>

If you are using XML configuration:
Put your database settings in a Spring configuration called "database-config.xml" and import it in the other configuration files.
```
```
<import resource="database-config.xml"/>
```
```
As to how you share it among three applications is more of a Configuration Management issue. You could use ant / maven to check it out of a repository and move it into the correct location.