public static Context getContextForNamingEntries (Object scope) throws NamingException { Context scopeContext = getContextForScope(scope); return (Context)scopeContext.lookup(NamingEntry.__contextName); }
public static Context getContextForNamingEntries (Object scope) throws NamingException { Context scopeContext = getContextForScope(scope); return (Context)scopeContext.lookup(NamingEntry.__contextName); }
public static Context getContextForNamingEntries (Object scope) throws NamingException { Context scopeContext = getContextForScope(scope); return (Context)scopeContext.lookup(NamingEntry.__contextName); }
public static Context getContextForNamingEntries (Object scope) throws NamingException { Context scopeContext = getContextForScope(scope); return (Context)scopeContext.lookup(NamingEntry.__contextName); }
public static Context getContextForNamingEntries (Object scope) throws NamingException { Context scopeContext = getContextForScope(scope); return (Context)scopeContext.lookup(NamingEntry.__contextName); }
/** * Get all NameEntries of a certain type in the given naming * environment scope (server-wide names or context-specific names) * * @param scope * @param clazz the type of the entry * @return all NameEntries of a certain type in the given naming environment scope (server-wide names or context-specific names) * @throws NamingException */ public static List<Object> lookupNamingEntries (Object scope, Class<?> clazz) throws NamingException { try { Context scopeContext = getContextForScope(scope); Context namingEntriesContext = (Context)scopeContext.lookup(NamingEntry.__contextName); ArrayList<Object> list = new ArrayList<Object>(); lookupNamingEntries(list, namingEntriesContext, clazz); return list; } catch (NameNotFoundException e) { return Collections.emptyList(); } }
/** * Get all NameEntries of a certain type in the given naming * environment scope (server-wide names or context-specific names) * * @param scope the object scope * @param clazz the type of the entry * @return all NameEntries of a certain type in the given naming environment scope (server-wide names or context-specific names) * @throws NamingException if unable to lookup the naming entries */ public static List<Object> lookupNamingEntries (Object scope, Class<?> clazz) throws NamingException { try { Context scopeContext = getContextForScope(scope); Context namingEntriesContext = (Context)scopeContext.lookup(NamingEntry.__contextName); ArrayList<Object> list = new ArrayList<Object>(); lookupNamingEntries(list, namingEntriesContext, clazz); return list; } catch (NameNotFoundException e) { return Collections.emptyList(); } }
/** * Get all NameEntries of a certain type in the given naming * environment scope (server-wide names or context-specific names) * * @param scope * @param clazz the type of the entry * @return all NameEntries of a certain type in the given naming environment scope (server-wide names or context-specific names) * @throws NamingException */ public static List<Object> lookupNamingEntries (Object scope, Class<?> clazz) throws NamingException { try { Context scopeContext = getContextForScope(scope); Context namingEntriesContext = (Context)scopeContext.lookup(NamingEntry.__contextName); ArrayList<Object> list = new ArrayList<Object>(); lookupNamingEntries(list, namingEntriesContext, clazz); return list; } catch (NameNotFoundException e) { return Collections.emptyList(); } }
/** * Get all NameEntries of a certain type in the given naming * environment scope (server-wide names or context-specific names) * * @param scope * @param clazz the type of the entry * @return all NameEntries of a certain type in the given naming environment scope (server-wide names or context-specific names) * @throws NamingException */ public static List<Object> lookupNamingEntries (Object scope, Class<?> clazz) throws NamingException { try { Context scopeContext = getContextForScope(scope); Context namingEntriesContext = (Context)scopeContext.lookup(NamingEntry.__contextName); ArrayList<Object> list = new ArrayList<Object>(); lookupNamingEntries(list, namingEntriesContext, clazz); return list; } catch (NameNotFoundException e) { return Collections.emptyList(); } }
/** * Get all NameEntries of a certain type in the given naming * environment scope (server-wide names or context-specific names) * * @param scope * @param clazz the type of the entry * @return all NameEntries of a certain type in the given naming environment scope (server-wide names or context-specific names) * @throws NamingException */ public static List<Object> lookupNamingEntries (Object scope, Class<?> clazz) throws NamingException { try { Context scopeContext = getContextForScope(scope); Context namingEntriesContext = (Context)scopeContext.lookup(NamingEntry.__contextName); ArrayList<Object> list = new ArrayList<Object>(); lookupNamingEntries(list, namingEntriesContext, clazz); return list; } catch (NameNotFoundException e) { return Collections.emptyList(); } }
/** * Remove all jndi setup * @see Configuration#deconfigure(WebAppContext) * @throws Exception */ @Override public void destroy (WebAppContext context) throws Exception { try { //unbind any NamingEntries that were configured in this webapp's name space NamingContext scopeContext = (NamingContext)NamingEntryUtil.getContextForScope(context); scopeContext.getParent().destroySubcontext(scopeContext.getName()); } catch (NameNotFoundException e) { LOG.ignore(e); LOG.debug("No naming entries configured in environment for webapp "+context); } }
/** * Remove all jndi setup * @see Configuration#deconfigure(WebAppContext) * @throws Exception */ @Override public void destroy (WebAppContext context) throws Exception { try { //unbind any NamingEntries that were configured in this webapp's name space NamingContext scopeContext = (NamingContext)NamingEntryUtil.getContextForScope(context); scopeContext.getParent().destroySubcontext(scopeContext.getName()); } catch (NameNotFoundException e) { LOG.ignore(e); LOG.debug("No naming entries configured in environment for webapp "+context); } }
/** * Remove all jndi setup * @see Configuration#deconfigure(WebAppContext) * @throws Exception */ @Override public void destroy (WebAppContext context) throws Exception { try { //unbind any NamingEntries that were configured in this webapp's name space NamingContext scopeContext = (NamingContext)NamingEntryUtil.getContextForScope(context); scopeContext.getParent().destroySubcontext(scopeContext.getName()); } catch (NameNotFoundException e) { LOG.ignore(e); LOG.debug("No naming entries configured in environment for webapp "+context); } }
/** * Remove all jndi setup * @see Configuration#deconfigure(WebAppContext) * @throws Exception */ @Override public void destroy (WebAppContext context) throws Exception { try { //unbind any NamingEntries that were configured in this webapp's name space NamingContext scopeContext = (NamingContext)NamingEntryUtil.getContextForScope(context); scopeContext.getParent().destroySubcontext(scopeContext.getName()); } catch (NameNotFoundException e) { LOG.ignore(e); LOG.debug("No naming entries configured in environment for webapp "+context); } }
/** * Remove all jndi setup * @throws Exception if unable to destroy */ @Override public void destroy (WebAppContext context) throws Exception { try { //unbind any NamingEntries that were configured in this webapp's name space NamingContext scopeContext = (NamingContext)NamingEntryUtil.getContextForScope(context); scopeContext.getParent().destroySubcontext(scopeContext.getName()); } catch (NameNotFoundException e) { LOG.ignore(e); LOG.debug("No jndi entries scoped to webapp {}", context); } catch (NamingException e) { LOG.debug("Error unbinding jndi entries scoped to webapp "+context, e); } }