Use EJBHome to obtain references to Enterprise Java Bean (EJB) home objects for the EJBs in your project catalog.
Use method EJBHome.locate() to locate the home object of the EJB that you want to use.
// Obtain generic reference to an EJB Home object.
// Note: "calculator_ejb" is the name of the External Resource
// defined in your project for "CalculatorHome"
home as Any = EJBHome.locate(configuration : "calculator_ejb")
// Cast
calculatorHome as CalculatorHome = CalculatorHome(home)
// Create reference to EJB object
calculator = create(calculatorHome)
// Use the object
display "5+5="+ makeSum(calculator, arg1 : 5, arg2 : 5)
// dispose the EJB object
calculator.remove();