You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by BillWitt <bw...@emsystems.com> on 2009/07/23 23:16:34 UTC
C# Client Access
I am trying to access ActiveMQ from a C# client application. I am also using
the Apache.Nms library to help me out with that.
I've configured the broker by adding the following to the activemq.xml file:
<transportConnector name="http" uri="http://localhost:8080" />
But I am unable to connect to the broker and receive a
NMSConnectionException with a message of "The transport http is not
supported.". Code is as follows:
Uri uri = new Uri("activemq:http://localhost:8080/");
IConnectionFactory factory =
NMSConnectionFactory.CreateConnectionFactory(uri);
using (IConnection connection = factory.CreateConnection())
What am I doing wrong? Thanks.
--
View this message in context: http://www.nabble.com/C--Client-Access-tp24634739p24634739.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
RE: C# Client Access
Posted by Mark Pollack <Ma...@springsource.com>.
Try tcp://localhost:61616 which is the default connection string to connect to the broker...
Mark
-----Original Message-----
From: BillWitt [mailto:bwitt@emsystems.com]
Sent: Thursday, July 23, 2009 5:17 PM
To: dev@activemq.apache.org
Subject: C# Client Access
I am trying to access ActiveMQ from a C# client application. I am also using
the Apache.Nms library to help me out with that.
I've configured the broker by adding the following to the activemq.xml file:
<transportConnector name="http" uri="http://localhost:8080" />
But I am unable to connect to the broker and receive a
NMSConnectionException with a message of "The transport http is not
supported.". Code is as follows:
Uri uri = new Uri("activemq:http://localhost:8080/");
IConnectionFactory factory =
NMSConnectionFactory.CreateConnectionFactory(uri);
using (IConnection connection = factory.CreateConnection())
What am I doing wrong? Thanks.
--
View this message in context: http://www.nabble.com/C--Client-Access-tp24634739p24634739.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4271 (20090723) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4271 (20090723) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
Re: C# Client Access
Posted by Timothy Bish <ta...@gmail.com>.
On Thu, 2009-07-23 at 14:16 -0700, BillWitt wrote:
> I am trying to access ActiveMQ from a C# client application. I am also using
> the Apache.Nms library to help me out with that.
>
> I've configured the broker by adding the following to the activemq.xml file:
>
> <transportConnector name="http" uri="http://localhost:8080" />
>
> But I am unable to connect to the broker and receive a
> NMSConnectionException with a message of "The transport http is not
> supported.". Code is as follows:
>
> Uri uri = new Uri("activemq:http://localhost:8080/");
> IConnectionFactory factory =
> NMSConnectionFactory.CreateConnectionFactory(uri);
> using (IConnection connection = factory.CreateConnection())
>
> What am I doing wrong? Thanks.
>
The C# client doesn't support communication with an ActiveMQ broker over
HTTP. In order to do that a new HTTP transport would need to be added
to the NMS ActiveMQ client. Currently you are limited to TCP based
protocols when using the C# client.
As always we welcome contributions to the project.
Regards
Tim.
--
Tim Bish
http://fusesource.com
http://timbish.blogspot.com/