Announcement Announcement Module
Collapse
No announcement yet.
Re-establishing connections after database crash Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Re-establishing connections after database crash

    hi all,

    i'm using jndi to configure the datasource connections

    Code:
     <bean id="dataSource"		class="org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy">
            <property name="targetDataSource">
                <bean class="org.springframework.jndi.JndiObjectFactoryBean" >
                    <property name="resourceRef">
                        <value>true</value>
                    </property>
                    <property name="jndiName">
                        <value>${jndi.dataSource}</value>
                    </property>
                </bean>
            </property>
        </bean>
    but when my database crushes and i restart it again, the application seems enable to establish new connection and invalidate the old ones.
    Have any body idea about how to resolve this problem?
Working...
X