266.6. 예제

266.6.1. 이벤트 게시

생성 시 기본 작업입니다. 다음 스니펫에서는 PojoBean에서 생성한 이벤트를 채널 iot에 게시합니다.

from("timer:mytimer")
    // generate some data as POJO.
    .bean(PojoBean.class)
    .to("pubnub:iot?publishKey=mypublishKey");