Does it still deadlock when you annotate the bean
@ConcurrencyManagement(BEAN)?

If it does, you can always spawn a new thread in your @PostConstruct
method which invokes your business method.



-- 
Richard Rak <[email protected]>

On Fri, 2009-10-16 at 10:44 +0200, Quintin Beukes wrote:
> Just to correct my wording of the following paragraph:
> 
> > As you can see I inject the bean into itself (which should be fine,
> > being a singleton and all). But then I invoke a business method.
> > Currently this creates a deadlock in OpenEJB.
> 
> It should read
> 
> ... But then I invoke a business method in it's @PostConstruct method...
> 
> This creates a deadlock, because I assume the invocation thread waits
> on the construction to complete, which again waits for the invocation
> to return.
> 
> Quintin Beukes

Reply via email to