title: spring @Transactional not rolling back for rollbackFor=Exception.class
body: <p>I need to roll back the transaction if any exception occurs in method solrJ.indexAllergenBulkSlor(), but it's not rolling back the transaction.I have set AUTOCOMMIT to false also.Kindly help.Thanks in advance.
  This is how my service impl looks</p>
  
  <pre><code>@Service("mcareService")
  @Transactional(readOnly = true, value = "oltpTransactionManager")
  public class MyServiceImpl implements MyService {
  
      @Override
      @Transactional(value = "oltpTransactionManager",  propagation=Propagation.REQUIRED, rollbackFor={Exception.class, SolrServerException.class})
      public boolean saveAllergens(List&lt;AllergenAutoCmp&gt; allergenList) {
          boolean flag = false;
          LOGGER.info("Inside saveAllergens in MCareServiceImpl");
          try {
              allergenAutoCmpRepository.deleteAllergens();
              allergenAutoCmpRepository.saveAllergens(allergenList);
              solrJ.indexAllergenBulkSlor();
              flag = true;
          } catch (SolrServerException e) {
              LOGGER.error("Error occured while solr indexing Allergens", e);
          } catch (IOException e) {
              LOGGER.error("Error occured while solr indexing Allergens", e);
          }
          LOGGER.info("returning from saveAllergens in MCareServiceImpl");
          return flag;
      }
  
  }
  </code></pre>