Saturday, April 20, 2002 12:40 AM
Yes, that's right. Normally, the Swiftlet API describes Extension Swiftlets only but here is how it works:
- Extend com.swiftmq.swiftlet.LogSwiftlet
- Implement the trace stuff (look into the Swiftlet API)
- create a sys$log.jar and put it into kernel/sys$log
- put all the other log4j jars into kernel/sys$log as well
- create your own config.xml and put it into the kernel/sys$log
You can use the current config.xml as a template. Define your own properties (the log4j settings) there and use your class name in the "swiftlet" tag. Take a look into the Swiftlet API for property/entity definition.
For the shutdown hook I have to look into the code. Normally, it should work. Important to note that the shutdown hook shuts the router orderly down and writes a last checkpoint. Without that it will go through a recovery phase on startup.