I can't seem to configure Compass 2.2.0 to reuse my existing transactionManager. I'm using Hibernate successfully already in this project, but to be clear, I'm not trying to use the Hibernate + Compass integration (HibernateGPS etc). I just want 'plain' Compass to reuse my existing Spring transaction config.
What happens is this... when I try to invoke Compass.openSession(), I get this exception: Could not open Hibernate Session for transaction; nested exception is java.lang.IllegalStateException: Already value [\org.springframework.jdbc.datasource.ConnectionHolder@1b001088] for key [org.apache.commons.dbcp.BasicDataSource@2da8ca45] bound to thread [2106664795@qtp-1981402139-7]
I tried debugging a little, and all I found was this:
In SpringSyncTransactionFactory.lookupTransactionSynchronization(), there is a loop which tries to find any 'syncs' that are an instanceof SpringSyncTransaction.SpringTransactionSynchronization. I only have one sync in the list of syncs, which is of type:
(which isn't of the desired type). So, since no valid SpringTransactionSynchronization's are found, I think the SpringSyncTransactionFactory tries to then make one, causing the exception since a hibernate transaction already is in place.
I'm feeling like I've just missed some sort of basic spring config. Does anyone have any clues as to what I might be doing wrong?
Producing fabulous high end fashion year after year and season after season, gucci outlet is arguably the world's most prestigious designer of clothes. As you would expect from a gucci outlet online that started out solely making leather goods, they are best known for their classic range of gucci bags and gucci handbags which usually feature the trademark company logo or pattern and come either in leather or canvas finishes which look perfect when coupled with matching gucci shoes. Ladies Gucci Shoes are simply the perfect footwear for any occasion and here at Profile we stock a large selection including Gucci Boots, Flats and High Heels. They are designer shoes of the highest quality.
Dear customers, welcome to our ugg bailey button boots Sale online store!Here you can find different kinds of ugg boots clearance in various styles and colors. All our shoes ugg clearance are in high quality at reasonable prices compared with other online stores. As a professional sale outlet, we have established good reputation in this business line. In addition, fine workmanship and exquisite material is guaranteed in our store. therefore,uggs clearance as the most common fall and winter fashion accessories, not only warmth fills the air, but can also dress up your charm plus.We will also bear the loss of goods in the free shipping. Our aim is to offer the best service and convenience for our customers. we have various payment methods.There is no denying that ugg kensington on sale will bring you unique modern style.