allows for the specifying of ActiveMQ specific connection headers

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@360111 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2005-12-30 15:55:20 +00:00
parent 3f574b04fe
commit eac597346c
1 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,7 @@ import org.apache.activemq.command.ConnectionInfo;
import org.apache.activemq.command.ProducerInfo;
import org.apache.activemq.command.Response;
import org.apache.activemq.command.SessionInfo;
import org.apache.activemq.util.IntrospectionSupport;
class Connect implements StompCommand {
private HeaderParser headerParser = new HeaderParser();
@ -45,6 +46,9 @@ class Connect implements StompCommand {
String clientId = headers.getProperty(Stomp.Headers.Connect.CLIENT_ID);
final ConnectionInfo connectionInfo = new ConnectionInfo();
IntrospectionSupport.setProperties(connectionInfo, headers, "activemq.");
connectionInfo.setConnectionId(format.getConnectionId());
if( clientId!=null )
connectionInfo.setClientId(clientId);