Codota Logo
ConcurrentAccessException
Code IndexAdd Codota to your IDE (free)

How to use
ConcurrentAccessException
in
javax.ejb

Best Java code snippets using javax.ejb.ConcurrentAccessException (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.glassfish.ejb/ejb-container

      " " + lockInfo.getTimeUnit();
  if( lockInfo.getTimeout() == NO_BLOCKING ) {
    throw new ConcurrentAccessException(msg);
  } else {
    throw new ConcurrentAccessTimeoutException(msg);
    " " + lockInfo.getTimeUnit();
ConcurrentAccessException cae = (lockInfo.getTimeout() == NO_BLOCKING) ?
    new ConcurrentAccessException(msg) : new ConcurrentAccessTimeoutException(msg);
cae.initCause(inEx);
throw cae;
origin: org.glassfish.main.ejb/ejb-container

private void handleConcurrentInvocation(boolean allowSerializedAccess,
                    EjbInvocation inv, SessionContextImpl sc, Object sessionKey) {
  if (_logger.isLoggable(TRACE_LEVEL)) {
    logTraceInfo(inv, sessionKey, "Another invocation in progress");
  }
  if( allowSerializedAccess ) {
    // Check for loopback call to avoid deadlock.
    if( sc.getStatefulWriteLock().getHoldCount() > 1 ) {
      throw new IllegalLoopbackException("Illegal Reentrant Access : Attempt to make " +
          "a loopback call on method '" + inv.beanMethod + " for stateful session bean " +
          ejbDescriptor.getName());
    }
  } else {
    String errMsg = "Concurrent Access attempt on method " +
        inv.beanMethod + " of SessionBean " + ejbDescriptor.getName() +
        " is prohibited.  SFSB instance is executing another request. "
      + "[session-key: " + sessionKey + "]";
    ConcurrentAccessException conEx = new ConcurrentAccessException(errMsg);
    if (inv.isBusinessInterface) {
      throw conEx;
    } else {
      // there is an invocation in progress for this instance
      // throw an exception (EJB2.0 section 7.5.6).
      throw new EJBException(conEx);
    }
  }
}
origin: org.glassfish.main.ejb/ejb-container

     + lockInfo.getTimeout() + " " + lockInfo.getTimeUnit();
ConcurrentAccessException cae = new ConcurrentAccessTimeoutException(msg);
cae.initCause(ie);
throw cae;
origin: org.glassfish.ejb/ejb-container

private void handleConcurrentInvocation(boolean allowSerializedAccess,
                    EjbInvocation inv, SessionContextImpl sc, Object sessionKey) {
  if (_logger.isLoggable(TRACE_LEVEL)) {
    logTraceInfo(inv, sessionKey, "Another invocation in progress");
  }
  if( allowSerializedAccess ) {
    // Check for loopback call to avoid deadlock.
    if( sc.getStatefulWriteLock().getHoldCount() > 1 ) {
      throw new IllegalLoopbackException("Illegal Reentrant Access : Attempt to make " +
          "a loopback call on method '" + inv.beanMethod + " for stateful session bean " +
          ejbDescriptor.getName());
    }
  } else {
    String errMsg = "Concurrent Access attempt on method " +
        inv.beanMethod + " of SessionBean " + ejbDescriptor.getName() +
        " is prohibited.  SFSB instance is executing another request. "
      + "[session-key: " + sessionKey + "]";
    ConcurrentAccessException conEx = new ConcurrentAccessException(errMsg);
    if (inv.isBusinessInterface) {
      throw conEx;
    } else {
      // there is an invocation in progress for this instance
      // throw an exception (EJB2.0 section 7.5.6).
      throw new EJBException(conEx);
    }
  }
}
origin: org.glassfish.ejb/ejb-container

     + lockInfo.getTimeout() + " " + lockInfo.getTimeUnit();
ConcurrentAccessException cae = new ConcurrentAccessTimeoutException(msg);
cae.initCause(ie);
throw cae;
origin: org.glassfish.main.ejb/ejb-container

      " " + lockInfo.getTimeUnit();
  if( lockInfo.getTimeout() == NO_BLOCKING ) {
    throw new ConcurrentAccessException(msg);
  } else {
    throw new ConcurrentAccessTimeoutException(msg);
    " " + lockInfo.getTimeUnit();
ConcurrentAccessException cae = (lockInfo.getTimeout() == NO_BLOCKING) ?
    new ConcurrentAccessException(msg) : new ConcurrentAccessTimeoutException(msg);
cae.initCause(inEx);
throw cae;
origin: org.jboss.ejb3/jboss-ejb3-core

if (target.isInInvocation()) throw new ConcurrentAccessException("no concurrent calls on stateful bean '" + container.getName() + "' (EJB3 4.3.13)");
target.setInInvocation(true);
javax.ejbConcurrentAccessException

Javadoc

A ConcurrentAccessException indicates that the client has attempted an invocation on a stateful session bean while another invocation is in progress.

Most used methods

  • <init>
    Constructs an ConcurrentAccessException with the specified detail message and a nested exception.
  • initCause

Popular in Java

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • getApplicationContext (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JCheckBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now