s2blazeds の利用

(サーバー)

 ・S2Container + BlazeDS + S2Blazeds + S2DAO
 ・postgres 8.4
 ・tomcat 6.0

(クライアント)

 ・Adobe AIR

(以下、行った手順)

eclipseDoltengプラグイン

Doltengプロジェクトを作成する。

  ・S2Blazeds + S2DAO

■services-config.xmlを編集


  

    
    
    

  

    
     
    

  
    
      Custom
      
        sampleusers
      

    

    

  

  
    
      
      
        100
      

    

    
      
      
        false
      

    

    

      

      
    

    
      
      
        true
        0
        -1
        100
      

    

    
      
    

    
      
    

  

  

    

    
      
        [BlazeDS]
        false
        false
        true
        false
      

      
        Endpoint.*
        Service.*
        Configuration
      

    

  

  
    
      true
      20
      {context.root}/WEB-INF/flex/services-config.xml
      {context.root}/WEB-INF/flex/proxy-config.xml
      {context.root}/WEB-INF/flex/remoting-config.xml
      {context.root}/WEB-INF/flex/messaging-config.xml
      {context.root}/WEB-INF/web.xml
    

  

■remoting-config.xmlを編集


  

  

    
  

  
    
  

  
   
    jp.co.tool.air.service.RegistPatientService
   

  

■Service、DAO、DTO、Entityクラスを作成