example code for using rabbitmq with protobuf between java and perl