T
T
tukal-off2017-05-11 09:27:49
Java
tukal-off, 2017-05-11 09:27:49

How to access a bean in the context of another application?

Essence of the question:
I have two web applications with bins on the WildFly application server. It is necessary in the context of one application to access the bean of another application.
I tried to think in the direction of JNDI, but apart from various options for obtaining the DataSource, I can not find anything.
How to access the context of another application? How to get access to another bean?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2017-05-11
@tukal-off

This is fundamentally wrong. Two different applications should remain different. If they need to communicate, use JMS.

N
Nick Smith, 2017-05-11
@Braidner

You can still use jmx or even more game rmi.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question