cancel
Showing results for 
Search instead for 
Did you mean: 

PersonService need active transaction and synchronization

steel
Champ in-the-making
Champ in-the-making
I am attempting to upgrade a custom Alfresco app from 1.2 RC1 to 1.2 final.  The code ran fine in RC1 but with 1.2 most of the personService calls now throw a runtime exception saying it needs an active transaction and synchronization. If I wrap all of the personService calls in a transaction block its happy.  Is this something new in 1.2? or is there something wrong w/ my configuration?

thanks.
3 REPLIES 3

andy
Champ on-the-rise
Champ on-the-rise
Hi

The PersonService bean is the base bean wrapped with transactional and security proxies. This may be hat you are seeing. How do you obtain the person service?

Regards

Andy

steel
Champ in-the-making
Champ in-the-making
Hi

The PersonService bean is the base bean wrapped with transactional and security proxies. This may be hat you are seeing. How do you obtain the person service?

Regards

Andy

thanks Andy, there was some typos when passing in the personService to the bean.  #{personService} was being passed in the xml config files rather than #{PersonService}.

One question though. In the faces-config-beans.xml file, under the managed bean "NewUserWizard", the authenticationService is being passed in as #{authenticationService} rather than the Capitalized version. Is this on purpose?  All other instances where authentication service is passed in are the capitalized one.

thanks.

andy
Champ on-the-rise
Champ on-the-rise
Hi

I will take a look at this.

Regards

Andy