Code example for InvocationTargetException

Methods: getMessage

0
                    cleanupMethod.invoke(connection, (Object[])null);
                } 
            } 
            catch (InvocationTargetException ex)
            { 
                logger.warn("Exception cleaning up JMS connection: " + ex.getMessage());        
            } 
            finally 
            { 
                try 
                { 
                    connection.close();
                } 
                catch (JMSException ex)
                { 
                    logger.warn("Exception closing JMS connection: " + ex.getMessage());
                } 
            } 
        } 
        catch (Exception e)
Contextual code suggestions in your IDE  Get Codota for Java