Hi Les,

The problems is in using JPA entityManager inject to my spring bean
using @PersistenceContext. I configured the injection manually and it
works now. May I know the reason why are we using RuntimeException for
AuthenticationException? Just to add my knowledge bank of JSecurity.
:-D

Cheers,

On Wed, Aug 27, 2008 at 2:42 AM, Les Hazlewood <[EMAIL PROTECTED]> wrote:
> Hi Joshua,
>
> As I understand it, this is strongly related to how your transaction
> boundaries are defined.  Hibernate would close the HibernateSession when a
> transaction is committed or rolled back (e.g. due to a RuntimeException).
>
> If a runtime exception is thrown (like the AuthenticationException), but you
> catch it before the code that started the transaction exits, the transaction
> won't be rolled back.
>
> Does that help?

-- 
Setting a new landmark.
Blog: http://joshuajava.wordpress.com/
Twitter: http://twitter.com/thejavafreak

Reply via email to