Using msmq (ruby 1.9 and win7)

Hi.

Been searching the forums for this and come up well almost blank.

I need to access MSMQ from Ruby, but I am quite new to the ruby/win
combination.
Is there a wrapper/client out there similar to the ones for websphere
mq, apmq etc or how do you people solve this? Interface via COM?

Does anyone have pointers to some howto/lib/client/code to get me
started here, feeling positively lost.

/S
OSX forever

Sigurdur Helgason wrote:

Hi.

Been searching the forums for this and come up well almost blank.

I need to access MSMQ from Ruby, but I am quite new to the ruby/win
combination.
Is there a wrapper/client out there similar to the ones for websphere
mq, apmq etc or how do you people solve this? Interface via COM?

Does anyone have pointers to some howto/lib/client/code to get me
started here, feeling positively lost.

Maybe ping the IronRuby folk?
-r

Sigurdur Helgason wrote:

Hi.

Been searching the forums for this and come up well almost blank.

I need to access MSMQ from Ruby, but I am quite new to the ruby/win
combination.
Is there a wrapper/client out there similar to the ones for websphere
mq, apmq etc or how do you people solve this? Interface via COM?

Does anyone have pointers to some howto/lib/client/code to get me
started here, feeling positively lost.

/S
OSX forever

I have no experience with MSMQ, but it appears that MSMQ components can
indeed be accessed via COM. A contrived example:

require ‘win32ole’

mq_info = WIN32OLE.new(‘MSMQ.MSMQQueueInfo’)
mq_info.PathName = ‘.\TestQueue’
mq_info.Label = ‘Test Queue’
mq_info.Create()

Details on Message Queuing COM Components can be found here:

http://msdn.microsoft.com/en-us/library/ms704064.aspx

Hope that helps.

David

http://rubyonwindows.blogspot.com

Thanks David and Roger.
This will indeed get me started.

/S

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs