Wiki

Clone wiki

XALPI / EboContextWaiting

If you ever tried to create a private field in a bean or in a class and make that a reference to a boObject you probably found that you get in the Java console something like EboContext : Waiting for Thread :

This is because the EboContext associated with the request in which the boObject was created/loaded is no longer active, but there's still a reference to it through your boObject variable.

XALPI checks for a valid EboContext every time it calls any methods that requires it, so that you can use references to XALPI instances in the context of another class (facilitating unit test creation)

For instance you can do the following:

#!java

public class SomeBusinessLogic{
   private Car car;

   public SomeBusinessLogic(Car theCar){
     this.car = theCar;
   }

}

Updated