Package com.sun.enterprise.ee.admin.lbadmin.reader.api

Examples of com.sun.enterprise.ee.admin.lbadmin.reader.api.LocationHelper


            } catch (ConfigException ce) {
                String msg = _strMgr.getString("ErrorFindingApplication",
                                                name, target);
                throw new LbReaderException(msg, ce);
            }
            LocationHelper lhelper = new LocationHelperImpl(_configCtx);
            if (bean instanceof WebModule) {

                WebModule wMod = (WebModule) bean;
                if ( ( wMod != null) &&
                    ( wMod.getObjectType().equals( IAdminConstants.USER))) {
                   
                    String l =lhelper.getSunWebXmlPathForModule(wMod.getName());
                    WebModuleReader wr = new WebModuleReaderImpl(_configCtx,
                        refs[i], bean, createSunWebApp(l));
                    list.add(wr);
                }
            }else if(bean instanceof EjbModule) {
                    List l1 = lhelper.getSunEjbJarXmlPathForApplication(
                                name);
                    int size1 = l1.size();
                    for (int j=0; j<size1; j++) {
                        List<WebserviceEndpoint> wsepList =
                           createWebserviceEndpoint((String)l1.get(j));
                        for(WebserviceEndpoint wsep: wsepList){
                            WebModuleReader wr = new EjbJarModuleReaderImpl(
                                    _configCtx, refs[i], wsep );
                            list.add(wr);
                         }
                     }
            } else if (bean instanceof J2eeApplication) {
                J2eeApplication app = (J2eeApplication) bean;
                if ( (app != null) &&
                    (app.getObjectType().equals( IAdminConstants.USER))) {
                   
                    // get all the web modules inside application
                    List l = lhelper.getSunWebXmlPathForApplication(
                                app.getName());
                    int size = l.size();
                    for (int j=0; j<size; j++) {
                        WebModuleReader wr = new WebModuleReaderImpl(_configCtx,
                            refs[i], null,
                            createSunWebApp((String)l.get(j)));
                        list.add(wr);
                    }
                    List l1 = lhelper.getSunEjbJarXmlPathForApplication(
                                app.getName());
                    int size1 = l1.size();
                    for (int j=0; j<size1; j++) {
                        List<WebserviceEndpoint> wsepList = createWebserviceEndpoint((String)l1.get(j));
                        for(WebserviceEndpoint wsep: wsepList){
View Full Code Here

TOP

Related Classes of com.sun.enterprise.ee.admin.lbadmin.reader.api.LocationHelper

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.