I have a JSE application that streams data over raw sockets to remote clients, and I want to make this application's interface available to an ejb. It seems that I could refactor the stream manager/creator to use it as a JBossService, which would allow the ejb to easily find it. Also, my existing application could be remotely managed through jmx and I could ensure that the streaming application was started and available(or failed to deploy) before the ejb would need it.
Is this an existing enterprise design pattern? How are custom JBossServices usually used? Is this best practice? Or is there a better way of integrating an existing jse app into a new web application?
Thanks for any help. I'm still a newb to JEE design. Thanks again.