Hi Alex, You can have a look at another example of embedding Qpid Broker-J [1] where broker is started using dependencies to broker-core and amqp protocol plugins. This approach is handy when you do not need logback dependencies and have already logging settings configured in your test framework.
The Qpid Broker-J system tests have been re-factored to follow similar approach. For example, you have a look at implementation [2] of BrokerAdmin which is started QpidTestRunner [3]. Kind Regards, Alex [1] https://cwiki.apache.org/confluence/display/qpid/How+to+embed+Qpid+Broker-J [2] https://github.com/apache/qpid-broker-j/blob/master/systests/systests-utils/src/main/java/org/apache/qpid/tests/utils/EmbeddedBrokerPerClassAdminImpl.java [3] https://github.com/apache/qpid-broker-j/blob/master/systests/systests-utils/src/main/java/org/apache/qpid/tests/utils/QpidTestRunner.java On Sun, 9 Dec 2018 at 13:02, Alex O'Ree <alexo...@apache.org> wrote: > > Never mind, found it. For reference > https://issues.apache.org/jira/browse/QPID-7486 > see commit 0965d3d26b2598b2591032408cd6a490437b7383 Nov 2, 2016 > > On Sat, Dec 8, 2018 at 9:03 PM Alex O'Ree <alexo...@apache.org> wrote: > > > I use qpid during integration tests and basically fire up an embedded qpid > > server programmatically, then run my tests, then stop the server. I have a > > working setup for 6.0.0 and was attempt to update to a 7.x version and > > found that the entry point i was using has been changed, specifically the > > 'Broker' and 'BrokerOptions' classes below. Is there an eqivalent class > > for the 7.x versions? > > Also, is there a unit test or something similar in the qpid code base that > > i could track or follow for do something similar for future versions? > > > > Here's my old code for v6 > > import org.apache.qpid.server.Broker; > > import org.apache.qpid.server.BrokerOptions; > > > > org.apache.qpid.server.Broker broker = new Broker(); > > BrokerOptions options = new BrokerOptions(); > > options.setOverwriteConfigurationStore(true); > > options.setStartupLoggedToSystemOut(true); > > String file=new File(".").getAbsolutePath() + File.separator + > > "src/test/resources/config.json"; > > System.out.println(file); > > options.setConfigurationStoreLocation(file); > > broker.startup(options); > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org