Package com.sun.enterprise.config

Examples of com.sun.enterprise.config.ConfigContext


        // Read from the transaction-service , if the replacement of
        // Vendor XAResource class with our version required.
        // If yes, put the mapping in the xaresourcewrappers properties.
        Properties xaresourcewrappers = new Properties();
        try {
            ConfigContext ctx =
                 ApplicationServer.getServerContext().getConfigContext();
            TransactionService txs =
                 ServerBeansFactory.getTransactionServiceBean(ctx);
            xaresourcewrappers.put(
                "oracle.jdbc.xa.client.OracleXADataSource",
View Full Code Here


     * @param secure true if you want the secure port, false if you want the non-secure port
     * @return the port or null if there was an error retrieving it.
     */
    private static String getPort(boolean secure) {
        try {
            ConfigContext configContext = ApplicationServer.getServerContext().getConfigContext();
            final String serverName = System.getProperty(SystemPropertyConstants.SERVER_NAME);
            Config config = ServerHelper.getConfigForServer(configContext, serverName);
            final HttpListener[] listeners = config.getHttpService().getHttpListener();
            for (HttpListener listener : listeners) {
                if ((secure) && (listener.isSecurityEnabled())) {
View Full Code Here

        com.sun.enterprise.config.serverbeans.ExtensionModule em = null;
        WebModuleConfig wmInfo = null;  
        Application appDesc = null;

        J2eeApplication j2eeAppBean = getJ2eeAppBean();
        ConfigContext eventConfigContext = j2eeAppBean.getConfigContext();
        String id = j2eeAppBean.getName();
        String location = j2eeAppBean.getLocation();
        String resourceType = j2eeAppBean.getObjectType()
       
        //TODO : Check if enabled and take action
View Full Code Here

            for (int i = 0 ; i < instances.length ; i++) {
                String instanceName = instances[i];
                InstanceEnvironment inst =
                        new InstanceEnvironment(instanceName);
                String backURL = inst.getConfigFilePath();
                ConfigContext context = ConfigFactory.
                        createConfigContext(backURL);
                Config rootElement = ServerBeansFactory.getConfigBean(context);

                HttpService httpService = rootElement.getHttpService();
                HttpListener[] httpListeners =
View Full Code Here

            for (int i = 0 ; i < instances.length ; i++) {
                String instanceName = instances[i];
                InstanceEnvironment inst =
                        new InstanceEnvironment(instanceName);
                String backURL = inst.getConfigFilePath();
                ConfigContext context = ConfigFactory.
                        createConfigContext(backURL);

                Config rootElement = ServerBeansFactory.getConfigBean(context);

                IiopService iiopService = rootElement.getIiopService();
View Full Code Here

            for (int i = 0 ; i < instances.length ; i++) {
                String instanceName = instances[i];
                InstanceEnvironment inst =
                        new InstanceEnvironment(instanceName);
                String backURL = inst.getConfigFilePath();
                ConfigContext context = ConfigFactory.
                        createConfigContext(backURL);
                JmsHost jmsHost = ServerBeansFactory.getJmsHostBean(context);
                String aPort = jmsHost.getPort();
                aPort = aPort.trim();
                sLogger.log(Level.FINE, "port = " + aPort);
View Full Code Here

        NodeAgent[] nodeagents = null;
        ArrayList<String> list = new ArrayList<String>();

        if(config.getTarget().getType().equals(EETargetType.DOMAIN)) {
            try {
                ConfigContext configContext =AdminService.getAdminService().
                        getAdminContext().getAdminConfigContext();
                Domain domain = ServerBeansFactory.getDomainBean(configContext);
                NodeAgents nodeAgentCollection = domain.getNodeAgents();
                nodeagents = nodeAgentCollection.getNodeAgent();
            } catch(Exception e) {
            }
        } else { // Safe to assume it's a cluster
            try {
                ConfigContext configContext = AdminService.getAdminService().
                        getAdminContext().getAdminConfigContext();
                nodeagents =
                        NodeAgentHelper.getNodeAgentsForCluster
                                (configContext, config.getTarget().getName());
            } catch(Exception e) {
View Full Code Here

     * - change to default with appropriate log message </br>
     *
     */
    public AutoDeployController createAutoDeployController(ServerContext context) throws AutoDeploymentException {
       
        ConfigContext confContext = context.getConfigContext();
        AutoDeployController autoDeployController = null;            
        String targetConfigurationName = null;
        Domain domain = null;
       
        String autoDeployDir=null ;
View Full Code Here

  Orb orbBean = null;
 
        try {
            ServerContext serverContext = ApplicationServer.getServerContext();
            
            ConfigContext configContext = serverContext.getConfigContext();
            assert(configContext != null);
       
            // IiopService iiopServiceBean = ServerBeansFactory.getIiopServiceBean(configContext);
      Config config = ServerBeansFactory.getConfigBean(configContext);
View Full Code Here

                    "[WebModuleDeployEventListener] Handling event " + event.toString());
            }

            DeployEventListenerHelper.getDeployEventListenerHelper().synchronize(event);

            ConfigContext config = event.getConfigContext();
            String moduleName = event.getModuleName();

            // refreshes the config context with the context from this event
            try {
                getWebModulesManager().refreshConfigContext(config);
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.ConfigContext

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.