달력

08

« 2017/08 »

  •  
  •  
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  •  
  •  

'spirng'에 해당되는 글 1

  1. 2011.07.11 Spring + Akka 예제(Blocking)
2011.07.11 10:01

Spring + Akka 예제(Blocking) Terracotta2011.07.11 10:01

설정은 None Blocking과 똑 같고, 메서드 콜후, 리턴값이 있으면 당연히 Blocking이 된다. 

1) Test 코드
 

@Test

public void blocking(){
System.out.println("1) 메일 호출 시작+++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
googleGmailService.findAll(GoogleDataFixture.getGmailResult());
System.out.println("1) 메일 호출 끝=========================================================");
System.out.println("2) 문서 호출 시작+++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
googleDocsService.findAll(GoogleDataFixture.getDocsResult());
System.out.println("2) 문서 호출 끝=========================================================");
System.out.println("3) 일정 호출 시작+++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
googleCalendarService.findAll(GoogleDataFixture.getCalendarResult());
System.out.println("3) 일정 호출 끝=========================================================");
}



2) Test 코드 실행 결과 (로그) 

09:59:41.730 [main] DEBUG o.s.orm.jpa.JpaTransactionManager - Participating in existing transaction
1) 메일 호출 시작+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
09:59:41.756 [main] INFO  a.d.LazyExecutorServiceWrapper - Lazily initializing ExecutorService for 
09:59:41.762 [akka:event-driven:dispatcher:global-1] DEBUG akka.dispatch.MonitorableThread - Created thread akka:event-driven:dispatcher:global-1
11
메일시작-----------------------------------
One More Week to Trial Premium Features
Final notice: Google Apps accounts will be automatically transitioned
UCM news: Out of beta at the end of June!
Improve Your Project Financials
UCM news: Smart Mail screencast online
Two week notice: Google Apps accounts will be automatically transitioned
Getting the Most out of Mavenlink
Take control with Manymoon
New features: Real-time Activity Feeds
Hello from Glasscubes
[Expensify Newsletter] Automatic Receipt Scanning, Categorization
메일끝-----------------------------------
1) 메일 호출 끝=========================================================
2) 문서 호출 시작+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
09:59:42.663 [akka:event-driven:dispatcher:global-2] DEBUG akka.dispatch.MonitorableThread - Created thread akka:event-driven:dispatcher:global-2
문서시작-----------------------------------
2011-07-05 XXX 견적서_XXXXXXX
2011-07-04 Google Apps Deployment Guide _XXX .doc
2011-07-01 XXX  견적서_XXX 
2011-07-04 Google Apps Deployment Guide _ XXX .doc
2011-07-04 XXX  구글 앱스 운용을 위한XXX  정보.docx
문서시작-----------------------------------
2) 문서 호출 끝=========================================================
3) 일정 호출 시작+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
09:59:43.934 [akka:event-driven:dispatcher:global-3] DEBUG akka.dispatch.MonitorableThread - Created thread akka:event-driven:dispatcher:global-3
일정시작-----------------------------------
XXX 관광
XXX 학교
XXX  Deployment
XXX  Deployment
Apps 테스트 일정
일정끝-----------------------------------
3) 일정 호출 끝=========================================================
09:59:45.201 [main] DEBUG o.s.t.c.t.TransactionalTestExecutionListener - No method-level @Rollback override: using default rollback [true] for test context [[TestContext@6d79953c testClass = GoogleServiceSupervisorTest, locations = array<String>['classpath*:/META-INF/spring/applicationContext*.xml', 'file:src/main/webapp/WEB-INF/spring/webmvc-config.xml', 'file:src/main/webapp/WEB-INF/spring/jersey-config.xml'], testInstance = net.max.wp.actor.GoogleServiceSupervisorTest@4934ce4a, testMethod = blocking@GoogleServiceSupervisorTest, testException = [null]]]
09:59:45.202 [main] DEBUG o.s.orm.jpa.JpaTransactionManager - Initiating transaction rollback

 
신고

'Terracotta' 카테고리의 다른 글

Spring + Akka 예제(Blocking)  (0) 2011.07.11
Spring + Akka 예제 (None Blocking)  (0) 2011.07.11
TAG ,
Posted by summerwars


티스토리 툴바