0 Replies Latest reply on Apr 23, 2012 5:43 AM by francoisbillard

    Best practices SAR/WAR communication

    francoisbillard

      Hi,

       

      What is the best practice to do that :

       

      i want to run a custom service when i launch JBoss, and a webapp (servlet/ws) to access objects of this service.

      the reason i want a separate service is that service will execute a long time job.

       

       

      i guess that service will be a SAR and the webapp a WAR, but how to communicate between them ? i know that a SAR can expose data via JMX, but it's a non sens to communicate data between process inside the same jvm via Jmx. how the servlet can access (via a registry or something like that) to the service ?

      Thanks

       

      Francois