The Artima Developer Community
Sponsored Link

Java Buzz Forum
Smoking the ActiveMQ Crack...

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brian McCallister

Posts: 1282
Nickname: frums
Registered: Sep, 2003

Brian McCallister is JustaProgrammer who thinks too much.
Smoking the ActiveMQ Crack... Posted: Jun 27, 2005 7:41 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Brian McCallister.
Original Post: Smoking the ActiveMQ Crack...
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
Latest Java Buzz Posts
Latest Java Buzz Posts by Brian McCallister
Latest Posts From Waste of Time

Advertisement

James pointed me to his code generators for binary marshalling/unmarshalling of ActiveMQ's wire protocol a while back. I finally got a chance to start beating on them. Behold the awful transition state from C# to Ruby!

 
#
# Marshalling code for Open Wire Format for ActiveMQTextMessage
#
#
# NOTE!: This file is autogenerated - do not modify!
#        if you need to make a change, please see the Groovy scripts in the
#        activemq-openwire module
#

class ActiveMQTextMessage < AbstractPacketMarshaller

  def packet_type() 
    return 35;
  end

  #public override Packet CreatePacket() {
  def create_packet()
    return ActiveMQTextMessage.new;
  end

  #public override void BuildPacket(Packet packet, DataInput dataIn)
  def build_packet(packet, data_in)
    super.build_packet(packet, data_in)

  end

  #public override void WritePacket(Packet packet, DataOutput dataOut) throws
  def write_packet(packet, data_out)
    super.writePacket(packet, data_out);

    end
  end
end

Hopefully it will finish up smoother than it has started, but I am starting to get the hang of it ;-)

Read: Smoking the ActiveMQ Crack...

Topic: [Jun 17, 2005 02:30 PDT] 14 Links Previous Topic   Next Topic Topic: [DrunkAndRetired Podcast] Episode 08 - Learning from Open Source

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use