pool de conexiones-glassfish
hola a todos, espero que me puedan dar algunas luces, la verdad ando un poco perdido... resulta q tengo un servidor glassfish 3.1 , he configurado el pool de conexiones en el server, desde mi aplicacion utilizo dicho pool, el tema es que me deja las conexiones abiertas, como que no respeta el timeout, y solo las "elimina", cuando bajo la aplicacion (uso spring 3 y hibernate).
<bean id="dataSource" destroy-method="" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="jdbc/myds" />
<property name="lookupOnStartup" value="false"/>
<property name="cache" value="false"/>
<property name="proxyInterface" value="javax.sql.DataSource"/>
</bean>
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean" destroy-method="destroy">
<property name="dataSource" ref="dataSource"/>
<property name="configurationClass" value="org.hibernate.cfg.AnnotationConfiguration"/>
<property name="mappingResources">
<list>
<value>xxx.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.format_sql">true</prop>
<prop key="hibernate.connection.useUnicode">true</prop>
<prop key="hibernate.connection.characterEncoding">UTF-8</prop>
<prop key="hibernate.connection.charSet">UTF-8</prop>
</props>
</property>
</bean>
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager" >
<property name="dataSource" ref="dataSource" />
</bean>
<property name="jndiName" value="jdbc/myds" />
<property name="lookupOnStartup" value="false"/>
<property name="cache" value="false"/>
<property name="proxyInterface" value="javax.sql.DataSource"/>
</bean>
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean" destroy-method="destroy">
<property name="dataSource" ref="dataSource"/>
<property name="configurationClass" value="org.hibernate.cfg.AnnotationConfiguration"/>
<property name="mappingResources">
<list>
<value>xxx.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.format_sql">true</prop>
<prop key="hibernate.connection.useUnicode">true</prop>
<prop key="hibernate.connection.characterEncoding">UTF-8</prop>
<prop key="hibernate.connection.charSet">UTF-8</prop>
</props>
</property>
</bean>
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager" >
<property name="dataSource" ref="dataSource" />
</bean>
adjunto capturas de la configuracion en el server.
gracias de antemano.
Adjunto | Tamaño |
---|---|
Captura1.JPG | 81.41 KB |
Captura2.JPG | 74.94 KB |
Captura3.JPG | 49.02 KB |
- imeneses's blog
- Inicie sesión o regístrese para enviar comentarios
Comentarios recientes
hace 8 semanas 3 días
hace 1 año 20 semanas
hace 1 año 24 semanas
hace 1 año 31 semanas
hace 1 año 39 semanas
hace 1 año 42 semanas
hace 1 año 44 semanas
hace 1 año 47 semanas
hace 1 año 47 semanas
hace 2 años 1 semana