public StatelessRemoteViewInstanceFactory(final String applicationName, final String moduleName, final String distinctName, final String beanName) { this(new EJBIdentifier(applicationName == null ? "" : applicationName, moduleName, beanName, distinctName)); }
EJBLocator(final Class<T> viewType, final String appName, final String moduleName, final String beanName, final String distinctName, final Affinity affinity) { this(viewType, new EJBIdentifier(appName, moduleName, beanName, distinctName), affinity); }
public StatefulRemoteViewInstanceFactory(final String applicationName, final String moduleName, final String distinctName, final String beanName) { this(new EJBIdentifier(applicationName == null ? "" : applicationName, moduleName, beanName, distinctName)); }
public RemoteViewManagedReferenceFactory(final String appName, final String moduleName, final String distinctName, final String beanName, final String viewClass, final boolean stateful, final Value<ClassLoader> viewClassLoader, boolean appclient) { this(new EJBIdentifier(appName == null ? "" : appName, moduleName, beanName, distinctName), viewClass, stateful, viewClassLoader, appclient); }
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException { final ObjectInputStream.GetField fields = ois.readFields(); try { final Object identifierObj = fields.get("identifier", null); // if not null, the old *Name fields will share backreferences with the fields of the identifier at a cost of 4 bytes final EJBIdentifier identifier = identifierObj != null ? (EJBIdentifier) identifierObj : new EJBIdentifier( (String) fields.get("appName", null), (String) fields.get("moduleName", null), (String) fields.get("beanName", null), (String) fields.get("distinctName", null) ); viewTypeSetter.set(this, fields.get("viewType", null)); identifierSetter.set(this, identifier); affinitySetter.set(this, fields.get("affinity", Affinity.NONE)); } catch ( IOException | RuntimeException | Error e) { throw e; } catch (Throwable t) { throw new UndeclaredThrowableException(t); } }
final EJBIdentifier identifier = new EJBIdentifier(moduleIdentifier, beanName); final StatelessEJBLocator<?> statelessLocator = StatelessEJBLocator.create(view, identifier, baseAffinity.get()); final Object proxy;
Cookie cookie = exchange.getRequestCookies().get(EjbHttpService.JSESSIONID); final String sessionAffinity = cookie != null ? cookie.getValue() : null; final EJBIdentifier ejbIdentifier = new EJBIdentifier(app, module, bean, distinct);
String distinctName = unmarshaller.readObject(String.class); String beanName = unmarshaller.readObject(String.class); identifier = new EJBIdentifier(appName, moduleName, beanName, distinctName);
void handleSessionOpenRequest(final int invId, final MessageInputStream inputStream) throws IOException { final String appName = inputStream.readUTF(); final String moduleName = inputStream.readUTF(); final String distName = inputStream.readUTF(); final String beanName = inputStream.readUTF(); final int securityContext; final ExceptionSupplier<ImportResult<?>, SystemException> transactionSupplier; if (version >= 3) { securityContext = inputStream.readInt(); transactionSupplier = readTransaction(inputStream); } else { securityContext = 0; transactionSupplier = null; } final Connection connection = channel.getConnection(); final EJBIdentifier identifier = new EJBIdentifier(appName, moduleName, beanName, distName); association.receiveSessionOpenRequest(new RemotingSessionOpenRequest( invId, identifier, transactionSupplier, connection.getLocalIdentity(securityContext))); }
final EJBIdentifier ejbIdentifier = new EJBIdentifier(app, module, bean, distinct); exchange.dispatch(executorService, () -> { final ReceivedTransaction txConfig;
EJBLocator(final Class<T> viewType, final String appName, final String moduleName, final String beanName, final String distinctName, final Affinity affinity) { this(viewType, new EJBIdentifier(appName, moduleName, beanName, distinctName), affinity); }
EJBLocator(final Class<T> viewType, final String appName, final String moduleName, final String beanName, final String distinctName, final Affinity affinity) { this(viewType, new EJBIdentifier(appName, moduleName, beanName, distinctName), affinity); }
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException { final ObjectInputStream.GetField fields = ois.readFields(); try { final Object identifierObj = fields.get("identifier", null); // if not null, the old *Name fields will share backreferences with the fields of the identifier at a cost of 4 bytes final EJBIdentifier identifier = identifierObj != null ? (EJBIdentifier) identifierObj : new EJBIdentifier( (String) fields.get("appName", null), (String) fields.get("moduleName", null), (String) fields.get("beanName", null), (String) fields.get("distinctName", null) ); viewTypeSetter.set(this, fields.get("viewType", null)); identifierSetter.set(this, identifier); affinitySetter.set(this, fields.get("affinity", Affinity.NONE)); } catch ( IOException | RuntimeException | Error e) { throw e; } catch (Throwable t) { throw new UndeclaredThrowableException(t); } }
private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException { final ObjectInputStream.GetField fields = ois.readFields(); try { final Object identifierObj = fields.get("identifier", null); // if not null, the old *Name fields will share backreferences with the fields of the identifier at a cost of 4 bytes final EJBIdentifier identifier = identifierObj != null ? (EJBIdentifier) identifierObj : new EJBIdentifier( (String) fields.get("appName", null), (String) fields.get("moduleName", null), (String) fields.get("beanName", null), (String) fields.get("distinctName", null) ); viewTypeSetter.set(this, fields.get("viewType", null)); identifierSetter.set(this, identifier); affinitySetter.set(this, fields.get("affinity", Affinity.NONE)); } catch ( IOException | RuntimeException | Error e) { throw e; } catch (Throwable t) { throw new UndeclaredThrowableException(t); } }
final EJBIdentifier identifier = new EJBIdentifier(moduleIdentifier, beanName); final StatelessEJBLocator<?> statelessLocator = StatelessEJBLocator.create(view, identifier, baseAffinity.get()); final Object proxy;
final EJBIdentifier identifier = new EJBIdentifier(moduleIdentifier, beanName); final StatelessEJBLocator<?> statelessLocator = StatelessEJBLocator.create(view, identifier, baseAffinity.get()); final Object proxy;
void handleSessionOpenRequest(final int invId, final MessageInputStream inputStream) throws IOException { final String appName = inputStream.readUTF(); final String moduleName = inputStream.readUTF(); final String distName = inputStream.readUTF(); final String beanName = inputStream.readUTF(); final int securityContext; final ExceptionSupplier<ImportResult<?>, SystemException> transactionSupplier; if (version >= 3) { securityContext = inputStream.readInt(); transactionSupplier = readTransaction(inputStream); } else { securityContext = 0; transactionSupplier = null; } final Connection connection = channel.getConnection(); final EJBIdentifier identifier = new EJBIdentifier(appName, moduleName, beanName, distName); association.receiveSessionOpenRequest(new RemotingSessionOpenRequest( invId, identifier, transactionSupplier, connection.getLocalIdentity(securityContext))); }
String distinctName = unmarshaller.readObject(String.class); String beanName = unmarshaller.readObject(String.class); identifier = new EJBIdentifier(appName, moduleName, beanName, distinctName);
String distinctName = unmarshaller.readObject(String.class); String beanName = unmarshaller.readObject(String.class); identifier = new EJBIdentifier(appName, moduleName, beanName, distinctName);
void handleSessionOpenRequest(final int invId, final MessageInputStream inputStream) throws IOException { final String appName = inputStream.readUTF(); final String moduleName = inputStream.readUTF(); final String distName = inputStream.readUTF(); final String beanName = inputStream.readUTF(); final int securityContext; final ExceptionSupplier<ImportResult<?>, SystemException> transactionSupplier; if (version >= 3) { securityContext = inputStream.readInt(); transactionSupplier = readTransaction(inputStream); } else { securityContext = 0; transactionSupplier = null; } final Connection connection = channel.getConnection(); final EJBIdentifier identifier = new EJBIdentifier(appName, moduleName, beanName, distName); association.receiveSessionOpenRequest(new RemotingSessionOpenRequest( invId, identifier, transactionSupplier, connection.getLocalIdentity(securityContext))); }