[jboss-user] [EJB 3.0] - Re: Problems to maintain data in memory EJB
ALRubinger
do-not-reply at jboss.com
Wed Oct 4 12:33:40 EDT 2006
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#3976085
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976085
More information about the jboss-user
mailing list