开发者

how can the MessageListenerContainer listen the message asynchronously?

开发者 https://www.devze.com 2023-04-12 07:42 出处:网络
Is there any long-lasting TCP connecton开发者_Python百科 be set up? Any TCP port be open for this to work?From the spring docs

Is there any long-lasting TCP connecton开发者_Python百科 be set up? Any TCP port be open for this to work?


From the spring docs

A message listener container is the intermediary between an MDP and a messaging provider

MessageListenerContainer is some glue code. The real interesting stuff is going on in the JMS provider. And yes, it almost certainly involves a TCP connection or something similar.

The specifics are an implementation detail. Consult your JMS vendor documentation and maybe they'll spell it out.


If you mean Spring's message listener container (but you haven't stated that), it takes the connection from the injected connectionFactory property, so you need to examine the javax.jms.ConnectionFactory implementation of your JMS provider to give you a clue. It may or may not be over TCP. It may well be embedded inside the same JVM, in a test setup, for example.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号