JMS客户端应用程序错误。未能使用URL&LT进行连接; T3://本地主机:7001> [英] JMS client app Error. Failed to connect using URL <t3://localhost:7001>

查看:732
本文介绍了JMS客户端应用程序错误。未能使用URL&LT进行连接; T3://本地主机:7001>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#编写的客户端应用程序连接到我的本地JMS(Weblogic Server的12C)。
我尝试使用示例代码此处



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



但在行

  =背景ContextFactory.CreateContext(paramMap); 



我有错误:




类型'WebLogic.Messaging.Transport.TransportException的异常出现在
WebLogic.Messaging.dll但在用户代码附加
信息没有处理:无法使用连接URL T3://本地主机:7001




可能是我需要以某种方式配置服务器



此错误的内部异常是




无法创建T3连接




和这个内部异常是




未知的连接参数MS:千万



解决方案

如果我猜,你需要为连接PARAMS提供的用户名和密码。具体做法是:



  paramMap [Constants.Context.SECURITY_PRINCIPAL] =用户名; 
paramMap [Constants.Context.SECURITY_CREDENTIALS] =密码;

这的甲骨文例如含有比你的问题的链接了解更多信息。


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

解决方案

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.

这篇关于JMS客户端应用程序错误。未能使用URL&LT进行连接; T3://本地主机:7001>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆