Examples of EngineConfiguration


Examples of org.apache.axis.EngineConfiguration

    public static Service getService(Map environment)
    {
        Service service = null;
        InitialContext context = null;

        EngineConfiguration configProvider =
            (EngineConfiguration)environment.get(EngineConfiguration.PROPERTY_NAME);

        if (configProvider == null)
            configProvider = (EngineConfiguration)threadDefaultConfig.get();
View Full Code Here

Examples of org.apache.axis.EngineConfiguration

    {
        try {
            // Initialize our Service - allow the user to override the
            // default configuration with a thread-local version (see
            // setDefaultConfiguration() above)
            EngineConfiguration config =
                    (EngineConfiguration)defaultConfiguration.get();
            Service service;
            if (config != null) {
                service = new Service(config);
            } else {
View Full Code Here

Examples of org.apache.axis.EngineConfiguration

            log.info("Testing TCP stock service...");
            GetQuote tester = new GetQuote();
            tester.getQuote(new String [] { "-ltcp://localhost:8088", "XXX" });
            String   symbol = "XXX"; // args[0] ;

            EngineConfiguration defaultConfig =
                (new DefaultEngineConfigurationFactory()).
                getClientEngineConfig();
            SimpleProvider config = new SimpleProvider(defaultConfig);
            SimpleTargetedChain c = new SimpleTargetedChain(new TCPSender());
            config.deployTransport("tcp", c);
View Full Code Here

Examples of org.apache.axis.EngineConfiguration

    {
        try {
            // Initialize our Service - allow the user to override the
            // default configuration with a thread-local version (see
            // setDefaultConfiguration() above)
            EngineConfiguration config =
                    (EngineConfiguration)defaultConfiguration.get();
            Service service;
            if (config != null) {
                service = new Service(config);
            } else {
View Full Code Here

Examples of org.apache.axis.EngineConfiguration

        addBeanMapping(mapping, "BookType", BookType.class);
        addBeanMapping(mapping, "ResultListType", ResultListType.class);
        addBeanMapping(mapping, "QueryResultType", QueryResultType.class);
        addBeanMapping(mapping, "QueryResultElement", QueryResultElement.class);
        registry.register("",mapping);
        EngineConfiguration config = engine.getConfig();
        config.writeEngineConfig(engine);
    }
View Full Code Here

Examples of org.apache.axis.EngineConfiguration

        service.setName("sessionTestService");
        service.setOption("scope", "session");
        service.setOption("className", "test.session.TestSimpleSession");
        service.setOption("allowedMethods", "counter");

        EngineConfiguration defaultConfig =
            (new DefaultEngineConfigurationFactory()).getServerEngineConfig();
        SimpleProvider config = new SimpleProvider(defaultConfig);
        config.deployService("sessionTest", service);

        AxisServer server = new AxisServer(config);
View Full Code Here

Examples of org.apache.axis.EngineConfiguration

        service.setOption("className", "test.MSGDispatch.TestService");
        service.setOption("allowedMethods", "*");
        service.getServiceDescription().setDefaultNamespace("http://db.com");
        service.getServiceDescription().setStyle(Style.MESSAGE);

        EngineConfiguration defaultConfig =
            (new DefaultEngineConfigurationFactory()).getServerEngineConfig();
        SimpleProvider config = new SimpleProvider(defaultConfig);
        config.deployService("MessageService", service);

        AxisServer server = new AxisServer(config);
View Full Code Here

Examples of org.jwebsocket.api.EngineConfiguration

  @Override
  public WebSocketEngine initializeEngine() {
    if (log.isDebugEnabled()) {
      log.debug("Instantiating engine...");
    }
    EngineConfiguration config = getEngineConfiguration();
    WebSocketEngine newEngine = null;
    try {
      newEngine = new TCPEngine(config);
      //newEngine = new NettyEngine(config);
    } catch (Exception e) {
View Full Code Here

Examples of org.jwebsocket.api.EngineConfiguration

    @Override
    public void run() {
      WebSocketEngine engine = getEngine();

      int lMaxFrameSize = JWebSocketCommonConstants.DEFAULT_MAX_FRAME_SIZE;
      EngineConfiguration config = engine.getConfiguration();
      if (config != null && config.getMaxFramesize() > 0) {
        lMaxFrameSize = config.getMaxFramesize();
      }
      byte[] lBuff = new byte[lMaxFrameSize];
      int pos = -1;
      int lStart = -1;
View Full Code Here

Examples of org.jwebsocket.api.EngineConfiguration

            // since handshaking is done, replace the encoder/decoder with
            // web socket data frame encoder/decoder
            ChannelPipeline p = ctx.getChannel().getPipeline();
            p.remove("aggregator");
            EngineConfiguration config = engine.getConfiguration();
            if (config == null || config.getMaxFramesize() == 0) {
                p.replace("decoder", "jwsdecoder", new WebSocketFrameDecoder(JWebSocketCommonConstants.DEFAULT_MAX_FRAME_SIZE));
            } else {
                p.replace("decoder", "jwsdecoder", new WebSocketFrameDecoder(config.getMaxFramesize()));
            }
            p.replace("encoder", "jwsencoder", new WebSocketFrameEncoder());
           
            //if the WebSocket connection URI is wss then start SSL TLS handshaking
            if (req.getUri().startsWith("wss:")) {
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.