This is my configuration for transactions..
<bean id="userDetailsService"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property...
Type: Posts; User: srinivas_nandula; Keyword(s):
This is my configuration for transactions..
<bean id="userDetailsService"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property...
Thanks again..I appreciate it. Just to be able to discount hibernate, i changed my DAO to extend JDBCDAOSupport and used JDBC to connect to the database. The results are attached in a zip file. The...
Sorry about that long post. I zipped the entire logs and send them out to you.. You could search by the string ''Start of getting user''. At the bottom, you will find the code as well.
The main application logic that gets called..
log.info("Inside loadUserByUsername ---" + userName);
// first get the User..
boolean isSuperAdmin = false;
log.info("Start of getting user...
2008-02-05 09:41:12,765 [http-8080-Processor24] DEBUG org.springframework.transaction.interceptor.TransactionInterceptor - Invoking commit for transaction on...
2008-02-05 09:40:52,765 [http-8080-Processor24] INFO com.ebizformedia.dao.impl.AuthenticationDAO - Start of getting user roles20080205:094052
2008-02-05 09:40:52,765 [http-8080-Processor24] DEBUG...
2008-02-05 09:40:46,859 [http-8080-Processor24] DEBUG org.hibernate.jdbc.AbstractBatcher - about to open ResultSet (open ResultSets: 0, globally: 0)
2008-02-05 09:40:46,859 [http-8080-Processor24]...
I am adding logs as subsequent posts as they are too long
2008-02-05 09:40:27,937 [http-8080-Processor24] INFO com.ebizformedia.dao.impl.AuthenticationDAO - Inside loadUserByUsername...
This is the logic..
String queryString = "from " + EbizForMedia.HbntEntities.ENTITY_NAME_APP_USER + " where userName = ?";
Query query =...
Thanks again for the help.. As requested, please find some hibernate logs. I narrowed it down to the area where it is taking time.
2008-02-04 17:35:52,921 DEBUG [org.hibernate.type.StringType] -...
As suggested by everyone here i set the logger to debug level on spring. Please find the times marked in red. there is a 30 second gap on getting the session holder assigned to a given thread. I...
Thanks for the response
we do have hibernate mapping with lazy loading set to false. I tried to capture a scenario when this is happening.
First time i login, it takes a minute. Susbequent...
My application uses spring with Hibernate and deployed on a tomcat server. I initially used commons dbcp for connection pooling. The first time i login to the application, it takes about a minute for...
I found out the issue..
It has nothing to do with Spring transactions. My bad. I was not doing a flush and a clear on the hibernate session for each insert. That was the problem.
Flush and...
Any Ideas? I look at the memory usage.. when i loop inside the transaction. It takes up about 80% of the memory and CPU is 100%. If i take out the loop from inside the transaction boundary and loop...
Our Project requires a bulk upload of data into the database on a trasactional basis. We are using Spring's TransactionProxyFactoryBean to provide declarative transactions in our method. I was doing...
I found out why the NullPointerException is occurring in the RoleVoter. Its the grantedAuthorities which was returning null on the UserDetailsObject which was returning null.
I wrote a custom DAO...
I am trying to do an anonymous login for a user who does not have any roles. My application context file is as below. When i try to login i get a Null Pointer Exception. I am not sure what is wrong....
Thanks for the reply..I made the change to use Affirmitive based access decision and it works now.
I was under the impression , that Unanimous or Affirmitve is based on the list of rolevoters i...
I am trying to provide anonymous authentication for my application. I provided the required anonymousProcessingFilter in my applicationContext. But in my object source defintion, when i provide...