[jboss-user] [JBoss Seam] - Re: javax.ejb.ConcurrentAccessException: no concurrent calls

petemuir do-not-reply at jboss.com
Mon Dec 4 18:11:46 EST 2006


You can have two @Factory methods on the same bean.  What you can't do is have circular dependencies, as, for obvious reasons, this would blow up :)


  | ...
  | @In(create=true)
  | Foo foo;
  | 
  | @In(create=true)
  | Bar bar;
  | 
  | @Factory("foo") 
  | public void fooFactory() {
  |    //instatiate foo
  | }
  | 
  | @Factory("bar")
  | public void barFactory() {
  | ...
  | }

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

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



More information about the jboss-user mailing list