-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Spring Hibernate XA data source Strange problem.
PostPosted: Thu Sep 01, 2011 1:22 am 
Newbie

Joined: Thu May 26, 2011 4:00 pm
Posts: 6
Hi Everybody,

I am using Spring & Hibernate for my application. Untill recently, DBCP Basic data source was used but we have changed it to XA data source -- atomikos lately.

Now the strange problem I am facing is,

I have a SSN attribute defined in User class. I have saved a User Object. While saving it to the database I am using JASYPT encryption for storing SSN.
The encrypted string when it is decrypted manually i.e in command prompt it is giving correct SSN number.

In the same service class I have another method which gets the user details and masks the SSN (say XXX-XX-1234). This is used for UI purpose.

Now before performing an operation which uses actual SSN, if I check in the database the encrypted value of SSN changed. And, while I decrypted in
cmd prompt, to my surprise it came out to be XXX-XX-1234. I have checked thoroughly there is no save operation of User entity anywhere after masking has been done.

When I reverted back to DBCP datasource everything is functioning normally.

I am fairly new to using XA datasource and in using Hibernate. So can anyone kindly help me in resolving this issue?

Thanks,
Vivekanand Alampally.


Top
 Profile  
 
 Post subject: Re: Spring Hibernate XA data source Strange problem.
PostPosted: Thu Sep 01, 2011 9:38 am 
Newbie

Joined: Thu May 26, 2011 4:00 pm
Posts: 6
I posted this in Spring forum. http://forum.springsource.org/showthread.php?114082-Spring-Hibernate-XA-data-source-Strange-problem.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.