Examples of ServerConfig


Examples of org.jboss.bootstrap.spi.ServerConfig

   public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
   {
      // get server's home for relative paths, need this for setting
      // attribute final values, so we need to do it here
      ServerConfig serverConfig = ServerConfigLocator.locate();
      serverHome = serverConfig.getServerHomeDir();
      return super.preRegister(server, name);
   }
View Full Code Here

Examples of org.jboss.embedded.adapters.ServerConfig

   {
      try
      {
         // ServerConfig has to be created and installed before boostrap as we may want to use
         // system properties set up in ServerConfig
         ServerConfig config = new ServerConfig();
         AbstractBeanMetaData bmd = new AbstractBeanMetaData("ServerConfig", ServerConfig.class.getName());
         kernel.getController().install(bmd, config);
         deployBaseBootstrapUrl(url);
         mainDeployer = (MainDeployer)kernel.getRegistry().getEntry("MainDeployer").getTarget();
      }
View Full Code Here

Examples of org.jboss.soa.dsp.server.ServerConfig

    return getDefaultWebServiceBaseUrl();
  }

  private String getDefaultWebServiceBaseUrl() {
    try {   
      ServerConfig serverConfig=JBossDSPFactory.getServerConfig();
      String webServiceHost = serverConfig.getWebServiceHost();
      int webServicePort = serverConfig.getWebServicePort();
      URL theURL = new URL("http://" + webServiceHost + ":" + webServicePort);
      if (Boolean.valueOf(properties.getProperty(BPELEngineImpl.BPEL_WEBSERVICE_SECURE, "false"))) {
        int secureWebServicePort = serverConfig.getWebServicePort();
        theURL = new URL("https://" + webServiceHost + ":" + secureWebServicePort);
      }
      return theURL.toExternalForm();
    } catch (MalformedURLException e) {
      log.error("Error in constructing the webservice base url.", e);
View Full Code Here

Examples of org.jboss.soa.dsp.server.ServerConfig

    boolean isRegistration = Boolean.valueOf(_odeConfig.getProperty(BPEL_UDDI_REGISTRATION, "false"));
    boolean isWebserviceSecure = Boolean.valueOf(_odeConfig.getProperty(BPEL_WEBSERVICE_SECURE, "false"));
    if (isRegistration) {
      try {
      
            ServerConfig serverConfig=JBossDSPFactory.getServerConfig();
            String webServiceHost = serverConfig.getWebServiceHost();
            int webServicePort = serverConfig.getWebServicePort();
            URL url = new URL("http://" + webServiceHost + ":" + webServicePort);
            if (isWebserviceSecure) {
              int secureWebServicePort = serverConfig.getWebServicePort();
              url = new URL("https://" + webServiceHost + ":" + secureWebServicePort);
            }
            //give the user the option to override
            if (_odeConfig.getProperty(BPEL_WEBSERVICE_BASEURL)==null) {
              _odeConfig.getProperties().setProperty(BPEL_WEBSERVICE_BASEURL, url.toExternalForm());
View Full Code Here

Examples of org.jboss.soa.dsp.server.ServerConfig

    private BPAFDataSource bpafDataSource;

    public SVGPlugin() {

        // host & port resolution
        ServerConfig serverConfig = JBossDSPFactory.getServerConfig();
        this.webServiceHost = serverConfig.getWebServiceHost();
        this.webServicePort = serverConfig.getWebServicePort();

        try
        {
            InitialContext ctx = new InitialContext();
            engine = (BPELEngine)ctx.lookup("bpel/Engine");
View Full Code Here

Examples of org.jboss.system.server.ServerConfig

            if (serverDataDir != null) {
               
                dataDir = new File(serverDataDir);
            }
            else {
                final ServerConfig serverConfig = (ServerConfig) MBeanProxyExt.create(ServerConfig.class, ServerConfigImplMBean.OBJECT_NAME);
                dataDir = serverConfig.getServerDataDir() ;
            }
           
            if (schemas != null)
            {
                initialiseSchemas(dataDir) ;
View Full Code Here

Examples of org.jboss.wsf.spi.management.ServerConfig

      try
      {
         // TODO: recursive dependency, ohoh

         SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
         ServerConfig config = spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();       
         tmpdir = new File(config.getServerTempDir().getCanonicalPath() + "/jbossws");
         tmpdir.mkdirs();
      }
      catch (Throwable t)
      {
         // Use the Java temp directory if there is no server config (the client)
View Full Code Here

Examples of org.jboss.wsf.spi.management.ServerConfig

      File tmpWar = null;
      try
      {
         // TODO: recursive dependency, ohoh
         SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
         ServerConfig config = spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();
         File tmpdir = new File(config.getServerTempDir().getCanonicalPath() + "/deploy");

         String deploymentName = dep.getCanonicalName().replace('/', '-');
         tmpWar = File.createTempFile(deploymentName, ".war", tmpdir);
         tmpWar.delete();
View Full Code Here

Examples of org.jboss.wsf.spi.management.ServerConfig

    @Override
    protected boolean applyUpdateToRuntime(final OperationContext context, final ModelNode operation, final String attributeName, final ModelNode resolvedValue, final ModelNode currentValue, final org.jboss.as.controller.AbstractWriteAttributeHandler.HandbackHolder<Void> voidHandback) throws OperationFailedException {
        final ServiceController<?> configService = context.getServiceRegistry(true).getService(WSServices.CONFIG_SERVICE);
        if (configService != null) {
            final ServerConfig config = (ServerConfig) configService.getValue();
            final String value = resolvedValue.isDefined() ? resolvedValue.asString() : null;

            if (MODIFY_WSDL_ADDRESS.equals(attributeName)) {
                final boolean modifyWSDLAddress = value != null ? Boolean.parseBoolean(value) : false;
                config.setModifySOAPAddress(modifyWSDLAddress);
            } else if (WSDL_HOST.equals(attributeName)) {
                final String host = value != null ? value : null;
                try {
                    config.setWebServiceHost(host);
                } catch (final Exception e) {
                    throw new OperationFailedException(e.getMessage(), e);
                }
            } else if (WSDL_PORT.equals(attributeName)) {
                final int port = value != null ? Integer.parseInt(value) : -1;
                config.setWebServicePort(port);
            } else if (WSDL_SECURE_PORT.equals(attributeName)) {
                final int securePort = value != null ? Integer.parseInt(value) : -1;
                config.setWebServiceSecurePort(securePort);
            }
        }

        return true;
    }
View Full Code Here

Examples of org.jboss.wsf.spi.management.ServerConfig

        // forbidden instantiation
    }

    @Override
    protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model) throws OperationFailedException {
        final ServerConfig config = getServerConfig(context);
        if (config != null) {
            final PathAddress address = PathAddress.pathAddress(operation.require(OP_ADDR));
            final String configName = address.getElement(address.size() - 2).getValue();
            final String handlerChainType = address.getElement(address.size() - 1).getKey();
            final String handlerChainId = address.getElement(address.size() - 1).getValue();
            for (final EndpointConfig endpointConfig : config.getEndpointConfigs()) {
                if (configName.equals(endpointConfig.getConfigName())) {
                    final List<UnifiedHandlerChainMetaData> handlerChains;
                    if (PRE_HANDLER_CHAIN.equals(handlerChainType)) {
                        handlerChains = endpointConfig.getPreHandlerChains();
                    } else if (POST_HANDLER_CHAIN.equals(handlerChainType)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.