Issue Type: Bug Bug
Affects Versions: 1.1.5.Final
Assignee: Unassigned
Components: Conversations, Performance and Scalability
Created: 27/Jun/12 5:41 PM
Description:

When creating two or more conversation scoped beans, the creation of the second bean will block until any method annotated with @PostConstruct is finished.

In my example WAR project I have two JSF pages: one accesses a conversation scoped bean that sleeps for 10 seconds in a method annotated with @PostConstruct. The other accesses a conversation scoped bean that does not have any method annotated with @PostConstruct.

While the first page is loading, the second page will be unable to finish, because bean creation is blocked completely.

The lock seems to be acquired here:
https://github.com/weld/core/blob/1.1.5.Final/impl/src/main/java/org/jboss/weld/context/AbstractContext.java#L101

... and postconstruct is called here:
https://github.com/weld/core/blob/1.1.5.Final/impl/src/main/java/org/jboss/weld/bean/ManagedBean.java#L291

Environment: Tested in:
* JBoss AS 7.1.1 with Weld Core 1.1.5.AS71
* Glassfish 3.1.1 with Weld Core 1.1.1.Final
Project: Weld
Priority: Major Major
Reporter: Vetle Roeim
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira