I suspect that you will need to code and deploy your socket link to COM as a JMX MBean - rather like a database source.
But I've never tried this. Anyone from JBoss who can contribute ?
I'm using the approach sugested by jamesstrachan in a my current project.
In my case, I have some hardware devices (pinpad, magnetic card reader, printer) which are all accessed via JMX MBeans.
Upon deployment, those MBeans register themselves on JNDI, so other parts of the system can have acess to them.
For each device, I choosed to define two different interfaces: a Management interface, which is accessible via the standard jmx-console and used to setup parameters like hardware ports and like; and a Operation interface which exposes high level services associated with the device (eg. for a pinpad I have operations such as getPin(), setMasterKey() and so forth).
Thanks a lot. I have deployed an JMX MBean and I think I'm on the right way to manage my problem. I will post a message back after - hopefully - succesfull - complete this step.