Hello guys,
I have a question concerning Payara Micro Embedded. I have a Main class where I deloy a war programmatically like this
final PayaraMicroRuntime payaraRuntime = PayaraMicro.getInstance()
.addDeployment("my.war")
.setHttpPort(8000).bootStrap();
In the Main class I also create a complex object, let's call it Control.
Inside the "my.war" I want to @Inject this Control object.
Is there any possibility to hand over this complex object, which cannot be created inside the WAR from outside?
Thanks in advance!
Best Regards
Rich