队列同步(Queue synchronization)
我正在使用Java rabbitmq API。 这是我的应用程序的样子:
发布者
A
将作业发送到Q1
,然后许多消费者B
完成工作并创建新作业并将其发送到Q2
,其中许多消费者C
完成工作。我想确保没有重复的作业发送到
Q2
,我该如何实现?请记住两种情况:
- 在将工作发送到
Q2
但在向Q1
确认他已完成工作之前B
崩溃- 在向
Q1
发送确认但在将作业发送到Q2
之前B
崩溃I am working with Java rabbitmq API. This how my app looks like:
Publisher
A
sends jobs toQ1
, then many consumersB
do the job and create new job and send it toQ2
, where many consumerC
do the job.I want to make sure that no duplicated jobs are sent to
Q2
, how can I achieve this?Take in mind two scenarios:
B
crash after sending job toQ2
but before sending acknowledgment toQ1
that he completed the jobB
crash after sending acknowledgment toQ1
but before sending job toQ2
原文:https://stackoverflow.com/questions/39445887
最满意答案
在我的情况下,没有C:\ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ CONFIG \ machine.config文件。 只有machine.config.default。 所以我复制它并重命名为machine.config。 工作正常 :)
Using commentary from above from @leshy84 the log files showed Error 0x80131902: Failed to run per-user mode.
Researching that then pointed me to http://social.msdn.microsoft.com/Forums/vstudio/en-US/1220584d-2576-4d64-8359-a946ca208041/cant-install-vs-2012-on-win7-enterprise?forum=vssetup and what worked for me was
- Remove .Net 3.5 and 4.0 from Programs and Features
- Reboot
- Re-add .Net 3.5/4
- Reboot
- Install Update 1
相关问答
更多-
为了完整, 关闭并重新打开Visual Studio为我工作后,我改变了时区,并得到了与你一样的错误。 Just to be complete, Closing and reopening Visual Studio worked for me after I had changed the time zone and was getting the same errors as you.
-
我对这个问题的解决方案的第一个猜测是将用户访问控制设置为最低值。我发现它适用于我。 UPDATE :- I have found these in AppData\Local\ dd_vs_community_20141222103227_097_vc_compilercore86res.log MSI (s) (EC:D0) [10:33:13:227]: Executing op: ActionStart(Name=CreateShortcuts,Description=Creating shortcu ...
-
有一个名为Export Extensions的扩展 ,用于创建cmd文件,您可以在第二台PC上运行,如果它可以在visual studio库中找到所有下载链接,它将再次下载/安装所有扩展。 此扩展提供了将Visual Studio Extensions的当前列表打包到CMD文件中的功能。 稍后,您只需执行该cmd文件即可在全新安装和其他计算机上下载并安装相同的扩展列表。 安装扩展 转到工具 - >导出扩展 选择CMD脚本的名称和位置 点击“保存” There is an extension called E ...
-
最低要求是基于您尝试安装的Express版本: Express for Web (Web sites and HTML5 applications) - Windows 7 SP1 (With IE 10) Express for Windows (Windows 8 Apps) - Windows 8.1 Express for Windows Desktop (Windows Programs) - Windows 7 SP1 (With IE 10) Express for Windows Phone ...
-
目前尚不清楚从哪里获取您的图像(visualstudio.com 或您的MSDN订阅)。 尽管如此,这两个站点都包含Visual Studio的图像下载,包括Update 4.您可以直接在visualstudio.com下载页面上或在MSDN订阅的下载区域中看到它。 It is not clear where do you got your image from (visualstudio.com or from your MSDN subscription). Nevertheless, both sit ...
-
在我的情况下,没有C:\ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ CONFIG \ machine.config文件。 只有machine.config.default。 所以我复制它并重命名为machine.config。 工作正常 :) Using commentary from above from @leshy84 the log files showed Error 0x80131902: Failed to run per-user ...
-
事实证明,问题是我已经安装了Redgate Tools的.NET Reflector试用版。 试用期满与我安装Update 1一致。.NET Reflector抛出了NullReferenceException ,从而导致Visual Studio崩溃。 解决方案很简单:禁用或卸载.NET Reflector扩展。 The problem, it turns out, was that I had installed a trial version of Redgate Tools' .NET Reflec ...
-
这是CUDA 6.0 Release Candidate,它应该支持2013年,现已推出,今年2月发布。 https://developer.nvidia.com/cuda-toolkit 注意 :看起来此版本不支持VS 2013(VC12)编译器。 RC的下一个版本。 下一个CUDA版本将支持VC12编译器,今年夏天可以使用候选版本 来源: https : //devtalk.nvidia.com/default/topic/622306/visual-studio-2013-and-nsight/?of ...
-
如果在“关于”对话框中看不到更新信息(例如,版本12.0.21005.1 REL),则表示您使用的是RTM版本的VS 2013,没有任何更新。 不过,您可以直接更新到第5版。 If you see no update information in the About dialog (e.g. Version 12.0.21005.1 REL) it means you are using the RTM version of VS 2013 without any updates. You can upda ...
-
要将TFS 2013与Visual Studio 2010 Service Pack 1一起使用,您需要修补程序: Visual Studio 2010 SP1 Team Foundation Server兼容性GDR (安装在这里,本周早些时候与Visual Studio Online一起使用。请注意它不能用于“本地工作区”,只能用于服务器。) To use TFS 2013 with Visual Studio 2010 Service Pack 1 you need the patch: Visual ...