added static metamodel generator
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user