4 Replies Latest reply on Oct 16, 2013 4:40 PM by rhanus

    Inter-application communication: What possibilities do I have?

    grubi

      Hello everybody,

       

      I have a relatively simply problem to solve, but I do not know what I could use to solve it.

      I'm not sure if this is the correct discussion board, but as I'm using JBoss 7 it should not be that wrong

       

      The Problem:

      I have a 1:n relationship between my applications. The 1 is the framework application which provides common resources, manages rights, templates and so on. The n are the other applications which requires access to that framework. When an application started, it should notify the framework so it (the framework) send some information related to this application (maintainance mode = is the application blocked for normal users; does it use the correct versions of dependencies, etc). If it is required, some of those information could also be send somewhere during the runtime to update the application (especially the maintainance mode).

       

      The headache I have in this system is the fact, that JBoss deploys all applications at once, so the framework might not be available to the other applications to send that notification. The other thing I don't like about my current implementation (I'm using EJBs) is the hardcoded relationship between the framework's EJB and the application's EJB.

       

      Question:

      Is there any alternative way instead of using EJB or any nicer way using EJB to solve this task? The best would be something like a queue, where applications could send their notifications and the framework will pick them as soon as it is up and running. The other way around the framework simply puts notifications/requests into that queue and the correct application receives it.

       

      Thanks for any help in this topic.