2014-02-28 2 views
0

내가 뮬에 새로운 http://www.mulesoft.org/documentation/display/current/JDBC+Transport+Reference#JDBCTransportReference-LargeDataset노새 응용 프로그램을 실행에, 노새 응용 프로그램

를 따라하려고를 실행하는 동안 내 노새 구성 파일

<?xml version="1.0" encoding="UTF-8"?> 

<mule xmlns:data-mapper="http://www.mulesoft.org/schema/mule/ee/data-mapper" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:jdbc-ee="http://www.mulesoft.org/schema/mule/ee/jdbc" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml" xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns:jdbc="http://www.mulesoft.org/schema/mule/jdbc" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" 
xmlns:spring="http://www.springframework.org/schema/beans" xmlns:vm="http://www.mulesoft.org/schema/mule/vm" xmlns:core="http://www.mulesoft.org/schema/mule/core" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:scripting="http://www.mulesoft.org/schema/mule/scripting" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="EE-3.4.1" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/current/mule-xml.xsd 
http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd 
http://www.mulesoft.org/schema/mule/ee/jdbc http://www.mulesoft.org/schema/mule/ee/jdbc/current/mule-jdbc-ee.xsd 
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd 
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/3.1/mule-http.xsd 
http://www.mulesoft.org/schema/mule/scripting http://www.mulesoft.org/schema/mule/scripting/3.1/mule-scripting.xsd 
http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd 
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd 
http://www.mulesoft.org/schema/mule/vm http://www.mulesoft.org/schema/mule/vm/3.4/mule-vm.xsd 
http://www.mulesoft.org/schema/mule/ee/data-mapper http://www.mulesoft.org/schema/mule/ee/data-mapper/current/mule-data-mapper.xsd"> 

<jdbc-ee:oracle-data-source name="Oracle_Local_Data_Source" user="system" password="admin_123" url="jdbc:oracle:thin:@localhost:1521:orcl" transactionIsolation="UNSPECIFIED" doc:name="Oracle Data Source"></jdbc-ee:oracle-data-source> 
    <jdbc-ee:connector name="Database_JDBC" dataSource-ref="Oracle_Local_Data_Source" validateConnections="true" queryTimeout="-1" pollingFrequency="1000000" doc:name="Database"></jdbc-ee:connector> 

<spring:bean id="idStore" class="com.mulesoft.mule.transport.jdbc.util.IdStore"> 
    <spring:property name="fileName" value="/tmp/large-dataset.txt"/> 
</spring:bean> 
<spring:bean id="seqBatchManager" class="com.mulesoft.mule.transport.jdbc.components.BatchManager"> 
    <spring:property name="idStore" ref="idStore"/> 
    <spring:property name="batchSize" value="2"/> 
    <spring:property name="startingPointForNextBatch" value="0"/> 
</spring:bean> 
<spring:bean id="noArgsWrapper"    
      class="com.mulesoft.mule.transport.jdbc.components.NoArgsWrapper"> 
    <spring:property name="batchManager" ref="seqBatchManager"/> 
</spring:bean> 

<flow name="LargeDataSet"> 
     <jdbc-ee:inbound-endpoint queryKey="EmployeeList" queryTimeout="-1" pollingFrequency="1000" connector-ref="Database_JDBC" doc:name="Database"> 
      <jdbc-ee:query key="EmployeeList" value="select * from employee"></jdbc-ee:query> 
     </jdbc-ee:inbound-endpoint> 
     <vm:inbound-endpoint exchange-pattern="one-way" path="vm://next.batch"/> 
     <spring-object bean="noArgsWrapper" /> 
</flow> 

</mule> 

를 오류이되어 얻기, 나는 아래의 오류를 얻고있다 :

Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'vm:inbound-endpoint'. One of '{"http://www.mulesoft.org/schema/mule/core":abstract-message-processor, "http://www.mulesoft.org/schema/mule/core":abstract-outbound-endpoint, "http://www.mulesoft.org/schema/mule/core":abstract-mixed-content-message-processor, "http://www.mulesoft.org/schema/mule/core":response}' is expected. 
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) 
    at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) 
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) 
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) 
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) 
    .... 

Google에서 검색하려고했으나 아무런 해결책이 없었습니다. FYI - 클래스 경로에 mule-transport-vm-3.4.1.jar가 있습니다 (이 문제를 해결하기 위해 어딘가에 제시된 제안 중 하나임)

답변

0

동일한 흐름에서 두 개의 인바운드 엔드 포인트를 가질 수 없습니다. 달성하려는 목표는 무엇입니까? 단기적으로는 vm : inbound-endpoint를 제거하십시오.

아마도 스프링 개체 뒤에 아웃 바운드 엔드 포인트로 만들려는 것일까 요? 대신 자바 구성 요소를 사용하여 다음과 같이 봄 객체를 참조 할 수

http://ricston.com/blog/batch-select-mule/

+0

: org.xml.sax.SAXParseException : 인바운드 엔드 포인트, 나는에 의한 오류를 얻고있다 CVC-복잡한 type.2.4.a을 : 잘못된 내용 요소 '봄 객체'로 시작 발견되었다. – Anand

0

는 현재 작업하고 상세한 예제를 가지고있다.

1

당신이 흐름에 직접 스프링 개체를 사용 두지 :

0

인바운드 엔드 포인트가 여러 개있는 경우 복합 범위로 정의하십시오. VM 제거에

관련 문제