I would be happy to contribute, assuming I manage to get this sample up and
working.

Upon running, I get this exception:

Unhandled Exception: Apache.NMS.NMSConnectionException: No
IConnectionFactory implementation found for connection URI:
activemq:tcp:/carbon:61616
  at Apache.NMS.NMSConnectionFactory.CreateConnectionFactory (System.Uri
uriProvider, System.Object[] constructorParams) [0x0002f] in
/home/me/src/mono/activemq/src/main/csharp/NMSConnectionFactory.cs:115

I created a file called nmsprovider-activemq.config and it contains...

<configuration>
<provider assembly="Apache.NMS.ActiveMQ.dll"
classFactory="Apache.NMS.ActiveMQ.ConnectionFactory"/>
</configuration>

I copied this file to bin/Debug, and inside MonoDevelop chose the "Build
Action/Embed as Resource" option.  Actually, I'm not so much a .NET
developer type, so I'm largely unfamiliar with all things .NET and may be
making a novice's mistake.  Will you provide advice?

Devin

On Mon, Aug 16, 2010 at 9:11 AM, Timothy Bish <tabish...@gmail.com> wrote:

> On Mon, 2010-08-16 at 09:08 -0500, Devin Venable wrote:
> > Those are perfect.  By the way, if you download zipped source for the
> latest
> > release (Apache.NMS-1.3.0-src.zip), those test files are not present.  It
> > would be helpful to include them and to update the apache web site (
> > http://activemq.apache.org/nms/examples.html) to show the examples also.
>
> Have a look in Apache.NMS.ActiveMQ-1.3.0-src.zip, that's where those
> tests would be packaged.  Agree that the site needs more docs and
> samples, care to contribute?  :)
>
> Regards
>
>
> >
> > On Mon, Aug 16, 2010 at 8:53 AM, Timothy Bish <tabish...@gmail.com>
> wrote:
> >
> > > On Mon, 2010-08-16 at 08:42 -0500, Devin Venable wrote:
> > > > I need to whip up some quick examples for some folks I work with who
> use
> > > the
> > > > .NET platform.  Unfortunately, there are no short examples posted on
> the
> > > > site for .NET for either the ActiveMQ or STOMP client.
> > > >
> > > > http://activemq.apache.org/nms/examples.html
> > > >
> > > >
> > > > I've been working on extracting a simple example from the unit tests
> that
> > > > come with the source, but these examples use every known feature and
> tons
> > > of
> > > > helper classes.  Can someone provide a quick 10 line or less producer
> > > > example for c#?
> > >
> > > Have you had a look at the samples in the NMS.ActiveMQ test dir:
> > >
> > >
> > >
> https://svn.apache.org/repos/asf/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/TestMain.cs
> > >
> > >
> > >
> https://svn.apache.org/repos/asf/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/TestMainAsync.cs
> > >
> > > If those aren't enough let me know what else you need covered.
> > >
> > > Regards
> > >
> > > --
> > > Tim Bish
> > >
> > > Open Source Integration: http://fusesource.com
> > > ActiveMQ in Action: http://www.manning.com/snyder/
> > >
> > > Follow me on Twitter: http://twitter.com/tabish121
> > > My Blog: http://timbish.blogspot.com/
> > >
> > >
> >
> >
>
> --
> Tim Bish
>
> Open Source Integration: http://fusesource.com
> ActiveMQ in Action: http://www.manning.com/snyder/
>
> Follow me on Twitter: http://twitter.com/tabish121
> My Blog: http://timbish.blogspot.com/
>
>


-- 
Devin Venable
Senior Software Engineer
Global Technology Partners

Reply via email to