Inside of my method I want to get a CDI bean, but I don't want to use @Inject as I don't need this bean to be saved on instance level. I just want to get the instance and pass it to some other method.
Previously I was working with Spring, but now switch to JEE application. In Spring inside of my method I could simply write:
MyClass myClass = applicationContext.getBean(MyClass.class)
Is there a way to do something like this in JEE application?