How to Send a Message to an Apache ActiveMQ Topic with EiffelStudio

class 
  ACTIVEMQ_SAMPLE

create
  make

feature

  make
    local
      socket: NETWORK_STREAM_SOCKET

    do
      create socket.make_client_by_port (61613, "localhost")

      socket.connect

      socket.put_string ("CONNECT%N%N%U")

      socket.put_string ("SEND%Ndestination:/topic/SampleTopic%N%NSimples Assim%U")

      socket.put_string ("DISCONNECT%N%N%U")

      socket.close
    end
  
end

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s