Help

Controls

PermLinkWikiLink

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Forum: Seam Users Forum ListTopic List
06. Aug 2008, 10:20 CET | Link

synchronization of page scoped components?

we are using page scoped controllers, that handle ajax requests from one particular facelet page.

for some of these ajax calls, we found that seam did not inject the dependencies. after debugging, we discovered, what the cause was:

when a thread enters the org.jboss.seam.core.BijectionInterceptor it sets reentrant to true, injects all dependencies and calls the intercepted method. when there is a second (ajax) call before this first call returned, reentrant is still true and no injection happens at all.

the docs say, that calls conversation scoped components are always synchronized, so this behaviour would not happen - is this right? what is the best way to to this with page scoped components? should we mark all page scoped components, that participate in ajax calls (and of course all the components these components have dependencies on) with @Synchronized ? years ago, everybody told you, not to do synchronization in webapps, as its to expensive.

is the performance penalty of synchronization in the current jvm implementations already neglectable?

saludos, tom

3 Replies:
06. Aug 2008, 19:29 CET | Link

This shouldn't happen, can you show some code?

 

Read about how to report a bug.

13. Nov 2008, 09:16 CET | Link

I think this is happening to us with an application with Seam 2.0.1GA... Anyone know if this is fixed in 2.0.2SP1 ? or in 2.1.0GA?

 
Please don't forget to rate

I believe that imagination is stronger than knowledge -- myth is more potent than history -- dreams are more powerful than facts -- hope always triumphs over experience -- laughter is the cure for grief -- love is stronger than death.

13. Nov 2008, 09:40 CET | Link

Found it JBSEAM-3301, seems like it is fixed for 2.1.0.SP1, but not for 2.0.2SP1, and not even for 2.0.3.CR1 (it is for 2.0.3.CR2 but that one is still not available in the download page. Any estimation on the release of 2.0.3.GA?

 
Please don't forget to rate

I believe that imagination is stronger than knowledge -- myth is more potent than history -- dreams are more powerful than facts -- hope always triumphs over experience -- laughter is the cure for grief -- love is stronger than death.