from org.gluu.service.cdi.util import CdiUtil my_bean = CdiUtil.getBean(MyBean.class) my_bean.do_something()
from org.gluu.service.cdi.util import CdiUtil my_bean = CdiUtil.produce(MyBean.class) my_bean.do_something()In this example, we use CdiUtil.produce() to create a new instance of MyBean and then call a method on it. The package library for org.gluu.service.cdi.util is part of the Gluu Server project.