@Override
    public void sendInfo(String matricNum, String content) {
        Connection queueConnection = null;
        Session session = null;
        MapMessage message = null;
        MessageProducer producer = null;
        
        try {
            queueConnection = queueConnectionFactory.createConnection();
            session = queueConnection.createSession(false, Session.AUTO_ACKNOWLEDGE);
            queueConnection.start();
            
            producer = session.createProducer(queue);
            message = session.createMapMessage();
            message.setString("matricNum", matricNum);
            message.setString("content", content);
            
            producer.send(message);
        } catch (Exception e) {
            System.err.println("AMSClient: Exception caught: " + e.toString());
        } finally {
            if (queueConnection != null) {
                try {
                    queueConnection.close();
                } catch (Exception e) {
                    System.out.println("AMSClient: Excpetion caught: " + e.toString());
                }
            }
        }
    }