Log.debug("Binding java:comp/env/"+getJndiName()+" to "+nameInNamespace); NamingUtil.bind(env, getJndiName(), new LinkRef(nameInNamespace));
Log.info("Binding java:comp/env/"+getJndiName()+" to "+objectNameInNamespace); NamingUtil.bind(env, getJndiName(), new LinkRef(objectNameInNamespace.toString()));
    public void bindToEnv ()    throws NamingException    {        InitialContext ic = new InitialContext();        Context env = (Context)ic.lookup("java:comp/env");        Log.debug("Binding java:comp/env/"+getJndiName()+" to "+nameInNamespace);        NamingUtil.bind(env, getJndiName(), new LinkRef(nameInNamespace));    }