/** * Create a new EJB session proxy. The returned proxy will be cluster-aware if a cluster affinity is used in the locator. * * @param statelessLocator the stateless locator identifying the stateful EJB * @param <T> the view type * @return the new EJB locator * @throws CreateException if an error occurs */ public static <T> T createSessionProxy(final StatelessEJBLocator<T> statelessLocator) throws Exception { return createSessionProxy(statelessLocator, null, null); }
if (stateful) { try { proxy = EJBClient.createSessionProxy(statelessLocator, providerEnvironment.getAuthenticationContextSupplier(), namingProvider); } catch (Exception e) { throw Logs.MAIN.lookupFailed(name, name, e);
/** * Create a new EJB session proxy. The returned proxy will be cluster-aware if a cluster affinity is used in the locator. * * @param statelessLocator the stateless locator identifying the stateful EJB * @param <T> the view type * @return the new EJB locator * @throws CreateException if an error occurs */ public static <T> T createSessionProxy(final StatelessEJBLocator<T> statelessLocator) throws Exception { return createSessionProxy(statelessLocator, null, null); }
/** * Create a new EJB session proxy. The returned proxy will be cluster-aware if a cluster affinity is used in the locator. * * @param statelessLocator the stateless locator identifying the stateful EJB * @param <T> the view type * @return the new EJB locator * @throws CreateException if an error occurs */ public static <T> T createSessionProxy(final StatelessEJBLocator<T> statelessLocator) throws Exception { return createSessionProxy(statelessLocator, null, null); }
if (stateful) { try { proxy = EJBClient.createSessionProxy(statelessLocator, providerEnvironment.getAuthenticationContextSupplier(), namingProvider); } catch (Exception e) { throw Logs.MAIN.lookupFailed(name, name, e);
if (stateful) { try { proxy = EJBClient.createSessionProxy(statelessLocator, providerEnvironment.getAuthenticationContextSupplier(), namingProvider); } catch (Exception e) { throw Logs.MAIN.lookupFailed(name, name, e);