trim the string used to get the sequence id

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@453176 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2006-10-05 10:13:23 +00:00
parent a3cd7da9c1
commit 374971febe
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ abstract public class ActiveMQTempDestination extends ActiveMQDestination {
if( !isComposite() ) { if( !isComposite() ) {
// Parse off the sequenceId off the end. // Parse off the sequenceId off the end.
int p = this.physicalName.lastIndexOf(":"); int p = this.physicalName.lastIndexOf(":");
sequenceId = Integer.parseInt(this.physicalName.substring(p+1)); sequenceId = Integer.parseInt(this.physicalName.substring(p+1).trim());
// The rest should be the connection id. // The rest should be the connection id.
connectionId = this.physicalName.substring(0,p); connectionId = this.physicalName.substring(0,p);
} }