A workgroup installation computer does not support the operation
来源:互联网 发布:淘宝找同款原理 编辑:程序博客网 时间:2024/05/17 23:59
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$");
- A workgroup installation computer does not support the operation
- Intel HAXM installation error - This computer does not support Intel Virtualization Technology (VT-x
- This EntitySet of Type 'Data.Tbl_Student' does not support the 'Add' operation.原因
- The specified JRE installation does not exist
- The specified JRE installation does not exist
- The specified JRE installation does not exist
- The specified JRE installation does not exist
- The specified JRE installation does not exist
- The specified JRE installation does not exist
- the environment variable java_home (with the value of ) does not point to a valid jvm installation
- ‘str' does not support the buffer interface
- the environment variable java_home does not point to a valid JVM installation.
- 解决The environment variable JAVA_HOME does not point to a valid JVM installation 问题
- The environment variable JAVA_HOME does not point to a valid JVM installation
- The environment variable JAVA_HOME does not point to a valid JVM installation
- A filter or servlet of the current chain does not support asynchronous operations
- Your CPU does not support required features (VT-x or SVM).This computer does not support VT-x.
- The environment variable JAVA_HOME(with the value of xxx) does not point to a valid JVM installation
- C语言写文件操作(一)
- HDU 3371 Connect the Cities
- 函数重构
- delphi idhttp访问https需要增加IdSSLIOHandlerSocketOpenSSL1
- 第六周实验报告(任务2)
- A workgroup installation computer does not support the operation
- Qt下的mapx开发
- Cannot determine whether a queue with the specified format name exists.
- 测试框架之GTest
- 学习笔记——XML Schema元素替换
- jquery的table隔行变色、复选框的选择变色
- SRM537-div1-3-PrinceXDominoes
- ALLPlayerEN 5.0 ehtrace.dll dll hijack Vulnerability
- 奋斗啊,少年!