That sounds about right.

You should also be aware that it's legal to create a producer with a
null destination.  So you should really check on each send.

Regards,
Hiram

On Jan 3, 2008 9:35 AM, joe.stapleton <[EMAIL PROTECTED]> wrote:
>
> Thanks James. If I was to add an interceptor to block addConsumer/addProducer
> calls to a set of destinations unless the connection is made over a
> particular transport connector would I disrupt the broker->broker
> communication within the network of brokers?
>
> If this is feasible what would be the correct way to determine whether an
> inbound connection was being made over SSL? Something like the fragment
> below with a well named TransportConnector?
>
>         public Subscription addConsumer(ConnectionContext context,
> ConsumerInfo info) throws Exception {
>                 if (destinations.contains(info.getDestination())) {
>                         if 
> (((TransportConnector)context.getConnector()).getName().equals("ssl"))
> {
>                                 return super.addConsumer(context, info);
>                         } else {
>                                 throw new SecurityException("Not accessed 
> over ssl");
>                         }
>                 } else {
>                         return super.addConsumer(context, info);
>                 }
>         }
> --
> View this message in context: 
> http://www.nabble.com/Secure-a-subset-of-destinations-tp14435506s2354p14597771.html
>
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>



-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Open Source SOA
http://open.iona.com

Reply via email to