• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
introduction Spring BlazeDs Integration
 

introduction Spring BlazeDs Integration

on

  • 1,621 views

2009-12-04일자 스터디 자료

2009-12-04일자 스터디 자료

Statistics

Views

Total Views
1,621
Views on SlideShare
1,619
Embed Views
2

Actions

Likes
3
Downloads
0
Comments
0

1 Embed 2

http://www.slashdocs.com 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    introduction Spring BlazeDs Integration introduction Spring BlazeDs Integration Presentation Transcript

    • Spring BlazeDS Intergration 소개
      • 윤성한
      • [email_address]
      Flex Study Group : http://cafe.naver.com/flexstudygroup.cafe Spring Flex Study
    • Agenda
      • Spring Flex 를 이용하여 Remote Object 를 호출 할 수 있다 .
      • Message 기반의 Polling 을 구현 할 수 있다 .
      • Spring Security 를 이용하여 Remote Object 에 접근 제한을 적용할수 있다 .
    • Agenda
      • 관련 용어
      • Understanding about Remote Process
      • Mapping Flex Client
      • Mapping Servlet
      • Mapping Spring BlazeDS Integration
      • Mapping BlazeDS
      • Testing Demo
      • Polling Message
      • Security
      • Extending Spring Flex
    • 1. 관련 용어
      • Channel
      • EndPoint
      • Polling
      • MessageBroker
      • AMF
      • RemotingDestination
      Action Message Format or AMF is a binary format based loosely on the Simple Object Access Protocol (SOAP). It is used primarily to exchange data between an Adobe Flash application and a database, using a remote procedure call.
    • 2. Understanding about Remote Process 클라이언트 서버
    • 2. Understanding about Remote Process 클라이언트 서버
    • 2. Understanding about Remote Process 클라이언트 서버
    • 2. Understanding about Remote Process 클라이언트 서버
    • 2. Understanding about Remote Process 클라이언트 서버 1 2 3 AMF (Action Message Format)
    • 2. Understanding about Remote Process 클라이언트 서버 1 2 3 web.xml webmvc-config.xml service-config.xml example.mxml
    • 2. Understanding about Remote Process web.xml webmvc-config.xml service-config.xml example.mxml
    • 2. Understanding about Remote Process web.xml webmvc-config.xml service-config.xml example.mxml
    • 2. Understanding about Remote Process web.xml webmvc-config.xml service-config.xml example.mxml 1) 채널을 확보한다 . 2) 원격 Method 를 호출한다 . 3) 결과를 보여준다 .
      • 채널을 열고 대기한다 .
      • 요청을 Mapping 한다 .
      • Spring 객체를 실행한다 .
      • 결과를 보내준다 .
    • 3. Mapping Flex Client example.mxml <mx:AMFChannel id=&quot; myamf &quot; uri=&quot; /example-flex/app/remote/amf &quot; /> <mx:ChannelSet id=&quot; channelSet &quot; channels=&quot; { [myamf] } &quot; /> <mx:RemoteObject id=&quot; accountService &quot; destination=&quot; accountService &quot; channelSet=&quot; { channelSet } &quot; /> <mx:Button label=&quot; Call-polling1 &quot; click=&quot; accountService.findAllAccounts() &quot; /> <mx:DataGrid dataProvider =&quot; { accountService.findAllAccounts.lastResult } &quot; width=&quot; 100% &quot; height=&quot; 100% &quot; />
    • 4. Mapping Servlet web.xml < servlet > < servlet-name > example-flex </ servlet-name > < servlet-class > org.springframework.web.servlet. DispatcherServlet </ servlet-class > < init-param > < param-name > contextConfigLocation </ param-name > < param-value > /WEB-INF/config/webmvc-config.xml </ param-value > </ init-param > </ servlet > < servlet-mapping > < servlet-name > example-flex </ servlet-name > < url-pattern > /app/* </ url-pattern > </ servlet-mapping >
    • 5. Mapping Spring BlazeDS Intergration webmvc-config.xml < flex:message-broker />
    • 6. Mapping BlazeDS service-config.xml < channel -definition id = &quot;public-amf&quot; class = &quot;mx.messaging.channels.AMFChannel&quot; > < endpoint url = &quot; http://{server.name}:{server.port}/{context.root}/app/remote/public &quot; class = &quot;flex.messaging.endpoints.AMFEndpoint&quot; /> </ channel-definition >
    • 6. Mapping BlazeDS POJOs @Service @RemotingDestination( &quot;accountService&quot; ) public class AccountServiceImpl implements AccountService { @RemotingExclude public Account findAccountsByName(Long id) { return Account. findAccount(id); } @RemotingInclude public List<Account> findAllAccounts () { return Account. findAllAccounts(); } }
    • 7. Testing Demo
      • Simple Demo
      • Event Demo
      • Polling Demo
      • Security Demo
      • Spring Demo Project 생성
      • Flex Demo Project 생성
      • 기본 채널 연동 테스트
    • 8. Polling Message < mx:ChannelSet id=&quot; channelSet &quot; > <mx:AMFChannel uri=“ /app/remote/pollinglong &quot; /> <mx:AMFChannel uri=“ /app/remote/polling &quot; /> < /mx:ChannelSet > < mx:Producer id=&quot; producer &quot; destination=&quot; chat &quot; channelSet=&quot; { channelSet } &quot; /> < mx:Consumer id=&quot; consumer &quot; destination=&quot; chat &quot; channelSet=&quot; { channelSet } &quot; message=&quot;messageHandler(event.message)&quot; />
    • 9. Security <flex:secured {access} />, @Secured
    • 10. Extending Spring Flex
      • Extended MessageBroker
      • ( org.springframework.flex.config.MessageBrokerConfigProcessor )
      • Message Interceptors
      • (org.springframework.flex.core.MessageInterceptor)
      • Custom Service Adaptoers
      • (org.springframework.flex.core.ManageableComponentFactoryBean)
    • Q&A Flex Study Group
      • Spring Flex 를 이용하여 Remote Object 를 호출 할 수 있다 .
      • Message 기반의 Polling 을 구현 할 수 있다 .
      • Spring Security 를 이용하여 Remote Object 에 접근 제한을 적용할수 있다 .