Red Hat Bugzilla – Bug 995505
[Doc Bug Fix] EjbContext is not good to be refered
Last modified: 2014-08-14 11:19:41 EDT
Title: Begin a Transaction
There is no EjbContext class. There is EJBContext class. And you can't call getUserTransaction directly on the EJBContext class. You need to instantiate it at first.
Nevertheless the normal usage is to inject specific context based on session bean type.
@Resource SessionContext ctx;
in statless/stateful bean.
@Resource MessageDrivenContext ctx;
I think that it would be better to mention it so.
Okay: I have modified the first step of the procedure to change the description text, and also changed the substep for the 'Context' to have separate code samples for stateless/stateful beans vs message-driven beans (as shown in the description of this bug).
The changes can be previewed on docbuilder here:
The changes will be in the next document build, and the status will be changed to ON_QA when it is ready for review.
This can be verified here:
Verified on Revision 6.3.0-19