Package org.apache.geronimo.console.cli.module

Examples of org.apache.geronimo.console.cli.module.EJBJARInfo


            context.saveDir = file.getParentFile();
            break;
        }

        if(file.getName().endsWith(".jar")) {
            context.moduleInfo = new EJBJARInfo(context);
        } else if(file.getName().endsWith(".war")) {
            context.moduleInfo = new WARInfo(context);
        } else {
            context.out.println("ERROR: Expecting file name to end in .jar or .war");
        }
View Full Code Here


    public void execute() {
        if(!(context.moduleInfo instanceof EJBJARInfo)) {
            throw new IllegalStateException("Tried to load an EJB JAR but the current module is "+context.moduleInfo.getClass().getName());
        }
        EJBJARInfo jarInfo = (EJBJARInfo)context.moduleInfo;
        try {
            ClassLoader loader = new URLClassLoader(new URL[]{jarInfo.file.toURL()}, ClassLoader.getSystemClassLoader());
            context.standardModule = new EjbDeployableObject(jarInfo.jarFile, loader);
        } catch(MalformedURLException e) {
            context.out.println("ERROR: "+jarInfo.file+" is not a valid JAR file!");
View Full Code Here

     */
    public Deployer(File jarFile, PrintWriter out, Reader in) throws IllegalStateException, IllegalArgumentException {
        context.out = out;
        context.in = in instanceof BufferedReader ? (BufferedReader)in : new BufferedReader(in);
        if(jarFile.getName().endsWith(".jar")) {
            context.moduleInfo = new EJBJARInfo(context);
        } else if(jarFile.getName().endsWith(".war")) {
            context.moduleInfo = new WARInfo(context);
        } else {
            throw new IllegalArgumentException("Expecting file name to end in .jar or .war");
        }
View Full Code Here

            context.saveDir = file.getParentFile();
            break;
        }

        if(file.getName().endsWith(".jar")) {
            context.moduleInfo = new EJBJARInfo(context);
        } else if(file.getName().endsWith(".war")) {
            context.moduleInfo = new WARInfo(context);
        } else {
            context.out.println("ERROR: Expecting file name to end in .jar or .war");
        }
View Full Code Here

    public void execute() {
        if(!(context.moduleInfo instanceof EJBJARInfo)) {
            throw new IllegalStateException("Tried to load an EJB JAR but the current module is "+context.moduleInfo.getClass().getName());
        }
        EJBJARInfo jarInfo = (EJBJARInfo)context.moduleInfo;
        try {
            ClassLoader loader = new URLClassLoader(new URL[]{jarInfo.file.toURL()}, ClassLoader.getSystemClassLoader());
            context.standardModule = new EjbDeployableObject(jarInfo.jarFile, loader);
        } catch(MalformedURLException e) {
            context.out.println("ERROR: "+jarInfo.file+" is not a valid JAR file!");
View Full Code Here

TOP

Related Classes of org.apache.geronimo.console.cli.module.EJBJARInfo

Copyright © 2018 www.massapicom. 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.