문제

ActiveMQ와 Mina의 간단한 데모를 설정하려고합니다. ActiveMq.xml 파일에서 CamelContext를 편집하여 두 개의 Mina TCP 소켓, 2 개의 대기열 및 경로를 포함했습니다.

Listenera-> qa-> Listenerb
Listenerb-> qb-> Listenera

의도는 두 텔넷 세션 사이를 양방향 통과하는 것입니다. 나중에 필터링, 주제로 라우팅 및 각 청취자에 대한 내 코덱과 같은 멋진 기능을 추가 할 것입니다.

여기 내 CamelContext가 있습니다.

    <!-- You can use a <package> element for each root package to search for Java routes --> 
    <package>com.myco.codec</package> 

    <endpoint id="listener_A" uri="mina:tcp://localhost:42000?textline=true"/> 
    <endpoint id="listener_B" uri="mina:tcp://localhost:42001?textline=true"/> 

            <!-- You can use Spring XML syntax to define the routes here using the <route> element --> 
    <route> 
        <from ref="listener_A"/> 
        <to uri="activemq:qA"/> 
    </route> 
    <route> 
        <from uri="activemq:qB"/> 
        <to ref="listener_A"/> 
    </route> 
    <route> 
        <from ref="listener_B"/> 
        <to uri="activemq:qB"/> 
    </route> 
    <route> 
        <from uri="activemq:qA"/> 
        <to ref="listener_B"/> 
    </route> 
</camelContext> 

ActiveMQ를 시작하면 예외가 발생합니다.

org.apache.camel.nosuchendpointexception : mina : tcp : // localhost : 42000? textline = true에 대한 엔드 포인트가 없습니다.

미나 콩을 추가해야합니까? 그렇다면 어디서 어떻게?

도움이 되었습니까?

해결책

Camel-Mina.jar와 ClassPath에 Mina Jars가 있습니까?

기반 여기 스레드 그것을 고쳐진 것 같습니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top