Class UserIDBroker

  extended by
      extended by
All Implemented Interfaces:
Broker, Region, Service

public class UserIDBroker
extends BrokerFilter

This broker filter will append the producer's user ID into the JMSXUserID header to allow folks to know reliably who the user was who produced a message. Note that you cannot trust the client, especially if working over the internet as they can spoof headers to be anything they like.

Field Summary
Fields inherited from class
Constructor Summary
UserIDBroker(Broker next)
Method Summary
 boolean isUseAuthenticatePrincipal()
 void send(ProducerBrokerExchange producerExchange, Message messageSend)
          Send a message to the broker to using the specified destination.
 void setUseAuthenticatePrincipal(boolean useAuthenticatePrincipal)
Methods inherited from class
acknowledge, addBroker, addConnection, addConsumer, addDestination, addDestinationInfo, addProducer, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, removeBroker, removeConnection, removeConsumer, removeDestination, removeDestinationInfo, removeProducer, removeSession, removeSubscription, rollbackTransaction, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public UserIDBroker(Broker next)
Method Detail


public void send(ProducerBrokerExchange producerExchange,
                 Message messageSend)
          throws Exception
Description copied from interface: Region
Send a message to the broker to using the specified destination. The destination specified in the message does not need to match the destination the message is sent to. This is handy in case the message is being sent to a dead letter destination.

Specified by:
send in interface Region
send in class BrokerFilter
producerExchange - the environment the operation is being executed under.
Exception - TODO


public boolean isUseAuthenticatePrincipal()


public void setUseAuthenticatePrincipal(boolean useAuthenticatePrincipal)

Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.