/** * Set the Remoting Connection on the RemotingContext. * * @param connection - The Remoting connection. */ static void remotingContextSetConnection(final RemoteConnection connection) { remoteContextAssociationActions().setConnection(connection); }
/** * Clear the Remoting Connection on the RemotingContext. */ static void remotingContextClear() { remotingContextAssociationActions().clear(); }
SecurityActions.remotingContextSetConnection(remotingConnection); } else { SecurityActions.remotingContextSetConnection(new RemoteConnection() { @Override public SSLSession getSslSession() { return; } finally { SecurityActions.remotingContextClear();
@Override public EJBClientContext getCurrent() { final ClassLoader tccl = SecurityActions.getContextClassLoader(); // TODO: Do we fall back on some other CL? if (tccl == null) { throw EjbMessages.MESSAGES.tcclNotAvailable(); } synchronized (this.ejbClientContexts) { return this.ejbClientContexts.get(tccl); } }
static String getSystemProperty(final String key) { return getSystemProperty(key, null); }
@Override public EJBClientContext getCurrent() { if (this.tcclEJBClientContextService == null) { return null; } final EJBClientContext ejbClientContext = this.tcclEJBClientContextService.getCurrent(); if (ejbClientContext != null) { return ejbClientContext; } // explicit isDebugEnabled() check to ensure that the SecurityActions.getContextClassLoader() isn't // unnecessarily executed when debug logging is disabled if (logger.isDebugEnabled()) { logger.debug("Returning default EJB client context " + this.defaultEJBClientContext + " since no EJB client context could be found for TCCL " + SecurityActions.getContextClassLoader()); } return this.defaultEJBClientContext; }
public LocalEJBReceiverPreferringDeploymentNodeSelector() { this.localNodeName = SecurityActions.getSystemProperty(ServerEnvironment.NODE_NAME); }
Class<?> viewClass; try { viewClass = Class.forName(this.viewClass, false, SecurityActions.getContextClassLoader()); } catch (ClassNotFoundException e) { if(viewClassLoader == null || viewClassLoader.getValue() == null) {
/** * Set the Remoting Connection on the RemotingContext. * * @param connection - The Remoting connection. */ static void remotingContextSetConnection(final Connection connection) { remotingContextAssociationActions().setConnection(connection); }