2 Replies Latest reply on Jul 31, 2007 4:30 AM by galvino

    how can i  use Identity

    galvino

      hi, everybody,
      I download my identities on my database.
      Now i want to work with this, for example do a connection page that verify parameters .

      Have you an tutorial or an example ?

        • 1. Re: how can i  use Identity
          kukeltje

          I need more info to comment...

          • 2. Re: how can i  use Identity
            galvino

            i created my database and I load my identity with this metho:

            public void loadIdentities() {
             JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
            
             JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
             try {
             Entity[] entities = IdentityXmlParser
             .parseEntitiesResource("identity.db.xml");
             IdentitySession identitySession = new IdentitySession(jbpmContext
             .getSession());
            
             assertNotNull(identitySession);
            
             for (int i = 0; i < entities.length; i++) {
             identitySession.saveEntity(entities);
             }
             } finally {
             jbpmContext.close();
             }
             }
            


            now, on an web application i want to create a login page that verify, login and password by using identities loaded