added static metamodel generator

This commit is contained in:
2017-07-25 21:53:01 +02:00
parent 4c4fa98371
commit bc9413b1cb
4 changed files with 8 additions and 55 deletions

View File

@@ -21,6 +21,7 @@ import java.nio.file.Files;
import java.nio.file.Paths;
import java.security.DigestInputStream;
import java.security.MessageDigest;
import java.util.List;
import java.util.Properties;
/**
@@ -132,7 +133,7 @@ public class ClientTest
prop.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
// prop.put(Context.PROVIDER_URL, "http-remoting://localhost:8080");
prop.put(Context.PROVIDER_URL, "http-remoting://odroid-u3:8080");
prop.put(Context.PROVIDER_URL, "http-remoting://odroid-xu4:8080");
// prop.put(Context.PROVIDER_URL, "remote://odroid-u3:4447");
prop.put(Context.SECURITY_PRINCIPAL, "jpacrepo");
prop.put(Context.SECURITY_CREDENTIALS, "password01.");
@@ -141,8 +142,9 @@ public class ClientTest
Context ctx = new InitialContext(prop);
traverseJndiNode("/", context);
// final PacmanService stateService = (PacmanService) ctx.lookup("/jpacrepo-1.0/remote/PacmanServiceEJB!service.PacmanService");
final PacmanServiceView stateService = (PacmanServiceView) ctx.lookup("/jpacrepo/PacmanServiceEJB!org.jpacrepo.service.PacmanService");
stateService.deletePackage("google-earth-7.1.4.1529-1-x86_64.pkg.tar.xz");
final PacmanServiceView service = (PacmanServiceView) ctx.lookup("/jpacrepo/PacmanServiceEJB!org.jpacrepo.service.PacmanService");
List<PkgData> pkgs = service.searchPackage("google-earth", null, null, 1, 10);
System.out.println(new XStream().toXML(pkgs));
}
}