Class GeronimoUtils


  • public class GeronimoUtils
    extends Object
    Various utility methods such as checking is Geronimo is started.
    • Constructor Detail

      • GeronimoUtils

        public GeronimoUtils​(Configuration configuration)
        Parameters:
        configuration - Configuration to use.
    • Method Detail

      • isGeronimoStarted

        public boolean isGeronimoStarted()
        Returns:
        true if Geronimo is fully started or false otherwise
      • getGeronimoExtraClasspathDependiesXML

        public static String getGeronimoExtraClasspathDependiesXML​(InstalledLocalContainer container)
                                                            throws IOException
        Returns the extra classpath dependencies XML for the Geronimo installed local container.
        Parameters:
        container - Geronimo installed local container.
        Returns:
        Extra classpath dependencies XML for container.
        Throws:
        IOException - If reading the JAR files in the extra classpath fail.
      • getBundleId

        public long getBundleId​(Bundle bundle)
                         throws Exception
        Parameters:
        bundle - Bundle deployable
        Returns:
        Bundle identifier
        Throws:
        Exception - if an error occurred while checking the container's state