I'm using a @Factory to setup a session object and start a conversation, this 
is all done in a Statefull session bean. (This is latest Seam from CVS)

  | @Stateful
  | @Name("constraintsUpdater")
  | @Interceptor(SeamInterceptor.class)
  | @Intercept(InterceptionType.ALWAYS)
  | public class ConstraintsUpdaterBean implements  Serializable {
  | 
  |     @In
  |     @Out(scope = ScopeType.CONVERSATION)
  |     private ConstraintsUpdate constraintsUpdate;
  | 
  |     @Factory(value = "constraintsUpdate")
  |     @Begin
  |     public void initConstraintsUpdate() {
  |                ...
  |        }
  | ...
  | }
  | 

The problem is that when the JSF page try to acces the object, the factory 
method is being invoked, and before it is invoked the SeamInterceptor tries to 
inject the scoped object, which tries to invoke the factory method,wich gets 
intercepted, etc ... (it creates a loop).

Is there something conceptually wrong in what I'm doing or is it a limitation 
to the @Factory notation.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912757#3912757

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912757


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to