MVNO패키지 개발 Wiki

 

Mule Example

Page history last edited by 씨니 3 yrs ago

여기서는 간단히 어떤 설정으로 Mule이 작동하는지 기술하겠습니다. 자세한 내용은 Mule 홈페이지를 참조하시오.


Hello Example

이름을 입력받아 인사문구 (Hello, 이름~)를 출력하는 Example입니다.

화면 console을 통해 이름 입력

 

Http를 통해 이름을 입력

  • Web Browser에서 http://localhost:8888?name=Ross 과 같이 입력하여 이름을 받아 인사문구 출력하는 설정
  • GreeterUMO의 inbound endpoint만 아래와 같이 바꿔주고 그에 맞는 Transformer를 설정해주면 됩니다.

 

<inbound-router>

<endpoint name="httpEndpoint" address="http://localhost:8888" transformers="HttpRequestToString StringToNameString" >

<!-- filter out the favicon request --> <filter className="org.mule.routing.filters.logic.NotFilter"> <filter pattern="/favicon.ico" className="org.mule.providers.http.filters.HttpRequestWildcardFilter"/> </filter> <properties> <property name="Content-Type" value="text/plain"/> </properties> </endpoint> </inbound-router>

 

JDBC insert/select

  • JDBC 연동을 위한 Context와 Connector 설정

  • Mule model 설정

Comments (0)

You don't have permission to comment on this page.