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 ?