Guest User

Untitled

a guest
Jun 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. @Repository("FrameQueue")
  2. public class FrameQueue {
  3. private static final long serialVersionUID = -8314035702649252239L;
  4.  
  5. @Inject
  6. private JMSContext context;
  7.  
  8. @Resource(lookup = "java:/jms/queue/ImuRequestQueue")
  9. private Queue queue;
  10. private JMSConsumer consumer;
  11. private JMSProducer producer;
  12. ...
  13. }
  14.  
  15. @Controller
  16. @RequestMapping("/my")
  17. public class MyController {
  18.  
  19. @Resource
  20. private DataService dataService;
  21.  
  22. @Resource
  23. private FrameQueue frameQueue;
  24. ...
  25. }
  26.  
  27. <?xml version="1.0" encoding="UTF-8"?>
  28. <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  29. xsi:schemaLocation="
  30. http://xmlns.jcp.org/xml/ns/javaee
  31. http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
  32. bean-discovery-mode="all">
  33. </beans>
Add Comment
Please, Sign In to add comment