congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AutoConfig.findResourceId
Code IndexAdd Tabnine to your IDE (free)

How to use
findResourceId
method
in
org.apache.openejb.config.AutoConfig

Best Java code snippets using org.apache.openejb.config.AutoConfig.findResourceId (Showing top 14 results out of 315)

origin: org.apache.openejb/openejb-core

private String findResourceId(final String resourceId, final String type, final Properties required, final AppResources appResources) {
  if (resourceId == null) {
    return null;
  }
  return findResourceId(getResourceIds(appResources, type, required), resourceId);
}
origin: org.apache.tomee/openejb-core

private String findResourceId(final String resourceId, final String type, final Properties required, final AppResources appResources) {
  if (resourceId == null) {
    return null;
  }
  return findResourceId(getResourceIds(appResources, type, required), resourceId);
}
origin: org.apache.geronimo.ext.openejb/openejb-core

private void checkUnitDataSourceRefs(PersistenceUnit unit) throws OpenEJBException {
  Properties required = new Properties();
  // check that non-jta-data-source does NOT point to a JtaManaged=true datasource
  required.put("JtaManaged", "true");
  String invalidNonJta = findResourceId(unit.getNonJtaDataSource(), "DataSource", required, null);
  if (invalidNonJta != null){
    throw new OpenEJBException("PeristenceUnit "+unit.getName()+" <non-jta-data-source> points to a jta managed Resource.  Update Resource \""+invalidNonJta +"\" to \"JtaManaged=false\", use a different Resource, or delete the <non-jta-data-source> element and a default will be supplied if possible.");
  }
  // check that jta-data-source does NOT point to a JtaManaged=false datasource
  required.put("JtaManaged", "false");
  String invalidJta = findResourceId(unit.getJtaDataSource(), "DataSource", required, null);
  if (invalidJta != null){
    throw new OpenEJBException("PeristenceUnit "+unit.getName()+" <jta-data-source> points to a non jta managed Resource.  Update Resource \""+invalidJta +"\" to \"JtaManaged=true\", use a different Resource, or delete the <jta-data-source> element and a default will be supplied if possible.");
  }
}
origin: org.apache.openejb/openejb-core

private void checkUnitDataSourceRefs(final PersistenceUnit unit) throws OpenEJBException {
  final Properties required = new Properties();
  // check that non-jta-data-source does NOT point to a JtaManaged=true datasource
  required.put("JtaManaged", "true");
  final String invalidNonJta = findResourceId(unit.getNonJtaDataSource(), "DataSource", required, null);
  if (invalidNonJta != null) {
    throw new OpenEJBException("PeristenceUnit " +
        unit.getName() +
        " <non-jta-data-source> points to a jta managed Resource.  Update Resource \"" +
        invalidNonJta +
        "\" to \"JtaManaged=false\", use a different Resource, or delete the <non-jta-data-source> element and a default will be supplied if possible.");
  }
  // check that jta-data-source does NOT point to a JtaManaged=false datasource
  required.put("JtaManaged", "false");
  final String invalidJta = findResourceId(unit.getJtaDataSource(), "DataSource", required, null);
  if (invalidJta != null) {
    throw new OpenEJBException("PeristenceUnit " +
        unit.getName() +
        " <jta-data-source> points to a non jta managed Resource.  Update Resource \"" +
        invalidJta +
        "\" to \"JtaManaged=true\", use a different Resource, or delete the <jta-data-source> element and a default will be supplied if possible.");
  }
}
origin: org.apache.tomee/openejb-core

private void checkUnitDataSourceRefs(final PersistenceUnit unit) throws OpenEJBException {
  final Properties required = new Properties();
  // check that non-jta-data-source does NOT point to a JtaManaged=true datasource
  required.put("JtaManaged", "true");
  final String invalidNonJta = findResourceId(unit.getNonJtaDataSource(), "DataSource", required, null);
  if (invalidNonJta != null) {
    throw new OpenEJBException("PeristenceUnit " +
      unit.getName() +
      " <non-jta-data-source> points to a jta managed Resource.  Update Resource \"" +
      invalidNonJta +
      "\" to \"JtaManaged=false\", use a different Resource, or delete the <non-jta-data-source> element and a default will be supplied if possible.");
  }
  // check that jta-data-source does NOT point to a JtaManaged=false datasource
  required.put("JtaManaged", "false");
  final String invalidJta = findResourceId(unit.getJtaDataSource(), "DataSource", required, null);
  if (invalidJta != null) {
    throw new OpenEJBException("PeristenceUnit " +
      unit.getName() +
      " <jta-data-source> points to a non jta managed Resource.  Update Resource \"" +
      invalidJta +
      "\" to \"JtaManaged=true\", use a different Resource, or delete the <jta-data-source> element and a default will be supplied if possible.");
  }
}
origin: org.apache.tomee/openejb-core

String id = findResourceId(beanName + '/' + resourceId, type, required, appResources); // check first in app namespace
if (id != null) {
  return id;
id = findResourceId(resourceId, type, required, appResources);
if (id != null) {
  return id;
id = findResourceId(resourceId, null, required, appResources);
if (id != null) {
  return id;
  id = findResourceId(resourceId.substring(appResources.appId.length() + 1), type, required, appResources);
  if (id != null) {
    return id;
origin: org.apache.tomee/tomee-catalina

final String id = AutoConfig.findResourceId(ids, dataSourceName);
origin: org.apache.openejb/openejb-core

String id = findResourceId(beanName + '/' + resourceId, type, required, appResources); // check first in app namespace
if (id != null) {
  return id;
id = findResourceId(resourceId, type, required, appResources);
if (id != null) {
  return id;
id = findResourceId(resourceId, null, required, appResources);
if (id != null) {
  return id;
origin: org.apache.geronimo.ext.openejb/openejb-core

String id = findResourceId(resourceId, type, required, appResources);
if (id != null) return id;
id = findResourceId(resourceId, null, required, appResources);
if (id != null) return id;
origin: org.apache.tomee/openejb-core

final AppModule appModule = ejbModule.getAppModule();
if (appModule != null) {
  final String newId = findResourceId(appModule.getModuleId() + '/' + id.replace("java:", "").replaceAll("^comp/env/", ""),
    refType,
    new Properties(),
origin: org.apache.openejb/openejb-core

final AppModule appModule = ejbModule.getAppModule();
if (appModule != null) {
  final String newId = findResourceId(appModule.getModuleId() + '/' + id.replace("java:", "").replaceAll("^comp/env/", ""),
      refType,
      new Properties(),
origin: org.apache.geronimo.ext.openejb/openejb-core

String jtaDataSourceId = findResourceId(unit.getJtaDataSource(), "DataSource", required, null);
String nonJtaDataSourceId = findResourceId(unit.getNonJtaDataSource(), "DataSource", required, null);
  required.put("JtaManaged", NONE);
  jtaDataSourceId = findResourceId(unit.getJtaDataSource(), "DataSource", required, null);
  nonJtaDataSourceId = findResourceId(unit.getNonJtaDataSource(), "DataSource", required, null);
String possibleJta = findResourceId(unit.getJtaDataSource(), "DataSource", required, null);
String possibleNonJta = findResourceId(unit.getNonJtaDataSource(), "DataSource", required, null);
if (possibleJta != null && possibleJta == possibleNonJta){
  ResourceInfo dataSource = configFactory.getResourceInfo(possibleJta);
    jtaDataSourceId = findResourceId(id, "DataSource", required, null);
      nonJtaDataSourceId = findResourceId(id, "DataSource", required, null);
      jtaDataSourceId = findResourceId(id, "DataSource", required, null);
origin: org.apache.openejb/openejb-core

  jtaDataSourceId = findResourceId(prefix + jtaWithJavaAndSlash, "DataSource", required, null);
  if (jtaDataSourceId == null) { // test with javax.sql.DataSource before DataSource since RA can register resources without our shortcut
    jtaDataSourceId = findResourceId(jtaWithJavaAndSlash, "javax.sql.DataSource", required, null);
  nonJtaDataSourceId = findResourceId(prefix + nonJtaWithJavaAndSlash, "DataSource", required, null);
  if (nonJtaDataSourceId == null) {
    nonJtaDataSourceId = findResourceId(nonJtaWithJavaAndSlash, "DataSource", required, null);
    jtaDataSourceId = findResourceId(unit.getJtaDataSource(), "DataSource", required, null);
  nonJtaDataSourceId = findResourceId(unit.getNonJtaDataSource(), "DataSource", required, null);
final String possibleJta = findResourceId(jtaWithJavaAndSlash, "DataSource", required, null);
final String possibleNonJta = findResourceId(nonJtaWithJavaAndSlash, "DataSource", required, null);
if (possibleJta != null && possibleJta.equals(possibleNonJta)) {
  final ResourceInfo dataSource = configFactory.getResourceInfo(possibleJta);
    jtaDataSourceId = findResourceId(id, "DataSource", required, null);
      nonJtaDataSourceId = findResourceId(id, "DataSource", required, null);
      jtaDataSourceId = findResourceId(id, "DataSource", required, null);
origin: org.apache.tomee/openejb-core

  jtaDataSourceId = findResourceId(prefix + jtaWithJavaAndSlash, "DataSource", required, null);
  if (jtaDataSourceId == null) { // test with javax.sql.DataSource before DataSource since RA can register resources without our shortcut
    jtaDataSourceId = findResourceId(jtaWithJavaAndSlash, "javax.sql.DataSource", required, null);
  nonJtaDataSourceId = findResourceId(prefix + nonJtaWithJavaAndSlash, "DataSource", required, null);
  if (nonJtaDataSourceId == null) {
    nonJtaDataSourceId = findResourceId(nonJtaWithJavaAndSlash, "DataSource", required, null);
    jtaDataSourceId = findResourceId(unit.getJtaDataSource(), "DataSource", required, null);
  nonJtaDataSourceId = findResourceId(unit.getNonJtaDataSource(), "DataSource", required, null);
final String possibleJta = findResourceId(jtaWithJavaAndSlash, "DataSource", required, null);
final String possibleNonJta = findResourceId(nonJtaWithJavaAndSlash, "DataSource", required, null);
if (possibleJta != null && possibleJta.equals(possibleNonJta)) {
  final ResourceInfo dataSource = configFactory.getResourceInfo(possibleJta);
    jtaDataSourceId = findResourceId(id, "DataSource", required, null);
      nonJtaDataSourceId = findResourceId(id, "DataSource", required, null);
      jtaDataSourceId = findResourceId(id, "DataSource", required, null);
org.apache.openejb.configAutoConfigfindResourceId

Popular methods of AutoConfig

  • <init>
  • autoCreateContainers
  • autoCreateResources
  • autoCreateResource
  • checkUnitDataSourceRefs
  • copy
  • createContainer
  • deploy
  • findResourceProviderId
  • firstMatching
  • getResourceEnvId
  • getResourceId
  • getResourceEnvId,
  • getResourceId,
  • getResourceIds,
  • getType,
  • getUsableContainer,
  • installResource,
  • isJms,
  • logAutoCreateResource,
  • normalizeResourceId

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • JTextField (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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