#5 Severe error when using Queues

open
nobody
None
5
2003-11-19
2003-11-19
Anonymous
No

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
DurableSubscriptionProxy:

private static File createFile(String name)
{
String ext = LOG_FILE_PREFIX + name +
LOG_FILE_EXTENSION;
ext = ext.replace( '\\', '.' ).replace( '/', '.' );

return new File(LOG_FILE_PATH, ext);
}

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks