All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.spring.drools-platform-runtime-servlet-websocket-context.xml Maven / Gradle / Ivy

The newest version!
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:websocket="http://www.springframework.org/schema/websocket"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:util="http://www.springframework.org/schema/util"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/websocket
        http://www.springframework.org/schema/websocket/spring-websocket-4.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">

  <context:component-scan base-package="org.chtijbug.drools.platform.runtime.servlet"/>


  <websocket:handlers>
    <websocket:mapping path="/runtime" handler="myHandler"/>
    <websocket:handshake-handler ref="handshakeHandler"/>
  </websocket:handlers>

  <bean id="handshakeHandler" class="org.springframework.web.socket.server.support.DefaultHandshakeHandler">
    <constructor-arg ref="upgradeStrategy"/>
  </bean>

  <bean id="upgradeStrategy" class="org.springframework.web.socket.server.standard.TomcatRequestUpgradeStrategy">
  </bean>
  <bean id="myHandler" class=" org.chtijbug.drools.platform.runtime.servlet.websocket.SpringWebSocketServer"
        init-method="initServer">
    <property name="platformKnowledgeBaseJavaEE" ref="platformRunner"/>
  </bean>

  <bean id="serverFactory" class="org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean">
    <property name="maxTextMessageBufferSize" value="8192"/>
    <property name="maxBinaryMessageBufferSize" value="8192"/>
  </bean>

</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy