Tabnine Logo
Remote
Code IndexAdd Tabnine to your IDE (free)

How to use
Remote
in
javax.ejb

Best Java code snippets using javax.ejb.Remote (Showing top 20 results out of 918)

origin: javaee-samples/javaee7-samples

@Remote
public interface BeanRemote {
  String method();
}

origin: jersey/jersey

private List<Class> remoteAndLocalIfaces(final Class<?> resourceClass) {
  final List<Class> allLocalOrRemoteIfaces = new LinkedList<>();
  if (resourceClass.isAnnotationPresent(Remote.class)) {
    allLocalOrRemoteIfaces.addAll(Arrays.asList(resourceClass.getAnnotation(Remote.class).value()));
  }
  if (resourceClass.isAnnotationPresent(Local.class)) {
    allLocalOrRemoteIfaces.addAll(Arrays.asList(resourceClass.getAnnotation(Local.class).value()));
  }
  for (Class<?> i : resourceClass.getInterfaces()) {
    if (i.isAnnotationPresent(Remote.class) || i.isAnnotationPresent(Local.class)) {
      allLocalOrRemoteIfaces.add(i);
    }
  }
  return allLocalOrRemoteIfaces;
}
origin: kiegroup/jbpm

@Remote
public interface RuntimeDataServiceEJBRemote extends RuntimeDataService, DeploymentEventListener {

  /**
   * This method is not supported in EJB remote api as <code>TaskSummaryQueryBuilder<code> is not remote capable object
   */    
  @Override    
  TaskSummaryQueryBuilder taskSummaryQuery(String userId);
}

origin: wildfly/wildfly

private Collection<Class<?>> getRemoteBusinessInterfaces(final DeploymentUnit deploymentUnit, final Class<?> sessionBeanClass) throws DeploymentUnitProcessingException {
  final Remote remoteViewAnnotation = sessionBeanClass.getAnnotation(Remote.class);
  if (remoteViewAnnotation == null) {
    Collection<Class<?>> interfaces = getBusinessInterfacesFromInterfaceAnnotations(sessionBeanClass, Remote.class);
    if (!interfaces.isEmpty()) {
      return interfaces;
    }
    return Collections.emptySet();
  }
  Class<?>[] remoteViews = remoteViewAnnotation.value();
  if (remoteViews == null || remoteViews.length == 0) {
    Set<Class<?>> interfaces = getPotentialBusinessInterfaces(sessionBeanClass);
    // For version < 3.2, the EJB spec didn't allow more than one implementing interfaces to be considered as remote when the bean class had the @Remote annotation without any explicit value.
    // EJB 3.2 allows it (core spec, section 4.9.7)
    if (interfaces.size() != 1 && !isEjbVersionGreaterThanOrEqualTo32(deploymentUnit)) {
      throw EjbLogger.ROOT_LOGGER.beanWithRemoteAnnotationImplementsMoreThanOneInterface(sessionBeanClass);
    }
    return interfaces;
  }
  return Arrays.asList(remoteViews);
}
origin: kiegroup/jbpm

@Remote
public interface ProcessServiceEJBRemote extends ProcessService {

}

origin: stagemonitor/stagemonitor

  @Override
  public boolean matches(MethodDescription targetMethod) {
    final AnnotationList declaredAnnotationsOfType = targetMethod.getDeclaringType().asErasure().getDeclaredAnnotations();
    if (declaredAnnotationsOfType.isAnnotationPresent(Remote.class)) {
      final Class[] remoteInterfaces = declaredAnnotationsOfType.ofType(Remote.class).loadSilent().value();
      if (!new TypeList.ForLoadedTypes(remoteInterfaces).filter(isDeclaredInInterfaceHierarchy(targetMethod)).isEmpty()) {
        return true;
      }
    }
    return false;
  }
}
origin: kiegroup/jbpm

@Remote
public interface ProcessInstanceMigrationServiceEJBRemote extends ProcessInstanceMigrationService {

}

origin: org.stagemonitor/stagemonitor-requestmonitor

  @Override
  public boolean matches(MethodDescription.InDefinedShape targetMethod) {
    final AnnotationList declaredAnnotationsOfType = targetMethod.getDeclaringType().getDeclaredAnnotations();
    if (declaredAnnotationsOfType.isAnnotationPresent(Remote.class)) {
      final Class[] remoteInterfaces = declaredAnnotationsOfType.ofType(Remote.class).loadSilent().value();
      if (!new TypeList.ForLoadedTypes(remoteInterfaces).filter(isDeclaredInInterfaceHierarchy(targetMethod)).isEmpty()) {
        return true;
      }
    }
    return false;
  }
}
origin: kiegroup/jbpm

@Remote
public interface UserTaskServiceEJBRemote extends UserTaskService {

}

origin: kiegroup/jbpm

@Remote
public interface QueryServiceEJBRemote extends QueryService {

}

origin: kiegroup/jbpm

@Remote
public interface DefinitionServiceEJBRemote extends DefinitionService, DeploymentEventListener {

}

origin: kiegroup/jbpm

@Remote
public interface DeploymentServiceEJBRemote  {
origin: stagemonitor/stagemonitor

@Remote(RemoteInterface.class)
public class RemoteInterfaceImpl implements RemoteInterface {
  @Override
  public void foo() {
  }
  @Override
  public String toString() {
    return super.toString();
  }
}
origin: stagemonitor/stagemonitor

@Remote
private interface RemoteInterfaceWithRemoteAnnotation extends RemoteInterface {
  void bar();
}
origin: jersey/jersey

/**
 * Local stateless session bean implementing a remote interface.
 * Part of CDI extension lookup issue reproducer.
 *
 * @author Jakub Podlesak (jakub.podlesak at oracle.com)
 */
@Stateless
@LocalBean
@Remote(MyRemoteInterface.class)
public class LocalBeanWithRemoteInterface {

  /**
   * Simple getter to be invoked from a CDI backed JAX-RS resource.
   *
   * @return Josh string literal.
   */
  public String getName() {
    return "Josh";
  }
}

origin: camunda/camunda-bpm-platform

/**
 * A SLSB with a remote business interface 
 * 
 * @author Daniel Meyer
 *
 */
@Stateless
@Remote(BusinessInterface.class)
public class RemoteSLSBean implements BusinessInterface {

 public boolean doBusiness() {
  return true;
 }

}

origin: camunda/camunda-bpm-platform

@Stateless
@Remote(InvocationCounterService.class)
@Local(InvocationCounterServiceLocal.class)
public class InvocationCounterServiceBean implements InvocationCounterService, InvocationCounterServiceLocal {
 
 @Inject
 private InvocationCounter invocationCounter;

 public int getNumOfInvocations() {    
  return invocationCounter.incrementAndGet();
 }

}

origin: camunda/camunda-bpm-platform

/**
 * A SingletonBean with a remote business interface 
 * 
 * @author Daniel Meyer
 *
 */
@Singleton
@Remote(BusinessInterface.class)
public class RemoteSingletonBean implements BusinessInterface {

 public boolean doBusiness() {
  return true;
 }

}

origin: camunda/camunda-bpm-platform

/**
 * A SFSB with a remote business interface 
 * 
 * @author Daniel Meyer
 *
 */
@Stateful
@Remote(BusinessInterface.class)
public class RemoteSFSBean implements BusinessInterface {

 public boolean doBusiness() {
  return true;
 }

}

origin: org.apache.openejb/openejb-itests-beans

@Remote
public interface TimerSync {
  boolean waitFor(String name);

  void countDown(String name);
}

javax.ejbRemote

Most used methods

  • <init>
  • value

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • startActivity (Activity)
  • setContentView (Activity)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now