请问COM+。。。。。

mccazh 2003-08-21 07:17:41
这有个COM+,是用来发信息的,可我不只怎么调用它,请指点!
我还想知道,COM+很重要吗?它是什么的干活?现在关于它的书怎么那么少啊?
using System;
using System.EnterpriseServices;
using System.Runtime.InteropServices;

namespace MSMQ1
{
[Guid("15FF2452-FA51-4914-BD60-BCD0EE3ACB38")]
public interface IQueueDemo
{
void SendMessage(string message);
}
[Guid("A444ACF6-13DE-4e01-B07D-3D558628EEE8")]
[Transaction(TransactionOption.Required)]
[InterfaceQueuing(true,Interface="IQueueDemo")]
public class MQDemo: ServicedComponent, IQueueDemo
{
public void SendMessage(string message)
{
return;
}
}
}
...全文
52 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
jennyq_zq 2003-08-21
  • 打赏
  • 举报
回复
COM+ is based on COM but providing more features like object pooling, transaction support, etc which leverage MTS, MSMQ. They are called serviced component in .Net.

You should be able to find bunchs of resource on Microsoft site.

If your client is C#,VB.Net, you can use it just as simple as refrence a .Net dll. But check out whether you need to register the service and strongname it if it is meant to be in GAC.

Here is the link for overview and examples.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconwritingservicedcomponents.asp

110,525

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧