简体   繁体   English

JMS中上下文的目的是什么?

[英]what is the purpose of Context in JMS?

我想知道Context在JMS的目的是什么,为什么我需要(或应该)对其进行初始化?

It's used to find your JMS provider and the various factories, topics, queues and other resources. 它用于查找您的JMS提供程序以及各种工厂,主题,队列和其他资源。 Typically this is done via JNDI and so you need an initial context to start searching from. 通常,这是通过JNDI完成的,因此您需要一个初始上下文来开始搜索。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM