Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Repository("FrameQueue")
- public class FrameQueue {
- private static final long serialVersionUID = -8314035702649252239L;
- @Inject
- private JMSContext context;
- @Resource(lookup = "java:/jms/queue/ImuRequestQueue")
- private Queue queue;
- private JMSConsumer consumer;
- private JMSProducer producer;
- ...
- }
- @Controller
- @RequestMapping("/my")
- public class MyController {
- @Resource
- private DataService dataService;
- @Resource
- private FrameQueue frameQueue;
- ...
- }
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="
- http://xmlns.jcp.org/xml/ns/javaee
- http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
- bean-discovery-mode="all">
- </beans>
Add Comment
Please, Sign In to add comment