1 Reply Latest reply on Jan 25, 2004 6:43 AM by juha

    Basic JNDI

    mdichi

       

      "mdichi" wrote:
      I would like to have my app (EJBs) initialize similar to a Windows ini file. I'm assuming that storing various items in JNDI is the way to go.

      How do I put these items into JNDI (assume they are string values)? Do they go in an XML files somewhere (like ejb-jar.xml)? I know there is an <env-entry> tag, but that seems to work on a bean basis (ie. goes within a session or entity bean).

      Thanks,
      Mike


        • 1. Re: Basic JNDI

          Check the javadoc for javax.naming.Context bind(), rebind() and unbind() methods. Also notice you probably don't want to bind in the global namespace as this information would be available for everyone.