Announcement Announcement Module
Collapse
No announcement yet.
Spring timeout not working for Weblogic based SSB Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring timeout not working for Weblogic based SSB

    Hello,

    We have a stateless session bean which interacts with another application via corba to retrive the inventory information. When the load on this application increases, corba gets jammed somewhere and the whole weblogic server starts hanging with lots of stuck threads, while waiting for that jammed thread. Then we would have to restart the server. To prevent this what we have decided is to inject corba connectionpool params through spring. That way, the spring time out will atleast prevent it from being stuck for a long time, so, for ex: if it is stuck for more than 30 mins request has to be timed out. But this is not working right now.. Do I need to define transactionManager in spring ? Any other suggestions to avoid this issue.

    Here is my configs:

    ================================================== ================
    Spring file
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~

    <bean id="corbaPool" class="com.sdx.services.sdxInventory.service.impl. ConnectionPool" singleton="true">
    <property name="goPool" ref="connParams"></property>
    </bean>

    <bean id="connParams" class="org.apache.commons.pool.impl.GenericObjectP ool">
    <property name="maxWait" value="18000" />
    <property name="minEvictableIdleTimeMillis" value="3600" />
    <property name="testOnBorrow" value="true" />
    <property name="testOnReturn" value="false" />
    <property name="testWhileIdle" value="false" />
    <property name="maxActive" value="15" />
    <property name="minIdle" value="15" />
    <property name="maxIdle" value="-1" />
    <property name="timeBetweenEvictionRunsMillis" value="-1" />
    <property name="numTestsPerEvictionRun" value="15" />
    <property name="whenExhaustedAction" value="1" />
    <property name="factory" ref="connFactory"/>
    </bean>

    <bean id="connFactory" class="com.sdx.services.sdxInventory.service.impl. connectionPoolFactory"/>

    ================================================== ================
    Weblogic deployment descriptor
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/90"
    xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd">
    <description><![CDATA[Generated by XDoclet]]></description>
    <weblogic-enterprise-bean>
    <ejb-name>SDXInventoryEJB</ejb-name>
    <stateless-session-descriptor>
    <pool>
    <max-beans-in-free-pool>15</max-beans-in-free-pool>
    <initial-beans-in-free-pool>5</initial-beans-in-free-pool>
    <idle-timeout-seconds>1800</idle-timeout-seconds>
    </pool>
    </stateless-session-descriptor>
    <transaction-descriptor>
    <trans-timeout-seconds>1800</trans-timeout-seconds>
    </transaction-descriptor>
    <jndi-name>SDXInventoryEJB</jndi-name>
    </weblogic-enterprise-bean>
    <weblogic-enterprise-bean>
    <ejb-name>SDXInventoryEJBLocal</ejb-name>
    <stateless-session-descriptor></stateless-session-descriptor>
    <transaction-descriptor>
    <trans-timeout-seconds>1800</trans-timeout-seconds>
    </transaction-descriptor>
    <local-jndi-name>SDXInventoryEJBLocal</local-jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    ================================================== ================

    Cheers,

    Tam.

  • #2
    Can anyone help me here ?

    Comment

    Working...
    X