JBoss: Binding values into JNDI in JBoss EAP 6 similar to JNDIBindingServiceMgr

前端 未结 3 1970
既然无缘
既然无缘 2020-12-19 21:45
  1. How do I bind an arbitrary string to JNDI in JBoss EAP 6? I used to do it through org.jboss.naming.JNDIBindingServiceMgr MBean in previous EAP version.

3条回答
  •  悲&欢浪女
    2020-12-19 22:01

    In your app configuration you can have things in ejb-jar.xml deployment descriptor like

    
        JNDI logging context for this app
        logback/context-name
        java.lang.String
        our-app-context
    
    

    or, if you prefer to have it in the server standalone.xml, do

    
        
            
        
    
    

    the latter (standalone.xml) is a JBoss 7.1 feature, so available in EAP 6.0. In JBoss AS 7.0, a dummy application needs to be used according to this thread.

提交回复
热议问题