关闭

A workgroup installation computer does not support the operation

标签: exceptionextensionblogsserverpath
2724人阅读 评论(0) 收藏 举报
分类:

In one of our internal forums, recently, someone had posted a query regarding issues in connecting and receiving messages from journal queues. The exception they were getting was "Queue ID is not registered in DS". I hadn't worked with Journal queues before, but this error seemed to me to be related to the queue path.

In my earlier blogs (here andhere), I had discussed about the importance of specifying the right name for the queue and also mentioned how the path will typically look like. I decided to give it a try and created a private queue on my local machine and enabled journaling on it. Enabling journaling is as trivial as checking a checkbox in the queue property window.  You can also enable it by setting theUseJournalQueue property on the message.

Having done this, I used the syntax as described on MSDN Documentation.

            MessageQueue queue =new MessageQueue(".\\test\\journal$");

To my surprise, I got an exception stating "A workgroup installation computer does not support the operation." Well, it isn't really a surprise, since this syntax is for public queues and that's what the error message is also indicating. The following are the various syntaxes that did work for me. You could use either of the following based on your own preferences.  Note that the "test" in the queue path is name of the private queue that i created.

            MessageQueue queue =new MessageQueue(".\\private$\\test\\journal$");

            MessageQueue queue =new MessageQueue(".\\private$\\test;journal");

The casing for "journal" doesn't matter and you can very well specify it as "JOURNAL". So much for local private queue. I quickly tried accessing the journal queue for a remote private queue as well, and following worked for me

            MessageQueue queue =new MessageQueue("FormatName:DIRECT=OS:server\\private$\\remote;journal");

Where "server" is the remote machine name. Again, "journal" can be specified as "JOURNAL" as well. The following, though is an extension of what worked in case of local private queue, didn't work for remote private queue and I got a "Format name is invalid" exception.

            MessageQueue queue =new MessageQueue("FormatName:DIRECT=OS:punhjw30076\\private$\\remote\\journal$");


0
0
查看评论
发表评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场

svn switch解决svn服务器地址改变工作拷贝问题我的指令:

svn switch解决svn服务器地址改变工作拷贝问题 我的指令: svn sw --relocate svn://192.168.1.144/device/branches svn://192...
  • rheostat
  • rheostat
  • 2013-01-11 10:03
  • 12006

Andriod Atom x86模拟器启动报错。

用Inter Atom模式的Android模拟器启动报一下错误: emulator: ERROR: x86 emulation currently requires hardware acceler...
  • rznice
  • rznice
  • 2014-10-18 12:09
  • 67340

非root用户安装Python 三方模块

执行python setup.py install  时需要root密码 出现 running install error: can't create or remove files in ins...
  • yuan_lo
  • yuan_lo
  • 2015-09-08 12:21
  • 3372

org.apache.cxf.interceptor.Fault: The given SOAPAction ... does not match an operation

在使用
  • lmy86263
  • lmy86263
  • 2016-03-23 11:37
  • 2171

The environment variable JAVA_HOME(with the value of xxx) does not point to a valid JVM installation

电脑上的IntelliJ IDEA有段时间没用了,今天有朋友在相关文章 IntelliJ IDEA 运行你的第一个Java应用程序 中提出问题,我就打开IntelliJ IDEA看看,结果提示以下信息...
  • testcs_dn
  • testcs_dn
  • 2016-08-25 13:00
  • 5245

解决The environment variable JAVA_HOME does not point to a valid JVM installation 问题

安装Android Studio和JDK之后,打开Android Studio 提示The environment variable JAVA_HOME does not point to a val...
  • jskafkashd
  • jskafkashd
  • 2016-07-16 09:45
  • 7095

the specified jre installation does not exist 不存在指定的JRE安装

开发过程中环境只要配置好了,如果没有出现什么意外的话JRE工作环境一般是不会有问题的。the specified jre installation does not exist 这个问题也算把我这菜鸟...
  • karali
  • karali
  • 2013-03-16 00:09
  • 23902

NU1002 The dependency Microsoft.AspNet.Mvc 5.2.3 in project dotnetstarter does not support framework

NU1002 The dependency Microsoft.AspNet.Mvc 5.2.3 in project dotnetstarter does not support framework...
  • testcs_dn
  • testcs_dn
  • 2016-02-27 09:05
  • 2832

解决“service nginx does not support chkconfig”的问题?

因为这2天要安装nginx服务器,其nginx没有提供启动脚本,就想自己写一个启动脚本,但是再写完脚本的时候,想使用service启动该服务, nginx启动脚本如下: #!/bin/ba...
  • gebitan505
  • gebitan505
  • 2013-12-27 10:26
  • 11769

error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1. error C4430: missing type specifier - int assumed. Note: C++ does not support default-int ...
  • scut1135
  • scut1135
  • 2012-05-02 19:27
  • 3464
    个人资料
    • 访问:4046979次
    • 积分:44244
    • 等级:
    • 排名:第89名
    • 原创:420篇
    • 转载:612篇
    • 译文:1篇
    • 评论:218条
    最新评论