activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tsc <>
Subject Create subscriber in windows CE 5.0 platform
Date Fri, 12 Oct 2007 08:00:49 GMT

I have created a subscriber C# project which will connect to the activemq
run on a server over the internet. I'm having problem while trying to
compile the following code:

using System;
using System.Collections.Generic;
using System.Text;
using ActiveMQ;
using Spring.Messaging.Nms;

namespace TestActiveMq
    class Program
        private const string URI = "";
        private const string DESTINATION = "test.queue";

        static void Main(string[] args)
            ConnectionFactory connectionFactory = new
            NmsTemplate template = new NmsTemplate(connectionFactory);
            template.ConvertAndSend(DESTINATION, "Test");



The compiler highlighted on the "ConnectionFactory".
The error message is:
Error 1 The type 'System.Uri' is defined in an assembly that is not
referenced. You must add a reference to assembly 'System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Can anyone please tell me how to solve this problem? Thanks in advance.
p/s: I'm using VS2005, .NET framework 2.0.
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message