- WmSalesforceProvider.zip 다운
- 튜토리얼
- 주의 사항
- Salesforce 개발자 계정으로 만들어야 함
- 10.7 Provider 48.0 사용
- Listener Enable
- Listener 설정


- salesforce
- Youtube 자료
-
- Salesforce CRM OAuth Connection
- 연결된 앱 관리

- Connections



- HTTPS Port / keystore 설정

- Cloud Connector Service 생성
- cloudservice 생성 시 문제 > Operation에 연락처가 없을 시 package reload 필요 -> 10.7 문제?


- 결과

- Listener 테스트

- Listener Enable 설정

- 연락처 추가

- Receive Service 파이프라인 결과

Salesforce 인증서 다운로드
- 인증서 기반 인증 활성화

- 인증서 및 키 관리
> 자체 서명 인증서 및 키 저장소 다운로드

////
클러스터링 시



[Bayeux protocol]
서버와 클라이언트간의 비동기 메시지를 HTTP를 통해서 지연 없이 전달하기 위한 프로토콜.
Ajax과 Comet을 이용해서 양방향 이벤트 처리가 가능한 웹 클라이언트를 만들기 위함.
[Transport Type]
- polling transports
- 하나의 http request/response에 하나의 Bayeux Message를 처리하는 방식
- streaming transport
- 하나의 http request/response에 복수의 Bayeux Message를 처리. (using forever response)
- 불필요한 http reqeust로 인한 오버헤드가 없으나, 완결되 user agent 및 proxy가 non completed http response가 전달가능하도록 구현되어 있어야 한다.
- two connection operation
- 양방향통신(bi-directional communications)이 비동기적으로 일으날수 있게 하기 위해서 두개의 tcp connection을 사용한다. (http client는 하나의 서버에 대해서 동시에 생성할수 있는 커넥션이 2개이다.(SHOULD)
[Protocol Values]
# Bayeux protocol을 통해서 전달되는 데이터는 JSON으로 표현된다.
- Channel :
- Version : 프로토콜 버전
- Client ID : 서버에서 할당한 클라이언트 구별자
- Messages : JSON encoded objects that contain an unordered sequence of name value pairs representing fields and values
[
{
"channel": "/some/name",
"clientId": "83js73jsh29sjd92",
"data": { "myapp" : "specific data", value: 100 }
}
]
[Message Type]
+ Meta Message
- handshake request/response
* connection negotiation 초기화
* clientId 발급
- connect request/response
* connection 수립(establish)
* connection type지정 (by client)
- disconnect request/response
* connection 해제
- subscribe request/response
외부 링크로 첨부된 음악, 동영상은재생이 지원되지 않습니다.
* 채널에 구독요청 (요청된 채널에 발생한 이벤트를 전달받도록 셋팅)
request that messages published to the subscribe channel are delivered to the client
- unsubscribe request/response
* 채널에 구독요청 해지
+ Event Message
- publish request/response
* 채널에 이벤트 발생시킴
* 발생된 이벤트는 채널을 구독중인 다른 클라이언트에 전달 (deliver message)
- deliver
* 채널에 발생된 이벤트를 구독중인 클라이언트에 전달
+ Polling Message
- long-polling request
Messages are sent to the server as the body of a POST, encoded either as "application/x-www-form-urlencoded" or as "text/json".
- long-polling response
Messages are sent to the client as unencapsulated body content of a POST response with content type "text/json" or "text/json-comment-filtered".
- callback-polling request
Messages are sent to the server either using POST requests as per long-polling transport or as the "message" URL parameter of a GET request.
- callback-polling response
Messages are sent to the client as JavaScript function call returned for script source GET requests. The function called will be determined by the "jsonp" field of any associated request messages, or "jsonpcallback" if not specified. The called function will be passed a JSON array of Bayeux messages.
[Cross domain comunication]
- JSONP를 사용하여 우회
[JSONP]
+ JSON with Padding
+ JSONP는 JSON과