With the @Resource annotation you define the resource you want to inject. Note this annotation is an older style annotation. Going forward the recommendation is to use the CDI @Inject annotation.
In code
@Resource UserTransaction utx;
Posted December 15, 2014