我正在使用 C# 编写客户端应用程序以连接到我的本地 JMS (Weblogic Server 12c)。 我尝试使用此处的示例代码
http://docs.oracle.com/cd/E15523_01/web.1111/e13746/app_examples.htm#JMSDN180
但是在线
context = ContextFactory.CreateContext(paramMap);
我有错误:
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
可能我需要以某种方式配置服务器?
这个错误的内部异常是
Failed to create T3 connection
内部异常是
Unknown connection parameters MS:10000000
最佳答案
如果我不得不猜测,您需要提供用户名和密码作为连接参数。具体来说:
paramMap[Constants.Context.SECURITY_PRINCIPAL] = username;
paramMap[Constants.Context.SECURITY_CREDENTIALS] = password;
这Oracle example包含比您问题中的链接更多的信息。
关于c# - JMS 客户端应用程序错误。使用 URL <t3 ://localhost:7001> 无法连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28232700/