How to access Bina in the context of another application?

The crux of the matter:
Have two web application with beans on the application server WildFly. Need in the context of one application to access another application BINU.
Tried to think in the direction JNDI, but in addition to the various options for obtaining DataSource can't find anything.
How to access the context of another application? How to access another Bina?

Thank you.
June 26th 19 at 14:11
2 answers
June 26th 19 at 14:13
Solution
It is fundamentally wrong. Two different applications must be different. If they need to interact, use JMS.
And is suitable for the transmission of serialized objects? - Magali_OConner54 commented on June 26th 19 at 14:16
: if your object is Serializable, then Yes. - samir39 commented on June 26th 19 at 14:19
June 26th 19 at 14:15
You can still use jmx or even big game rmi.

Find more questions by tags JavaSpring