org.jboss.messaging.microcontainer
Class JBMBootstrapServer

java.lang.Object
  extended by org.jboss.kernel.plugins.event.AbstractEventEmitter
      extended by org.jboss.kernel.plugins.AbstractKernelObject
          extended by org.jboss.kernel.plugins.bootstrap.AbstractBootstrap
              extended by org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap
                  extended by org.jboss.messaging.microcontainer.JBMBootstrapServer
All Implemented Interfaces:
java.lang.Runnable, org.jboss.kernel.spi.event.KernelEventEmitter, org.jboss.kernel.spi.KernelObject

public class JBMBootstrapServer
extends org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap

This is the method in which the JBM server can be deployed externall outside of jBoss. Alternatively a user can embed by using the same code as in main

Author:
Andy Taylor

Nested Class Summary
protected  class JBMBootstrapServer.Shutdown
           
 
Field Summary
protected  java.lang.String[] args
          The arguments
protected  org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer deployer
          The deployer
protected  java.util.List deployments
          The deployments
 
Fields inherited from class org.jboss.kernel.plugins.bootstrap.AbstractBootstrap
config, kernel
 
Fields inherited from class org.jboss.kernel.plugins.AbstractKernelObject
log
 
Fields inherited from class org.jboss.kernel.plugins.event.AbstractEventEmitter
eventListenerRegistry, NULL, NULL_FILTER
 
Constructor Summary
JBMBootstrapServer(java.lang.String[] args)
          JBoss 1.0.0 final Standalone Create a new bootstrap
JBMBootstrapServer(java.lang.String[] args, org.jboss.kernel.spi.config.KernelConfig kernelConfig)
           
 
Method Summary
 void bootstrap()
           
 org.jboss.kernel.spi.deployment.KernelDeployment deploy(java.lang.String arg)
           
 org.jboss.kernel.spi.deployment.KernelDeployment deploy(java.lang.String name, java.lang.String xml)
          Deploys a XML on the container
protected  org.jboss.kernel.spi.deployment.KernelDeployment deploy(java.net.URL url)
          Deploy a url
protected  java.util.Properties getConfigProperties()
           
static void main(java.lang.String[] args)
          Bootstrap the kernel from the command line
 void run()
           
 void setProperties(java.util.Properties props)
           
 void shutDown()
           
 void undeploy(org.jboss.kernel.spi.deployment.KernelDeployment deployment)
          Undeploy a deployment
 
Methods inherited from class org.jboss.kernel.plugins.bootstrap.AbstractBootstrap
getConfig, getKernel, setConfig
 
Methods inherited from class org.jboss.kernel.plugins.AbstractKernelObject
setKernel
 
Methods inherited from class org.jboss.kernel.plugins.event.AbstractEventEmitter
createEvent, fireKernelEvent, fireKernelEvent, hasListeners, nextEmitterSequence, registerListener, unregisterListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.kernel.spi.event.KernelEventEmitter
fireKernelEvent, registerListener, unregisterListener
 

Field Detail

deployer

protected org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer deployer
The deployer


deployments

protected java.util.List deployments
The deployments


args

protected java.lang.String[] args
The arguments

Constructor Detail

JBMBootstrapServer

public JBMBootstrapServer(java.lang.String[] args)
                   throws java.lang.Exception
JBoss 1.0.0 final Standalone Create a new bootstrap

Parameters:
args - the arguments
Throws:
java.lang.Exception - for any error

JBMBootstrapServer

public JBMBootstrapServer(java.lang.String[] args,
                          org.jboss.kernel.spi.config.KernelConfig kernelConfig)
                   throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Bootstrap the kernel from the command line

Parameters:
args - the command line arguments
Throws:
java.lang.Exception - for any error

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class org.jboss.kernel.plugins.bootstrap.AbstractBootstrap

bootstrap

public void bootstrap()
               throws java.lang.Throwable
Overrides:
bootstrap in class org.jboss.kernel.plugins.bootstrap.AbstractBootstrap
Throws:
java.lang.Throwable

undeploy

public void undeploy(org.jboss.kernel.spi.deployment.KernelDeployment deployment)
              throws java.lang.Throwable
Undeploy a deployment

Parameters:
deployment - the deployment
Throws:
java.lang.Throwable

deploy

public org.jboss.kernel.spi.deployment.KernelDeployment deploy(java.lang.String arg)
                                                        throws java.lang.Throwable
Throws:
java.lang.Throwable

deploy

public org.jboss.kernel.spi.deployment.KernelDeployment deploy(java.lang.String name,
                                                               java.lang.String xml)
                                                        throws java.lang.Throwable
Deploys a XML on the container

Throws:
java.lang.Throwable

deploy

protected org.jboss.kernel.spi.deployment.KernelDeployment deploy(java.net.URL url)
                                                           throws java.lang.Throwable
Deploy a url

Parameters:
url - the deployment url
Throws:
java.lang.Throwable - for any error

shutDown

public void shutDown()

getConfigProperties

protected java.util.Properties getConfigProperties()
Overrides:
getConfigProperties in class org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap

setProperties

public void setProperties(java.util.Properties props)


Copyright © 2006 JBoss Inc. All Rights Reserved.