This content has been marked as final.
Show 1 reply
-
1. Re: Problems to maintain data in memory EJB
alrubinger Oct 4, 2006 12:33 PM (in response to tallesbrito)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