Thursday, September 27, 2007

Meeting with Piotr

We were going through the use of netcat... much simpler than i thought, and now everything is a bit more clear :)

to begin with, something was not working, probably due to a problem in the Broker! (python consumer, as i can probably recall from previous posts

so:

CONNECT
SEND
SUBSCRIBE
DISCONNECT

are the commands STOMP that can be used, having the port 6163 open in the broker

other useful commands : grep -a SEND | wc -l : count the occurences of SEND in a particular line. ( useful for when creating lots of messages. )

So, the idea for the scripts was:
1. Create a consumer:
bash> nc lxb6117 6163 < cons > someLogFile

2. Create a producer :
bash> time cat prod msgd prodend | nc lxb6117 6163 # gets the time wasted to send all this messages.

After this tests, all the others where based on the python scripts. An additional time measurer was being done by the Java files : this would count messages and time, and publish to a different topic the performance.

and now, to work.


UPDATE: also useful is the stomp protocol information: http://stomp.codehaus.org/Protocol
Note: Ctrl+alt+2 for getting the null connection string :S

No comments: