This content has been marked as final.
Show 2 replies
-
1. Re: javax.ejb.ConcurrentAccessException: no concurrent calls
pmuir Dec 4, 2006 6:11 PM (in response to smokingapipe)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() { ... }
-
2. Re: javax.ejb.ConcurrentAccessException: no concurrent calls
smokingapipe Dec 4, 2006 6:46 PM (in response to smokingapipe)Thanks for the tip on that. I took out one of the factories and it was fine. I may add it back but I'll carefully check for any circular dependencies.