Exception: “Name Not Found” When connecting to TIBCO EMS using Tibco Web Messaging

StackOverflow https://stackoverflow.com//questions/21029836

  •  21-12-2019
  •  | 
  •  

Вопрос

I am trying to connect Tibco Web Messaging (TWM) to Tibco EMS. But I get NameNotFoundException on the ConnectionFactory. Below is the log.

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

Has anyone got the same error.

Thanks, Naveen

Это было полезно?

Решение 2

There were no factories in the factories.conf file. Using Tibco Administration tool, was able to create a factory using the command.

create factory GenericConnectionFactory generic URL=tcp://7222

This did the trick.

Naveen

Другие советы

If you are using Tibco JMS for the first time, you need to create QueueConnectionFactory and TopicConnectionFactory. Make sure you add special character ">" in your ems queues.conf file.

Command to create Queue:

create factory QueueConnectionFactory queue URL=tcp://7222

Command to create Topic:

create factory TopicConnectionFactory topic URL=tcp://7222

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top