Patches item #586007, was opened at 2002-07-24 18:06
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=586007&group_id=22866

Category: None
Group: CVS HEAD
Status: Open
Resolution: None
Priority: 5
Submitted By: Manfred Regele (regele)
Assigned to: Nobody/Anonymous (nobody)
Summary: varia: add/change jndi-entries via mbean

Initial Comment:
function:
======
mbean rebinds jndi entries out of service-descriptor xml 
information.

type: mbean
location: org.jboss.varia

usage: 
=====
use it to separately edit config-data from your 
application. Changing parameters is now simple a 
matter of editing the -service.xml. The .war or .ear
remains untouched.

details:
=====
- extends ServiceMBeanSupport
- uses org.jboss.util.propertyeditor.PropertyEditors,
so needs jboss somwhere >= 3.0.1


sample .xml:
........................................................................
<server>

  <classpath codebase="." archives="jndi-simpleconfig-
service.jar"/>

  <mbean code=" .....JNDISimpleConfig"
         
    <!-- jndi subcontext to create. order matters -->
    <attribute name="JndiContext">
        <context-entries>
            <context name="foo_context"    
                         parent=""/>
            <context name="foo_subcontext"  
                         parent="foo_context"/>
        </context-entries>
    </attribute>

    <!-- jndi entries to (re)bind. context must exist. -->
    <attribute name="JndiEntries">
       <entries>
          <entry name="foo_context/level"   
                      type="java.lang.String"  
                     value="gefahr"/>
          <entry name="foo_context/reason"  
                      type="java.lang.Boolean" 
                     value="false"/>
       </entries>
    </attribute>
  </mbean>

 </server>


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=586007&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to