JMS client app Error. Failed to connect using URL <t3://localhost:7001>

旧城冷巷雨未停 提交于 2019-12-23 21:04:43

问题


I'm writing client application on C# to connect to my local JMS (Weblogic Server 12c). I try to use sample code from here

http://docs.oracle.com/cd/E15523_01/web.1111/e13746/app_examples.htm#JMSDN180

But on line

context = ContextFactory.CreateContext(paramMap);  

I have error:

An exception of type 'WebLogic.Messaging.Transport.TransportException' occurred in WebLogic.Messaging.dll but was not handled in user code Additional information: Failed to connect using URL t3://localhost:7001

may be I need to somehow configure the server?

Inner exception of this error is

Failed to create T3 connection

and the inner exception of this is

Unknown connection parameters MS:10000000


回答1:


If I had to guess, you need to supply the username and password as connection params. Specifically:

paramMap[Constants.Context.SECURITY_PRINCIPAL] = username;
paramMap[Constants.Context.SECURITY_CREDENTIALS] = password;

This Oracle example contains more information than the link in your question.



来源:https://stackoverflow.com/questions/28232700/jms-client-app-error-failed-to-connect-using-url-t3-localhost7001

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!