<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xmlns:nms="http://www.springframework.net/ems">

  <nms:listener-container connection-factory="testConnectionFactory" 
			destination-resolver="testDestinationResolver" message-converter="testMessageConverter">
    <nms:listener id="listener1" destination="testDestination" ref="testObject1" method="SetName"/>
    <nms:listener id="listener2" destination="testDestination" ref="testObject2" method="SetName" 
                  response-destination="responseDestination"/>
  </nms:listener-container>

  <nms:listener-container>
    <nms:listener destination="testDestination" ref="testObject3"/>
  </nms:listener-container>


  <!-- the default ConnectionFactory -->
  <object id="ConnectionFactory" type="TIBCO.EMS.ConnectionFactory, TIBCO.EMS"/>

  <object id="testConnectionFactory" type="TIBCO.EMS.ConnectionFactory, TIBCO.EMS"/>


  <!--
  <bean id="testActivationSpecFactory" class="org.springframework.jms.listener.endpoint.StubJmsActivationSpecFactory"/>
  -->

  <object id="testDestinationResolver" type="Spring.Messaging.Ems.Support.Destinations.DynamicDestinationResolver, Spring.Messaging.Ems"/>

  <object id="testMessageConverter" type="Spring.Messaging.Ems.Support.Converter.SimpleMessageConverter, Spring.Messaging.Ems"/>


  <object id="testObject1" type="Spring.Objects.TestObject, Spring.Core.Tests"/>

  <object id="testObject2"  type="Spring.Objects.TestObject, Spring.Core.Tests"/>

  <object id="testObject3"  type="Spring.Messaging.Ems.Connections.TestMessageListener, Spring.Messaging.Ems.Tests"/>

</objects>

