All Downloads are FREE. Search and download functionalities are using the official Maven repository.

OSGI-INF.blueprint.service-osgi.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- #%L net.osgiliath.hello.business.impl %% Copyright (C) 2013 Osgiliath %% Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 
	You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 
	"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. #L% -->


<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.1.0" xmlns:jaxrs="http://cxf.apache.org/blueprint/jaxrs" xmlns:cxf="http://cxf.apache.org/blueprint/core"
	xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
	http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.0.0.xsd
	http://aries.apache.org/xmlns/transactions/v1.1.0 http://aries.apache.org/schemas/transaction/transactionv11.xsd
	http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
	http://cxf.apache.org/blueprint/jaxrs http://cxf.apache.org/schemas/blueprint/jaxrs.xsd
	http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd">

	<reference id="jmsTemplateContainerListenerFactory" interface="net.osgiliath.helper.spring.jms.listeners.JmsTemplateContainerListenerFactory" />
	<service ref="helloServiceJMS" interface="net.osgiliath.messaging.repository.HelloRepository" />
	<!-- TODO your OSGI service references here (if you don't use annotations via MANIFEST) -->
	<reference id="transactionManager" interface="org.springframework.transaction.PlatformTransactionManager" />
	<reference id="jTATransactionManager" interface="javax.transaction.TransactionManager" />
	<reference id="jms" interface="org.springframework.jms.core.JmsOperations" availability="mandatory" filter="(component-type=jms)" />

	<reference id="jmsXA" interface="org.springframework.jms.core.JmsOperations" filter="(component-type=jmsXA)" />
	
	<bean id="jmsListenerContainer" factory-ref="jmsTemplateContainerListenerFactory" factory-method="create" destroy-method="shutdownGracefully">
		<argument value="false"></argument>
		<argument value="HELLO.IN"></argument>
		<argument ref="helloServiceJMS"></argument>
	</bean>

	
	<bean id="helloServiceJMS" class="net.osgiliath.messaging.repository.impl.HelloJMSRepository">
		<property name="producer" ref="jms"></property>
	</bean>

</blueprint>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy