2 Replies Latest reply on Jan 30, 2014 1:16 AM by Sergey Sidashov

    WildFly 8: self executing stateless bean by SessionContext

    Sergey Sidashov Newbie

      Hi, i am want to execute stateless session bean method from same bean, following this instruction http://www.adam-bien.com/roller/abien/entry/how_to_self_invoke_ejb, because method execution must be in separate transaction. I found, what if I call sc.getBusinessObject(SessionBeanClass.class),oneMethod() and this execution happens at first time, method executed fine, but if I execute sc.getBusinessObject(SessionBeanClass.class).anotherMethod() in same enclosing method, field injection on this new retrieved bean instance not happens. All injected fields is null. Is this behavior is desired? Is I must call getBusinessObject on same bean class once per method execution?

      Server: WildFly 8.0.0.CR1