/** * Get the current weak affinity of a proxy. * * @param proxy the proxy (must not be {@code null}) * @return the affinity (not {@code null}) * @throws IllegalArgumentException if the given proxy is not a valid client proxy instance */ public static Affinity getWeakAffinity(Object proxy) throws IllegalArgumentException { Assert.checkNotNullParam("proxy", proxy); return EJBInvocationHandler.forProxy(proxy).getWeakAffinity(); }
invocationContext.setLocator(locatorRef.get()); invocationContext.setBlockingCaller(true); invocationContext.setWeakAffinity(getWeakAffinity());
/** * Get the current weak affinity of a proxy. * * @param proxy the proxy (must not be {@code null}) * @return the affinity (not {@code null}) * @throws IllegalArgumentException if the given proxy is not a valid client proxy instance */ public static Affinity getWeakAffinity(Object proxy) throws IllegalArgumentException { Assert.checkNotNullParam("proxy", proxy); return EJBInvocationHandler.forProxy(proxy).getWeakAffinity(); }
/** * Get the current weak affinity of a proxy. * * @param proxy the proxy (must not be {@code null}) * @return the affinity (not {@code null}) * @throws IllegalArgumentException if the given proxy is not a valid client proxy instance */ public static Affinity getWeakAffinity(Object proxy) throws IllegalArgumentException { Assert.checkNotNullParam("proxy", proxy); return EJBInvocationHandler.forProxy(proxy).getWeakAffinity(); }
invocationContext.setLocator(locatorRef.get()); invocationContext.setBlockingCaller(true); invocationContext.setWeakAffinity(getWeakAffinity());
invocationContext.setLocator(locatorRef.get()); invocationContext.setBlockingCaller(true); invocationContext.setWeakAffinity(getWeakAffinity());