The log file used when creating a queue causes a
problem if the queue name consist of any form of
slashes. It tries to put the log file into a
subdirectory based on the path and in doing so, fails
to create the file, thus you can never listen to the queue.
The fix is (a) don't do it that way or (b) more
reliably, do something like this in
private static File createFile(String name)
String ext = LOG_FILE_PREFIX + name +
ext = ext.replace( '\\', '.' ).replace( '/', '.' );
return new File(LOG_FILE_PATH, ext);
Log in to post a comment.