Mar 13th, 2007, 03:01 PM
Transaction tx = null;
tx = session.beginTransaction();
For the above code , i manually open and close the transation. How to implement the all the transaction take care by Spring framework.
kindly provide the sample for the transaction take care Spring.
Mar 19th, 2007, 03:35 AM
how to read values from properties file in applicationContext.xml
<prop key="java.naming.provider.url">t3://localhost:7001</prop> </props>
From the above code , I hard coded "t3://localhost:7001" , Incase if I want change the port , I have to change this values.
My doubt is how to read this values from properties files instead of hardcode values , please anyone help on this.