Package com.sun.enterprise.config

Examples of com.sun.enterprise.config.ConfigContext


    a valid non-null String. Does not check whether this is a directory
    that can be written to.
  */
  private void createApplicationRootPath() {
    try {
      ConfigContext context = ConfigFactory.
        createConfigContext(mConfigFilePath);
      Domain domain = ServerBeansFactory.getDomainBean(context);
      mApplicationRootPath = domain.getApplicationRoot();
      if (mApplicationRootPath == null || mApplicationRootPath.length() <=0){
        createDefaultApplicationRootPath();
View Full Code Here


    passivated-beans-for-modules=<session-store>/ejb/j2ee-modules
    passivated-beans-for-apps=<session-store>/ejb/j2ee-apps
  */
  private void createPassivatedEjbPaths() {
    try {
      ConfigContext context = ConfigFactory.createConfigContext(
        mConfigFilePath);
      EjbContainer ejbContainer = ServerBeansFactory.getConfigBean(context).getEjbContainer();
      String sessionStore = ejbContainer.getSessionStore();
      if (sessionStore == null || sessionStore.length() <= 0) {
        sessionStore = getDefaultSessionStorePath();
View Full Code Here

    httpsession-store-for-apps=<session-store>/http/j2ee-apps
  */

  private void createHttpSessionStorePaths() {
    try {
      ConfigContext context = ConfigFactory.createConfigContext(
        mConfigFilePath);
      EjbContainer ejbContainer = ServerBeansFactory.getConfigBean(context).getEjbContainer();
      String sessionStore = ejbContainer.getSessionStore();
      if (sessionStore == null || sessionStore.length() <= 0) {
        sessionStore = getDefaultSessionStorePath();
View Full Code Here

     * Constructs an <code>IIOPSSLSocketFactory</code>
     */
    public IIOPSSLSocketFactory() {
        try {
            if (Switch.getSwitch().getContainerType() == Switch.EJBWEB_CONTAINER) {
                ConfigContext configContext =
                    ApplicationServer.getServerContext().getConfigContext();
                IiopService iiopBean = ServerBeansFactory.getIiopServiceBean(configContext);

                IiopListener[] iiopListeners = iiopBean.getIiopListener();
                int listenersLength = (iiopListeners != null) ? iiopListeners.length : 0;
View Full Code Here

    public JTSMonitorMBean() {
           txnMgr = Switch.getSwitch().getTransactionManager();
           ServerContext sCtx = ApplicationServer.getServerContext();
           if (sCtx != null) {
               try {
                   ConfigContext ctx = sCtx.getConfigContext();
                   Config cfg = ServerBeansFactory.getConfigBean(ctx);
                   String lvl = cfg.getMonitoringService().getModuleMonitoringLevels().getTransactionService();
                   MonitoringLevel l = MonitoringLevel.instance(lvl);
                   if (l != MonitoringLevel.OFF) {
                       startMonitoring();
View Full Code Here

                // create jsr77 root mBean
                loader.createRootMBean();
           
                // if app is enabled
                ConfigContext ctx = configManager.getConfigContext();
                if (isEnabled(ctx, id)) {

                    // set jsr77 root mBean state to STARTING
                    try {
                        loader.setState(StateManageable.STARTING_STATE);
View Full Code Here

            }
        );

        try {
            // if app is enabled
            ConfigContext ctx = configManager.getConfigContext();
            if (ResourcesUtil.createInstance().belongToSystemRar(id) ||
                    (this.configManager.isSystem(id)
                     && isEnabled(ctx, id))) {

                // loader for this app
View Full Code Here

        // serverContext is null inside the ACC.
        String initialPort = checkORBInitialPort( EMPTY_PROPERTIES ) ;

        return ;
    } else {
        ConfigContext configContext = serverContext.getConfigContext();
        assert(configContext != null);

        Server serverBean = ServerBeansFactory.getServerBean(configContext);
        assert(serverBean != null);
View Full Code Here

       
        String serverTarget = (String) request.getOptionalArguments().get(DeploymentProperties.WSDL_TARGET_HINT);
        if(serverTarget == null) {
            return(getWebServerInfoForDAS(request));
        }
        ConfigContext cc = AdminService.getAdminService().getAdminContext().getAdminConfigContext();
        if(cc==null) {
            return(getWebServerInfoForDAS(request));
        }
        Config config = ServerHelper.getConfigForServer(cc, serverTarget);
        JMXConnectorConfig info = ServerHelper.getJMXConnectorInfo(cc, serverTarget);
View Full Code Here

     */
    public WebServerInfo getWebServerInfo(String moduleID, HttpServletRequest request) throws ConfigException {

   
        // let's get our admin context
        ConfigContext cc = ApplicationServer.getServerContext().getConfigContext();
        Server server = ServerBeansFactory.getServerBean(cc);
        Config config = ServerBeansFactory.getConfigBean(cc);
        ApplicationRef ref = server.getApplicationRefByRef(moduleID);
        return(getWebServerInfo(cc, config, ref.getVirtualServers(), null, null));
    }
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.