buglabs/bugswarm-connector — Issue #30: Issues connecting consumer with client library
Author: barberdt
Created: 2011-11-14 16:11:43+00:00
State: open

Using the client library, I am following the workflow for connecting and using a consumer based on your test code (http://goo.gl/pTYtf). Here is the way I do so.

Main method: (Creates a consumer object, passing in the necessary parameters for opening a connection. Calls consume() on that consumer)
https://gist.github.com/82a978ac3ef580704dd9

Consumer: (Has its consume() method called by the main method)
https://gist.github.com/21e64cb88875d360075c

My console output:

"Database Type: sqlite
Driver Manager URL: org.sqlite.JDBC
Test print 1
Test print 3
Test print 4
Test print 2
6c0e <-- Reader exited"

As far as I can see, both from this output and from monitoring the MUC, no connection is made and the resource never connects to the swarm. Am I following the correct workflow for connecting a consumer?