So you need a Singleton with editable instance variables?
You could pretty easily make a JMX MBean using either a @Service Bean
(
http://trailblazer.demo.jboss.com/EJB3Trail/serviceobjects/jmx/), or by dropping a
"*-service.xml" file into your deploy directory...
<?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE server>
|
| <server>
|
| <mbean code="com.you.yourBean"
| name="you:service=ServiceName">
| <attribute
name="JNDIName">java:/YourServiceNameInJNDI</attribute>
| <attribute name="prop1">defaultValueProp1</attribute>
| <depends>you:service=ServiceIDependOn</depends>
| </attribute>
| </mbean>
|
| </server>
S,
ALR
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976085#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...