[jboss-jira] [JBoss JIRA] (AS7-1044) Add ability to launch H2 console from AS7 console for standalone mode

Ove Ranheim (Commented) (JIRA) jira-events at lists.jboss.org
Fri Dec 16 02:38:09 EST 2011


    [ https://issues.jboss.org/browse/AS7-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651477#comment-12651477 ] 

Ove Ranheim commented on AS7-1044:
----------------------------------

I simple solution has come up for getting H2 Console to work with H2-module:

{noformat}
1. Modify modules/com/h2database/h2/main/module.xml

add     <module name="javax.servlet.api"/>

2. Create a war with a META-INF/MANIFEST.MF and WEB-INF/web.xml

3. add dependency to META-INF/MANIFEST.MF

Dependencies: com.h2database.h2

4. add the servlet definition to WEB-INF/web.xml

  <servlet>
    <servlet-name>H2Console</servlet-name>
    <servlet-class>org.h2.server.web.WebServlet</servlet-class>

    <init-param>
      <param-name>webAllowOthers</param-name>
      <param-value>true</param-value>
    </init-param>

    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>H2Console</servlet-name>
    <url-pattern>/h2/*</url-pattern>
  </servlet-mapping>
{noformat}

The only required step to get AS7 compatible with H2 Console is to add the servlet.api module reference to h2.
                
> Add ability to launch H2 console from AS7 console for standalone mode
> ---------------------------------------------------------------------
>
>                 Key: AS7-1044
>                 URL: https://issues.jboss.org/browse/AS7-1044
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: Console, Domain Management
>            Reporter: Pete Muir
>            Assignee: Heiko Braun
>            Priority: Minor
>             Fix For: Open To Community
>
>
> See http://www.h2database.com/html/tutorial.html#tutorial_starting_h2_console for the console.
> Add ability to easily access this for the H2 datasources.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list