public void init(Object env, Map<String,Object> properties, Object applet)
    {
        super.init(env, properties, applet);
        if (this.registerUniqueApplication(BACKUP_QUEUE_NAME, BACKUP_QUEUE_TYPE) != Constants.NORMAL_RETURN)
        {
            this.free();    // Don't start this application (It's already running somewhere)
            return;
        }
        MessageManager messageManager = RemoteMessageManager.getMessageManager(this);
        BaseMessageReceiver receiver = (BaseMessageReceiver)messageManager.getMessageQueue(BACKUP_QUEUE_NAME, BACKUP_QUEUE_TYPE).getMessageReceiver();
        
        m_messageFilter = new BaseMessageFilter(BACKUP_QUEUE_NAME, BACKUP_QUEUE_TYPE, this, null);
        new BaseMessageListener(m_messageFilter)    // Listener added to filter.
        {
            public int handleMessage(BaseMessage message)
            {
                Object objMessage = message.get(MESSAGE_PARAM);
                backupTrxLog(objMessage);
                return Constants.NORMAL_RETURN;
            }
        };
        receiver.addMessageFilter(m_messageFilter);
    }
public void init ( Object env , Map < String , Object > properties , Object applet ) { super . init ( env , properties , applet ) ; if ( this . registerUniqueApplication ( BACKUP_QUEUE_NAME , BACKUP_QUEUE_TYPE ) != Constants . NORMAL_RETURN ) { this . free ( ) ; return ; } MessageManager messageManager = RemoteMessageManager . getMessageManager ( this ) ; BaseMessageReceiver receiver = ( BaseMessageReceiver ) messageManager . getMessageQueue ( BACKUP_QUEUE_NAME , BACKUP_QUEUE_TYPE ) . getMessageReceiver ( ) ; m_messageFilter = new BaseMessageFilter ( BACKUP_QUEUE_NAME , BACKUP_QUEUE_TYPE , this , null ) ; new BaseMessageListener ( m_messageFilter ) { public int handleMessage ( BaseMessage message ) { Object objMessage = message . get ( MESSAGE_PARAM ) ; backupTrxLog ( objMessage ) ; return Constants . NORMAL_RETURN ; } } ; receiver . addMessageFilter ( m_messageFilter ) ; }
Chat Screen Constructor.
@param parent Typically, you pass the BaseApplet as the parent.
@param @record and the record or GridTableModel as the parent.