[jboss-cvs] JBossAS SVN: r103807 - in projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc: src/main/webapp/WEB-INF and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Apr 12 03:43:07 EDT 2010
Author: marius.bogoevici
Date: 2010-04-12 03:43:07 -0400 (Mon, 12 Apr 2010)
New Revision: 103807
Modified:
projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/pom.xml
projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/webapp/WEB-INF/spring-business-context.xml
Log:
use jca namespace
Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/pom.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/pom.xml 2010-04-12 06:49:53 UTC (rev 103806)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/pom.xml 2010-04-12 07:43:07 UTC (rev 103807)
@@ -89,7 +89,14 @@
<groupId>org.jboss.javaee</groupId>
<artifactId>jboss-ejb-api</artifactId>
</dependency>
+ <!-- included to help the IDE validate the configuration -->
<dependency>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-connector</artifactId>
+ <version>5.1.0.GA</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
<groupId>org.jboss.snowdrop.samples.sportsclub</groupId>
<artifactId>sportsclub-invoicing-ejb</artifactId>
<version>${project.version}</version>
Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/webapp/WEB-INF/spring-business-context.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/webapp/WEB-INF/spring-business-context.xml 2010-04-12 06:49:53 UTC (rev 103806)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/webapp/WEB-INF/spring-business-context.xml 2010-04-12 07:43:07 UTC (rev 103807)
@@ -5,8 +5,10 @@
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
+ xmlns:jms="http://www.springframework.org/schema/jms"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
@@ -18,38 +20,32 @@
<context:component-scan base-package="org.jboss.snowdrop.samples.sportsclub.service.payment"/>
- <bean id="jmsContainer" class="org.springframework.jms.listener.endpoint.JmsMessageEndpointManager">
- <property name="messageListener" ref="messageListener"/>
- <property name="activationSpec">
- <bean class="org.jboss.resource.adapter.jms.inflow.JmsActivationSpec">
- <property name="destination" value="queue/sportsclub"/>
- <property name="destinationType" value="javax.jms.Queue"/>
- <property name="acknowledgeMode" value="AUTO_ACKNOWLEDGE"/>
- <property name="clientId" value="remote"/>
- <property name="subscriptionName" value="jca-payment-processor"/>
- <property name="maxSession" value="1"/>
- <property name="useDLQ" value="false"/>
- </bean>
- </property>
- <property name="resourceAdapter">
- <bean factory-bean="mBeanServer" factory-method="getAttribute">
- <constructor-arg>
- <bean class="org.springframework.jmx.support.ObjectNameManager" factory-method="getInstance">
- <constructor-arg value="jboss.jca:name='jms-ra.rar',service=RARDeployment"/>
- </bean>
- </constructor-arg>
- <constructor-arg value="ResourceAdapter"/>
- </bean>
- </property>
- <property name="transactionManager">
- <bean class="org.jboss.spring.transactions.ExistingTransactionAwareTransactionFactory">
- <property name="wrappedJtaTransactionManager" ref="transactionManager"/>
- </bean>
- </property>
+ <jms:jca-listener-container resource-adapter="resourceAdapter" acknowledge="auto" activation-spec-factory="activationSpecFactory">
+ <jms:listener destination="/queue/sportsclub" ref="paymentNotificationProcessor" method="processPaymentNotification"/>
+ </jms:jca-listener-container>
+
+ <bean id="activationSpecFactory" class="org.springframework.jms.listener.endpoint.DefaultJmsActivationSpecFactory">
+ <property name="activationSpecClass" value="org.jboss.resource.adapter.jms.inflow.JmsActivationSpec"/>
+ <property name="defaultProperties">
+ <value>
+ clientId=remote
+ subscriptionName=jca-paymentProcessor
+ useDLQ=false
+ </value>
+ </property>
</bean>
- <bean id="mBeanServer" class="org.jboss.mx.util.MBeanServerLocator" factory-method="locateJBoss"/>
+ <bean id="resourceAdapter" factory-bean="mBeanServer" factory-method="getAttribute">
+ <constructor-arg>
+ <bean class="org.springframework.jmx.support.ObjectNameManager" factory-method="getInstance">
+ <constructor-arg value="jboss.jca:name='jms-ra.rar',service=RARDeployment"/>
+ </bean>
+ </constructor-arg>
+ <constructor-arg value="ResourceAdapter"/>
+ </bean>
+ <bean id="mBeanServer" class="org.jboss.mx.util.MBeanServerLocator" factory-method="locateJBoss"/>
+
<bean id="messageListener" class="org.springframework.jms.listener.adapter.MessageListenerAdapter">
<property name="delegate" ref="paymentNotificationProcessor"/>
<property name="defaultListenerMethod" value="processPaymentNotification"/>
@@ -91,6 +87,7 @@
<property name="attributeSource" ref="attributeSource"/>
</bean>
</property>
+ <property name="server" ref="mBeanServer"/>
</bean>
</beans>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list