2009-06-03 06:35:22 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
2009-09-29 05:31:23 +08:00
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xmlns:integration="http://www.springframework.org/schema/integration"
|
|
|
|
xmlns:jms="http://www.springframework.org/schema/integration/jms"
|
|
|
|
xmlns:file="http://www.springframework.org/schema/integration/file"
|
|
|
|
xmlns:stream="http://www.springframework.org/schema/integration/stream"
|
|
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
|
|
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
|
|
|
http://www.springframework.org/schema/integration
|
|
|
|
http://www.springframework.org/schema/integration/spring-integration-1.0.xsd
|
|
|
|
http://www.springframework.org/schema/integration/jms
|
|
|
|
http://www.springframework.org/schema/integration/jms/spring-integration-jms-1.0.xsd
|
|
|
|
http://www.springframework.org/schema/integration/stream
|
|
|
|
http://www.springframework.org/schema/integration/stream/spring-integration-stream-1.0.xsd
|
|
|
|
http://www.springframework.org/schema/integration/file
|
|
|
|
http://www.springframework.org/schema/integration/file/spring-integration-file-1.0.xsd
|
|
|
|
">
|
2011-01-20 00:09:50 +08:00
|
|
|
|
2011-02-23 01:13:00 +08:00
|
|
|
<bean id="redisDispatcher" class="org.bigbluebutton.redis.RedisDispatcher">
|
|
|
|
<constructor-arg index="0" value="192.168.1.35" />
|
|
|
|
<constructor-arg index="1" value="6379" />
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="redisListener" class="org.bigbluebutton.redis.RedisListener" init-method="init">
|
|
|
|
<constructor-arg index="0" value="192.168.1.35" />
|
|
|
|
<constructor-arg index="1" value="6379" />
|
|
|
|
<property name="pubsubListener" ref="pubsubListener"></property>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="pubsubListener" class="org.bigbluebutton.redis.PubsubListener" />
|
|
|
|
|
2009-09-29 05:31:23 +08:00
|
|
|
<!-- Spring Integration / JMS gateways -->
|
|
|
|
<bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
|
|
|
|
<property name="brokerURL">
|
|
|
|
<value>tcp://localhost:61616</value>
|
|
|
|
</property>
|
|
|
|
</bean>
|
|
|
|
|
2010-03-10 03:29:59 +08:00
|
|
|
<!-- INCOMING MESSAGES -->
|
|
|
|
|
|
|
|
<!-- conferenceStarted -->
|
2009-09-29 05:31:23 +08:00
|
|
|
<jms:inbound-channel-adapter id="jmsInConferenceStarted"
|
|
|
|
destination-name="conferenceStartedEvents"
|
|
|
|
channel="conferenceStarted"
|
|
|
|
extract-payload="true">
|
|
|
|
<integration:poller>
|
|
|
|
<integration:interval-trigger interval="5" time-unit="SECONDS"/>
|
|
|
|
</integration:poller>
|
|
|
|
</jms:inbound-channel-adapter>
|
2010-03-10 03:29:59 +08:00
|
|
|
<integration:channel id="conferenceStarted"/>
|
|
|
|
<integration:service-activator input-channel="conferenceStarted" ref="dynamicConferenceService" method="conferenceStarted" />
|
|
|
|
|
|
|
|
<!-- conferenceEnded -->
|
2009-09-29 05:31:23 +08:00
|
|
|
<jms:inbound-channel-adapter id="jmsInConferenceEnded"
|
|
|
|
destination-name="conferenceEndedEvents"
|
|
|
|
channel="conferenceEnded"
|
|
|
|
extract-payload="true">
|
|
|
|
<integration:poller>
|
|
|
|
<integration:interval-trigger interval="5" time-unit="SECONDS"/>
|
|
|
|
</integration:poller>
|
|
|
|
</jms:inbound-channel-adapter>
|
2010-03-10 03:29:59 +08:00
|
|
|
<integration:channel id="conferenceEnded"/>
|
|
|
|
<integration:service-activator input-channel="conferenceEnded" ref="dynamicConferenceService" method="conferenceEnded" />
|
|
|
|
|
|
|
|
<!-- participantsUpdated -->
|
2010-03-05 07:59:02 +08:00
|
|
|
<jms:inbound-channel-adapter id="jmsInParticipantsUpdated"
|
|
|
|
destination-name="participantsUpdatedEvents"
|
|
|
|
channel="participantsUpdated"
|
|
|
|
extract-payload="true">
|
|
|
|
<integration:poller>
|
|
|
|
<integration:interval-trigger interval="5" time-unit="SECONDS"/>
|
|
|
|
</integration:poller>
|
|
|
|
</jms:inbound-channel-adapter>
|
|
|
|
<integration:channel id="participantsUpdated"/>
|
|
|
|
<integration:service-activator input-channel="participantsUpdated" ref="dynamicConferenceService" method="participantsUpdated" />
|
2010-03-10 03:29:59 +08:00
|
|
|
|
2009-09-29 05:31:23 +08:00
|
|
|
<!-- <stream:stdout-channel-adapter id="stdout" channel="jmsinToStdoutChannel" append-newline="true"/>-->
|
2009-12-29 03:38:08 +08:00
|
|
|
|
2010-03-10 03:29:59 +08:00
|
|
|
<!-- OUTGOING MESSAGES -->
|
|
|
|
<integration:gateway id="conferenceEventListener" service-interface="org.bigbluebutton.api.IApiConferenceEventListener" />
|
|
|
|
|
|
|
|
<!-- endMeetingRequest -->
|
|
|
|
<integration:channel id="endMeetingRequest" />
|
|
|
|
<jms:outbound-channel-adapter id="endMeetingRequestJmsOut" destination="endMeetingRequestEvents" channel="endMeetingRequest" />
|
|
|
|
<bean id="endMeetingRequestEvents" class="org.apache.activemq.command.ActiveMQQueue">
|
|
|
|
<constructor-arg value="endMeetingRequestEvents"/>
|
|
|
|
</bean>
|
|
|
|
|
2009-12-31 01:17:45 +08:00
|
|
|
<import resource="doc-conversion.xml" />
|
2009-12-30 04:29:17 +08:00
|
|
|
|
2009-04-02 00:53:45 +08:00
|
|
|
</beans>
|