Adding custom object to JNDI on Weblogic 10

后端 未结 3 1235
一生所求
一生所求 2021-02-02 02:04

Is it possible to add a custom object (String or URL) to JNDI using Weblogic Server Administration Console (Weblogic 10.0) or by editing server\'s configuration file (config.xml

3条回答
  •  面向向阳花
    2021-02-02 03:06

    I don't think so. Quoting Load objects in the JNDI tree:

    Using the Administration Console, you can load WebLogic Server J2EE services and components, such as RMI, JMS, EJBs, and JDBC Data Sources, in the JNDI tree.

    And indeed, I couldn't find a way to add a String or URL using the console.

    AFAIK, the standard way is to put an env-entry in your deployment descriptor (web.xml, ejb-jar.xml):

    
        string/foo
        java.lang.String
        foobar
    
    
    
        url/bar
        java.net.URL
        http://foobar/
    
    

提交回复
热议问题