mirror of https://github.com/apache/activemq.git
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:
parent
a3cd7da9c1
commit
374971febe
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue