Running SwiftMQ router as a service component inside JBoss. Does 3.0 provide better support to run the router as a component inside of an app server?

Andreas Mueller

Ok, with 'embedded' I meant an intra-VM JMS client plus the start/stop stuff.

These basic start/stop is already there and documented in the Swiftlet API javadoc. You must use the SwiftletManager which is located in package "com.swiftmq.swiftlet.*":

SwiftletManager.getInstance().startRouter(configFilename);
SwiftletManager.getInstance().shutdown();

The router registers a shutdown hook which is called when the JVM exits. To prevent this, set the following System property:

-Dswiftmq.shutdown.hook=false

Hope that helps.
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact