Announcement Announcement Module
Collapse
No announcement yet.
Spring Integration and OSGI Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Integration and OSGI

    Hi everyone , first of all i have a question ...

    i wasn't able to fin any bundle versions of the 2.1.0.RELEASE integration jars ... is that because i'm not smart enough or because they're no longer built , if so ... why?

    Trying to solve it i added the jars as non-bundle libs but still i'm getting this erro while starting up the tomacat server ( where i've placed the felix framework whithin the web-app.wab)

    Unable to create application context for [echoService], unsatisfied dependencies: none
    org.springframework.beans.factory.parsing.BeanDefi nitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/integration]
    Offending resource: URL [bundle://35.0:0/META-INF/spring/bundle-integration-context.xml]
    and this is my bundle-integration-context.xml :

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    	xmlns:beans="http://www.springframework.org/schema/beans"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xmlns:oxm="http://www.springframework.org/schema/oxm"
    	xmlns:osgi="http://www.eclipse.org/gemini/blueprint/schema/blueprint"
    	xmlns:int="http://www.springframework.org/schema/integration"
    	xmlns:int-http="http://www.springframework.org/schema/integration/http"
    	xmlns:int-ws="http://www.springframework.org/schema/integration/ws"    
    	xmlns:int-xml="http://www.springframework.org/schema/integration/xml"
    	xsi:schemaLocation="http://www.springframework.org/schema/beans 
    	http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/integration/ws 
    	http://www.springframework.org/schema/integration/ws/spring-integration-ws-2.1.xsd
    	http://www.springframework.org/schema/integration/xml
    	http://www.springframework.org/schema/integration/xml/spring-integration-xml-2.1.xsd
    	http://www.springframework.org/schema/integration 
    	http://www.springframework.org/schema/integration/spring-integration-2.1.xsd
    	http://www.springframework.org/schema/oxm
    	http://www.springframework.org/schema/oxm/spring-oxm-3.0.xsd
    	http://www.springframework.org/schema/integration/http 
    	http://www.springframework.org/schema/integration/http/spring-integration-http-2.1.xsd
    	http://www.eclipse.org/gemini/blueprint/schema/blueprint
        http://www.eclipse.org/gemini/blueprint/schema/blueprint/gemini-blueprint.xsd">
    
    	   
    	<int:channel id="receiveRestChannel"/>	
    	<int:channel id="responseRestChannel"/>	
    	
    	<int-http:inbound-gateway id="RestEndpoint" request-channel="receiveRestChannel"
                              name="/receiveGateway"
                              supported-methods="GET, POST"
                              reply-channel = "responseRestChannel"/>
                                                      
    
    	<beans:bean id="monkeyBusinessService" class="myapp.samples.samplehttp.impl.MonkeyBusiness"/>
    	
    	<osgi:service id="monkeyBusinessServiceOsgi" ref="monkeyBusinessService"
            interface="myapp.samples.samplehttp.MonkeyBusinessService"/>
          
    	
    	<int:chain id = "RestChain" input-channel = "receiveRestChannel" output-channel="responseRestChannel">	
    		<int:json-to-object-transformer type="myapp.samples.samplehttp.RequestHttp"/>
    		<int:service-activator  ref="monkeyBusinessService" method="prueba"/>
    		<int:object-to-json-transformer />	
    	</int:chain>
    
    </beans>

    Any ideas ? i've found some osgi-inbound samples in old distribution , but they haven't been too useful ...


    thanks!
    Last edited by cml81; Oct 30th, 2012, 11:49 AM.
Working...
X