org.apache.jackrabbit.j2ee
Class RepositoryStartupServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.jackrabbit.j2ee.RepositoryStartupServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class RepositoryStartupServlet
extends javax.servlet.http.HttpServlet

The RepositoryStartupServlet starts a jackrabbit repository and registers it to the JNDI environment and optional to the RMI registry.

See Also:
Serialized Form

Field Summary
static String INIT_PARAM_LOG4J_CONFIG
          initial param name for the log4j config properties
static String INIT_PARAM_REPOSITORY_CONFIG
          initial param name for the repository config location
static String INIT_PARAM_REPOSITORY_HOME
          initial param name for the repository home directory
static String INIT_PARAM_REPOSITORY_NAME
          initial param name for the repository name
static String INIT_PARAM_RMI_PORT
          initial param name for the rmi port
 
Constructor Summary
RepositoryStartupServlet()
           
 
Method Summary
protected  Repository createRepository(InputSource is, File homedir)
          Creates the repository for the given config and homedir.
 void destroy()
          destroy the servlet
 void init()
          Initializes the servlet
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INIT_PARAM_REPOSITORY_CONFIG

public static final String INIT_PARAM_REPOSITORY_CONFIG
initial param name for the repository config location

See Also:
Constant Field Values

INIT_PARAM_REPOSITORY_HOME

public static final String INIT_PARAM_REPOSITORY_HOME
initial param name for the repository home directory

See Also:
Constant Field Values

INIT_PARAM_REPOSITORY_NAME

public static final String INIT_PARAM_REPOSITORY_NAME
initial param name for the repository name

See Also:
Constant Field Values

INIT_PARAM_RMI_PORT

public static final String INIT_PARAM_RMI_PORT
initial param name for the rmi port

See Also:
Constant Field Values

INIT_PARAM_LOG4J_CONFIG

public static final String INIT_PARAM_LOG4J_CONFIG
initial param name for the log4j config properties

See Also:
Constant Field Values
Constructor Detail

RepositoryStartupServlet

public RepositoryStartupServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Initializes the servlet

Throws:
javax.servlet.ServletException

destroy

public void destroy()
destroy the servlet


createRepository

protected Repository createRepository(InputSource is,
                                      File homedir)
                               throws RepositoryException
Creates the repository for the given config and homedir.

Parameters:
is -
homedir -
Returns:
Throws:
RepositoryException


Copyright © 2005 . All Rights Reserved.