alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Spring Framework example source code file (jmsNamespaceHandlerTests.xml)

This example Spring Framework source code file (jmsNamespaceHandlerTests.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Spring Framework tags/keywords

connectionfactory, connectionfactory, resourceadapter, resourceadapter, testmessagelistener, testmessagelistener, utf-8, utf-8

The Spring Framework jmsNamespaceHandlerTests.xml source code

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xmlns:jms="http://www.springframework.org/schema/jms"
		xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
				http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-2.5.xsd">

	<jms:listener-container connection-factory="testConnectionFactory" task-executor="testTaskExecutor"
			destination-resolver="testDestinationResolver" message-converter="testMessageConverter"
			transaction-manager="testTransactionManager">
		<jms:listener id="listener1" destination="testDestination" ref="testBean1" method="setName"/>
		<jms:listener id="listener2" destination="testDestination" ref="testBean2" method="setName" response-destination="responseDestination"/>
	</jms:listener-container>

	<jms:listener-container>
		<jms:listener destination="testDestination" ref="testBean3"/>
	</jms:listener-container>

	<jms:jca-listener-container resource-adapter="testResourceAdapter" activation-spec-factory="testActivationSpecFactory"
			message-converter="testMessageConverter">
		<jms:listener id="listener3" destination="testDestination" ref="testBean1" method="setName"/>
		<jms:listener id="listener4" destination="testDestination" ref="testBean2" method="setName" response-destination="responseDestination"/>
	</jms:jca-listener-container>

	<jms:jca-listener-container activation-spec-factory="testActivationSpecFactory">
		<jms:listener destination="testDestination" ref="testBean3"/>
	</jms:jca-listener-container>

	<!-- the default ConnectionFactory -->
	<bean id="connectionFactory" class="org.springframework.jms.StubConnectionFactory"/>

	<bean id="testConnectionFactory" class="org.springframework.jms.StubConnectionFactory"/>

	<!-- the default ResourceAdapter -->
	<bean id="resourceAdapter" class="org.springframework.jca.StubResourceAdapter"/>

	<bean id="testResourceAdapter" class="org.springframework.jca.StubResourceAdapter"/>

	<bean id="testTaskExecutor" class="org.springframework.core.task.StubTaskExecutor"/>

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

	<bean id="testDestinationResolver" class="org.springframework.jms.support.destination.DynamicDestinationResolver"/>

	<bean id="testMessageConverter" class="org.springframework.jms.support.converter.SimpleMessageConverter102"/>

	<bean id="testTransactionManager" class="org.springframework.transaction.CallCountingTransactionManager"/>

	<bean id="testBean1" class="org.springframework.beans.TestBean"/>

	<bean id="testBean2" class="org.springframework.beans.TestBean"/>

	<bean id="testBean3" class="org.springframework.jms.config.JmsNamespaceHandlerTests$TestMessageListener"/>

</beans>

Other Spring Framework examples (source code examples)

Here is a short list of links related to this Spring Framework jmsNamespaceHandlerTests.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.