资源简介
NMSPublishSubscribe.zip

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Apache.NMS;
using Apache.NMS.ActiveMQ;
namespace Publish
{
class Program
{
static void Main(string[] args)
{
//Create the Connection Factory
IConnectionFactory factory = new ConnectionFactory(“tcp://localhost:61616/“);
using (IConnection connection = factory.CreateConnection())
{
//Create the Session
using (ISession session = connection.CreateSession())
{
//Create the Producer for the topic/queue
IMessageProducer prod = session.CreateProducer(
new Apache.NMS.ActiveMQ.Commands.ActiveMQTopic(“testing“));
//Send Messages
int i = 0;
while (!Console.KeyAvailable)
{
ITextMessage msg = prod.CreateTextMessage();
msg.Text = i.ToString();
Console.WriteLine(“Sending: “ + msg.Text);
prod.Send(msg true 1 TimeSpan.MinValue);
System.Threading.Thread.Sleep(250);
i++;
}
}
}
Console.ReadLine();
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2009-05-29 22:14 NMSPublishSubscribe\
文件 1392 2009-05-29 22:17 NMSPublishSubscribe\NMSPublishSubscribe.sln
文件 22528 2009-06-01 11:07 NMSPublishSubscribe\NMSPublishSubscribe.suo
目录 0 2009-05-31 08:44 NMSPublishSubscribe\Publish\
目录 0 2009-05-29 22:14 NMSPublishSubscribe\Publish\bin\
目录 0 2009-05-29 22:25 NMSPublishSubscribe\Publish\bin\Debug\
文件 258048 2009-04-16 16:26 NMSPublishSubscribe\Publish\bin\Debug\Apache.NMS.ActiveMQ.dll
文件 85008 2009-04-16 16:26 NMSPublishSubscribe\Publish\bin\Debug\Apache.NMS.ActiveMQ.xm
文件 40960 2009-04-16 16:25 NMSPublishSubscribe\Publish\bin\Debug\Apache.NMS.dll
文件 5632 2009-05-31 09:41 NMSPublishSubscribe\Publish\bin\Debug\Publish.exe
文件 13824 2009-05-31 09:41 NMSPublishSubscribe\Publish\bin\Debug\Publish.pdb
文件 14328 2009-05-31 09:51 NMSPublishSubscribe\Publish\bin\Debug\Publish.vshost.exe
文件 490 2007-07-21 02:33 NMSPublishSubscribe\Publish\bin\Debug\Publish.vshost.exe.manifest
文件 1419 2009-05-31 08:44 NMSPublishSubscribe\Publish\Program.cs
目录 0 2009-05-29 22:14 NMSPublishSubscribe\Publish\Properties\
文件 1436 2009-05-29 22:14 NMSPublishSubscribe\Publish\Properties\AssemblyInfo.cs
文件 3001 2009-05-29 22:17 NMSPublishSubscribe\Publish\Publish.csproj
目录 0 2009-05-29 22:42 NMSPublishSubscribe\Subscribe\
目录 0 2009-05-29 22:14 NMSPublishSubscribe\Subscribe\bin\
目录 0 2009-05-29 22:25 NMSPublishSubscribe\Subscribe\bin\Debug\
文件 258048 2009-04-16 16:26 NMSPublishSubscribe\Subscribe\bin\Debug\Apache.NMS.ActiveMQ.dll
文件 85008 2009-04-16 16:26 NMSPublishSubscribe\Subscribe\bin\Debug\Apache.NMS.ActiveMQ.xm
文件 40960 2009-04-16 16:25 NMSPublishSubscribe\Subscribe\bin\Debug\Apache.NMS.dll
文件 5632 2009-05-29 22:42 NMSPublishSubscribe\Subscribe\bin\Debug\Subscribe.exe
文件 13824 2009-05-29 22:42 NMSPublishSubscribe\Subscribe\bin\Debug\Subscribe.pdb
文件 14328 2009-06-01 09:42 NMSPublishSubscribe\Subscribe\bin\Debug\Subscribe.vshost.exe
文件 490 2007-07-21 02:33 NMSPublishSubscribe\Subscribe\bin\Debug\Subscribe.vshost.exe.manifest
文件 1296 2009-05-29 22:42 NMSPublishSubscribe\Subscribe\Program.cs
目录 0 2009-05-29 22:14 NMSPublishSubscribe\Subscribe\Properties\
文件 1440 2009-05-29 22:14 NMSPublishSubscribe\Subscribe\Properties\AssemblyInfo.cs
文件 3005 2009-05-29 22:17 NMSPublishSubscribe\Subscribe\Subscribe.csproj
............此处省略0个文件信息
- 上一篇:开发人员自测点检表
- 下一篇:NX9VS2012_vs_files
相关资源
- PID_AutoTune_v0.rar
- vspd7.2.308.zip
- 价值2k的H漫画小说系统
- Pythonamp;课堂amp;笔记(高淇amp;400;集第
- ddos压力测试工具99657
- UML建模大全
- 开源1A锂电池充电板TP4056原理图+PCB
- m1卡 ic卡可选择扇区初始化加密软件
- TSCC.exe
- FTP课程设计(服务端+客户端)
- 计算机图形学 边填充算法实现代码
- 电力系统潮流计算程序集合
- oracle数据迁移项目实施方案
- Web Api 通过文件流 文件到本地
- Visio图标-最新最全的网络通信图标库
- Spire API文档
- OpenGL参考手册
- Python中Numpy库最新教程
- SPD博士V5.3.exe
- 直流无刷电机方波驱动 stm32 例程代码
- layui后台管理模板
- 仿知乎界面小程序源代码
- 云平台-阿里云详细介绍
- photoshop经典1000例
- scratch垃圾分类源码(最终版本).sb
- IAR ARM 7.8破解
- TI CCS V5.4 安装步骤及破解文件
- 松下plc FP-XH的驱动
- 局域网硬件信息收集工具
- 加快Windows XP操作系统开机速度
评论
共有 条评论