Access session bean member variable from EJB asynchronous method

I have a @SessionScoped bean (CDI) that I would like to access and update from a EJB @Asynchronous method. If I pass a reference to a member variable in the bean via the @Asynchronous method's parameters and work with it, assuming the object being passed in is made thread safe, is there any other issues I should be aware of?

Is there any different to be aware if a @ViewScoped bean is used instead?

The only one I could think of would be if the CDI Session Bean timed out however that...

Read More »

By: StackOverFlow - Sunday, 15 April

Related Posts