tigase-server icon indicating copy to clipboard operation
tigase-server copied to clipboard

How to implement a component that can listen to MQ messages and access tigase

Open supanwoc opened this issue 4 years ago • 3 comments

How to implement a component that can listen to MQ messages and access tigase

supanwoc avatar Jan 07 '21 01:01 supanwoc

Component development is covered in our documentation: Component Development

If you have issues with creating the component please ask more detailed questions regarding issues that you are facing.

woj-tek avatar Jan 07 '21 15:01 woj-tek

Thank you very much,I've solved it。But how to consume MQ messages。I handle a lot of messages in the everysecond () method rewritten by the custom component。Is there a better way?

supanwoc avatar Jan 08 '21 08:01 supanwoc

Thank you very much,I've solved it。

Could you share what the problem was and how you solved it?

But how to consume MQ messages。I handle a lot of messages in the everysecond () method rewritten by the custom component。Is there a better way?

Could you share your design and flow (or better yet - source code)? In general Tigase is event driven and all processing should be done in public void process(Packet packet) {} method.

woj-tek avatar Jan 08 '21 19:01 woj-tek