Examples of AppInfo


Examples of org.apache.openejb.assembler.classic.AppInfo

            }

            // build the config info tree
            // this method fills in the ejbJar jaxb tree based on the annotations
            // (metadata complete) and it run the openejb verifier
            AppInfo appInfo;
            try {
                appInfo = openEjbSystem.configureApplication(appModule);
            } catch (OpenEJBException e) {
                e.printStackTrace();
                throw new DeploymentException(e);
View Full Code Here

Examples of org.apache.openejb.assembler.classic.AppInfo

    private void doInitContext(EARContext earContext, Module module, Bundle bundle) throws DeploymentException {
        EjbModule ejbModule = (EjbModule) module;



        AppInfo appInfo = getAppInfo(earContext, ejbModule, bundle);

        ejbModule.setEjbJarInfo(AppInfoGBean.getEjbJarInfo(appInfo, ejbModule.getModuleURI()));

        // update the original spec dd with the metadata complete dd
        EjbJar ejbJar = ejbModule.getEjbJar();
View Full Code Here

Examples of org.apache.openejb.assembler.classic.AppInfo

            }

            // build the config info tree
            // this method fills in the ejbJar jaxb tree based on the annotations
            // (metadata complete) and it run the openejb verifier
            AppInfo appInfo;
            try {
                appInfo = configureApplication(appModule, ejbModule, earContext.getConfiguration());
            } catch (ValidationFailedException set) {
                StringBuilder sb = new StringBuilder();
                sb.append("Jar failed validation: ").append(appModule.getModuleId());
View Full Code Here

Examples of org.exolab.castor.xml.schema.AppInfo

        Schema schema = unmarshalSchema("schema-entity.xsd");
        ComplexType bookType = schema.getComplexType("bookType");
        Enumeration annotations = bookType.getAnnotations();
        Annotation annotation = (Annotation) annotations.nextElement();
        Enumeration appInfos = annotation.getAppInfo();
        AppInfo appInfo = (AppInfo) appInfos.nextElement();
        List jdoContent = appInfo.getJdoContent();

        assertEquals(1, jdoContent.size());
        Table t = (Table) jdoContent.get(0);
        assertEquals("book", t.getName());
        assertEquals("isbn", t.getPrimaryKey().getKey(0));

        ElementDecl isbn = bookType.getElementDecl("isbn");
        annotations = isbn.getAnnotations();
        annotation = (Annotation) annotations.nextElement();
        appInfos = annotation.getAppInfo();
        appInfo = (AppInfo) appInfos.nextElement();
        jdoContent = appInfo.getJdoContent();

        assertEquals(1, jdoContent.size());
        Column c = (Column) jdoContent.get(0);
        assertEquals("isbn", c.getName());
        assertEquals("jdo:string", c.getType());

        ElementDecl title = bookType.getElementDecl("title");
        annotations = title.getAnnotations();
        annotation = (Annotation) annotations.nextElement();
        appInfos = annotation.getAppInfo();
        appInfo = (AppInfo) appInfos.nextElement();
        jdoContent = appInfo.getJdoContent();

        assertEquals(1, jdoContent.size());
        c = (Column) jdoContent.get(0);
        assertEquals("title", c.getName());
        assertEquals("jdo:string", c.getType());
View Full Code Here

Examples of org.ugate.service.entity.jpa.AppInfo

   *         {@linkplain AppInfo#getVersion()} was not found and had to be
   *         added (null when it already exists)
   */
  @Transactional(readOnly = false, propagation = Propagation.REQUIRED)
  public AppInfo addAppInfoIfNeeded(final String version) {
    AppInfo appInfo = credentialDao.getAppInfo(version);
    if (appInfo == null) {
      appInfo = new AppInfo();
      appInfo.setVersion(version);
      appInfo.setCreatedDate(new Date());
      credentialDao.persistEntity(appInfo);
      return appInfo;
    }
    return appInfo;
  }
View Full Code Here

Examples of org.ugate.service.entity.jpa.AppInfo

   *            the {@linkplain AppInfo#getVersion()}
   */
  @Transactional(readOnly = false, propagation = Propagation.REQUIRED)
  public boolean setDefaultActor(final Actor defaultActor,
      final String version) {
    final AppInfo appInfo = credentialDao.getAppInfo(version);
    if (appInfo != null) {
      appInfo.setDefaultActor(defaultActor);
      credentialDao.persistEntity(appInfo);
      return true;
    }
    return false;
  }
View Full Code Here

Examples of org.ugate.service.entity.jpa.AppInfo

      throws UnsupportedOperationException {
    actor.setPassword(generateHash(actor.getUsername(),
        actor.getPassword(), actor.getPassPhrase()));
    credentialDao.persistEntity(actor);
    if (appVersion != null && appVersion.length() > 0) {
      final AppInfo appInfo = credentialDao.getAppInfo(appVersion);
      appInfo.setDefaultActor(actor);
      credentialDao.persistEntity(actor);
    }
    return actor;
  }
View Full Code Here

Examples of ru.vassaev.core.container.AppInfo

  public final PoolThread getProcessPoolByName(String name) throws SysException {
    String poolProcessName = Strings.getString(cntx.getPrmString(name));
    if (poolProcessName == null)
      throw new SysException("Parameter \"" + name + "\" isn't set");
    AppInfo ai = ApplicationManager.getCurrentAppInfo();
    Pool<?> poolprc = ai.getContainer().getRM().getPool(poolProcessName);
    if (Null.equ(poolprc))
      throw new SysException("There is no pool by name \"" + poolProcessName
          + "\"");
    try {
      PoolThread prcs = (PoolThread) poolprc;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.