
.cxf.transport.reliablejms.examples-ejb_mdb-modules-client-sender.0.1.source-code.cxf-mdb-client-sender.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - JOnAS: Java(TM) Open Application Server - Copyright (C) 2010 France Telecom R&D - Contact: [email protected] - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 - USA - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $Id: cxf-mdb-client-sender.xml 21483 2011-06-23 14:47:13Z jppouzol $ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> <!-- Target Destination used to send the message --> <bean id="destinationJndiName" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="endpointQueue" /> </bean> <!-- Target Destination used to reply to the message --> <bean id="replyToJndiName" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="clientAnswerQueue" /> </bean> <!-- Target Connection factory used to send the message --> <bean id="targetConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="QCF" /> </bean> <!-- AsyncHandler Implementation --> <bean id="jmsAsyncHandlerImpl" class="org.ow2.jonas.cxf.transport.reliablejms.example.ejbmdb.MyAsyncHandlerImpl"></bean> <!-- Configuration for the client sender --> <bean name="{http://cxf.apache.org/jms_greeter}GreeterPort.reliablejms.clientsender-configuration" class="org.ow2.jonas.cxf.transport.reliablejms.ReliableJMSTransportConfiguration" abstract="true"> <property name="targetDestination" ref="destinationJndiName"/> <property name="replyToDestination" ref="replyToJndiName"/> <property name="connectionFactory" ref="targetConnectionFactory"/> <property name="asyncHandlers"> <list> <ref bean="jmsAsyncHandlerImpl"/> </list> </property> </bean> <jaxws:client id="greeterClient" xmlns:greeter="http://cxf.apache.org/jms_greeter" serviceClass="org.apache.cxf.jms_greeter.JMSGreeterPortType" wsdlLocation="wsdl/greeter.wsdl" endpointName="greeter:GreeterPort" serviceName="greeter:JMSGreeterService" address="reliablejms://?mode=clientsender"> </jaxws:client> <bean id="WebService" class="org.ow2.jonas.cxf.transport.reliablejms.example.ejbmdb.client.MyService"> <property name="service" ref="greeterClient"></property> </bean> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy