In applicationContext.xml, I write this bellow code:
 
           class="org.springframework.jdbc.datasource.DriverManagerDataSource"
          p:driverClassName="org.postgresql.Driver"
          p:url="jdbc:postgresql://localhost:5432/SampleDB"
          p:username="postgres"
          p:password="Password" />   
     
              class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
       
   

   
       
   
 
Controller Part:
 
ApplicationContext appctx = WebApplicationContextUtils.getRequiredWebApplicationContext(request.getServletContext());
        RegistrationService service = (RegistrationService) appctx.getBean("registrationService");
 
 
Service Part:
 
@Transactional(value = "transactionManager", rollbackFor=Exception.class)
 
 
But error occured. 
Please help.
Any body can suggest me the another process.