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