-
Notifications
You must be signed in to change notification settings - Fork 4
Client API
sskhiri edited this page Mar 12, 2012
·
19 revisions
The client API is at the boundaries of RoQ and let client caller send messages to queues.
IRoQConnectionFactory factory = new RoQConnectionFactory();
IRoQConnection connection = this.factory.createRoQConnection("logical_queue_name");
connection.open();
//2. Creating the publisher and sending message
IRoQPublisher publisher = this.connection.createPublisher();
publisher.sendMessage("sabri".getBytes(), "hello".getBytes()
The architecture is shown by the Figure below.

The close method on the RoQConnection will stop the PublisherConnectionManager thread.