Advertisement
Guest User

Untitled

a guest
Aug 27th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. @Component
  2. @Qualifier("delegator")
  3. @Scope(value = "simpleThreadScope", proxyMode = ScopedProxyMode.INTERFACES)
  4. public class AsyncDelegator implements IAsyncDelegator {
  5. ....
  6. }
  7.  
  8. @Controller
  9. @RequestMapping("/*")
  10. public class C2GWebController extends AbstractDeferredResultController {
  11.  
  12. @Autowired
  13. @Qualifier("delegator")
  14. IAsyncDelegator delegator;
  15.  
  16. ....
  17. }
  18.  
  19. @Configuration
  20. @EnableAspectJAutoProxy(proxyTargetClass = true)
  21. @EnableLoadTimeWeaving(aspectjWeaving = EnableLoadTimeWeaving.AspectJWeaving.AUTODETECT)
  22. @ComponentScan("com.digitaslbi.helios")
  23. @EnableAsync
  24. @RequestMapping
  25. @EnableWebMvc
  26. public class Config implements BeanFactoryAware {
  27. ....
  28. }
  29.  
  30. Server version: Apache Tomcat/7.0.42
  31. Server built: Aug 4 2014 03:06:35
  32. Server number: 7.0.42.0
  33. OS Name: Linux
  34. OS Version: 3.10.0-123.el7.x86_64
  35. Architecture: amd64
  36. JVM Version: 1.7.0_65-mockbuild_2014_07_14_06_04-b00
  37. JVM Vendor: Oracle Corporation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement