-
1. Re: How to implement a global persistent singleton in a stat
jamesstrachan Jul 25, 2004 12:35 PM (in response to adco)Adrian,
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 ?
James -
2. Re: How to implement a global persistent singleton in a stat
psevestre Jul 26, 2004 1:25 PM (in response to adco)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). -
3. Re: How to implement a global persistent singleton in a stat
adco Jul 27, 2004 3:36 AM (in response to adco)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.
Adrian