I need to have a listener in my application that creates a server socket connection and waits for incoming messages. For each received message, it needs to store them in database and also make a web service call.
I am using JBoss 5 application server and MYSQL for developing this application. Is it possible to have this kind of listener within JBoss or does it have to be outside JBoss? If it's outside, how can it access jboss datasources?
I don't see why it couldn't run in the AS. In AS 6, I would probably have try having a @Startup @Singleton that would start listening on the socket in a @PostConstruct method.