I want to move old system about Service and DAO layer developed in sping2.5
and hibernate3 to OpenEJB Standalone Server.
but when I try to access standalone Server by Tomcat about 10 times, it was
block, after I restart standalone server , the same thing happen again.
so I guess it might be the connection not be released , the below is my
settings
Any one Can help me , give me some ideas to solve the problem. tks
in openejb.xml:
<Resource id="PATENTDB" type="DataSource">
# Oracle example
#
# This connector will not work until you download the driver at:
# http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html
# oracle.jdbc.driver.OracleDriver
JdbcDriver oracle.jdbc.OracleDriver
JdbcUrl jdbc:oracle:thin:@192.168.0.2:1521:xxxxxx
UserName AP
Password patent
initialSize 3
MaxActive 10
MaxIdle 10
</Resource>
in spring-context.xml:
<bean name="mainTransactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<tx:annotation-driven mode="aspectj"
transaction-manager="mainTransactionManager" proxy-target-class="true"/>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource" ref="dataSourceOracle"></property>
<property name="lobHandler" ref="lobHandler" />
<property name="configLocation">
<value>classpath:gov/tipo/resource/hibernate/hibernate.cfg.xml</value>
</property>
</bean>
<bean id="dataSourceOracle"
class="org.springframework.jndi.JndiObjectFactoryBean" >
<property name="jndiName"
value="java:openejb/Resource/xxxxxxx"></property>
</bean>
--
View this message in context:
http://openejb.979440.n4.nabble.com/org-springframework-orm-hibernate3-HibernateTransactionManager-not-work-tp4665966.html
Sent from the OpenEJB User mailing list archive at Nabble.com.