example.message.router/src/example/message/SocketListener.java
public void registerForEvents(final BundleContext context)
        {
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            final String[] topics = {RemoteConstants.TOPIC_MESSAGE_SEND_UNREACHABLE_DEST, 
                RemoteConstants.TOPIC_MESSAGE_RECEIVED_UNREACHABLE_DEST };
            props.put(EventConstants.EVENT_TOPIC, topics);
            
            m_Registration = context.registerService(EventHandler.class, this, props);
        }
/**
         * Method that registers the event handler for send/receive unreachable events.
         * 
         * @param context
         *      Bundle context to register the event handler with.
         */
Method that registers the event handler for send/receive unreachable events.

@param context
Bundle context to register the event handler with.
Method that registers the event handler for send / receive unreachable events . @param context Bundle context to register the event handler with .
public void registerForEvents(final BundleContext context)
        {
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            final String[] topics = {RemoteConstants.TOPIC_MESSAGE_SEND_UNREACHABLE_DEST, 
                RemoteConstants.TOPIC_MESSAGE_RECEIVED_UNREACHABLE_DEST };
            props.put(EventConstants.EVENT_TOPIC, topics);
            m_Registration = context.registerService(EventHandler.class, this, props);
        }
public void registerForEvents ( final BundleContext context ) { final Dictionary < String , Object > props = new Hashtable < String , Object > ( ) ; final String [ ] topics = { RemoteConstants . TOPIC_MESSAGE_SEND_UNREACHABLE_DEST , RemoteConstants . TOPIC_MESSAGE_RECEIVED_UNREACHABLE_DEST } ; props . put ( EventConstants . EVENT_TOPIC , topics ) ; m_Registration = context . registerService ( EventHandler . class , this , props ) ; }
Method that registers the event handler for send/receive unreachable events.
Method that registers the event handler for send / receive unreachable events .