I am developing a socket app that needs to listen on a configurable port, write some things to the database, log, etc. Is it possible to run this app in JBoss? I would like to take adavantage of EJB, data source pooling, logging, etc. but I don't know how to package the application, which is right now just a console based simple socket server. It does not have web or EJB components.
Can this be done as an MBean? I have neve deployed an MBean before with JBoss, just WAR for web app, EAR for web app with EJB, and commom EJB's as JAR.