gpt4 book ai didi

java - 异常 : "Name Not Found" When connecting to TIBCO EMS using Tibco Web Messaging

转载 作者:行者123 更新时间:2023-11-30 09:13:27 24 4
gpt4 key购买 nike

我正在尝试将 Tibco Web Messaging (TWM) 连接到 Tibco EMS。但是我在 ConnectionFactory 上得到了 NameNotFoundException。以下是日志。

ERROR Error starting Gateway: caught exception java.lang.ClassCastException: com.tibco.tibjms.naming.TibjmsContext cannot be cast to javax.jms.ConnectionFactory
java.lang.ClassCastException: com.tibco.tibjms.naming.TibjmsContext cannot be cast to javax.jms.ConnectionFactory
at com.kaazing.gateway.jms.server.service.StompJmsService.initHandler(StompJmsService.java:103)
at com.kaazing.gateway.jms.server.service.AbstractStompService.init(AbstractStompService.java:210)
at com.kaazing.gateway.jms.server.service.AbstractStompFanoutService.init(AbstractStompFanoutService.java:87)
at com.kaazing.gateway.jms.server.service.StompJmsService.init(StompJmsService.java:91)
at com.kaazing.gateway.server.context.resolve.DefaultServiceContext.init(DefaultServiceContext.java:697)
at com.kaazing.gateway.server.Launcher.initInternal(Launcher.java:54)
at com.kaazing.gateway.server.Launcher.init(Launcher.java:33)
at com.kaazing.gateway.server.impl.GatewayImpl.launch(GatewayImpl.java:291)
at com.kaazing.gateway.server.GatewayCommandProcessor.launchGateway(GatewayCommandProcessor.java:98)
at com.kaazing.gateway.server.GatewayCommandProcessor.launchGateway(GatewayCommandProcessor.java:43)
at com.kaazing.gateway.server.Main.main(Main.java:34)
INFO Stopping server
INFO Stopping management

有没有人遇到同样的错误。

谢谢,纳文

最佳答案

如果您是第一次使用 Tibco JMS,则需要创建 QueueConnectionFactory 和 TopicConnectionFactory。确保在 ems queues.conf 文件中添加特殊字符“>”。

创建队列的命令:

创建工厂 QueueConnectionFactory 队列 URL=tcp://7222

创建主题的命令:

创建工厂TopicConnectionFactory主题URL=tcp://7222

关于java - 异常 : "Name Not Found" When connecting to TIBCO EMS using Tibco Web Messaging,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21029836/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com