org.jboss.messaging.integration.bootstrap
Class JBMBootstrapServer

java.lang.Object
  extended by BasicBootstrap
      extended by org.jboss.messaging.integration.bootstrap.JBMBootstrapServer

public class JBMBootstrapServer
extends 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  BeanXMLDeployer deployer
          The deployer
protected  java.util.List<KernelDeployment> deployments
          The deployments
 
Constructor Summary
JBMBootstrapServer(KernelConfig kernelConfig, java.lang.String... args)
           
JBMBootstrapServer(java.lang.String... args)
          JBoss 1.0.0 final Standalone Create a new bootstrap
 
Method Summary
 void addShutdownHook()
          Add a simple shutdown hook to stop the server.
 void bootstrap()
           
 KernelDeployment deploy(java.lang.String arg)
           
 KernelDeployment deploy(java.lang.String name, java.lang.String xml)
          Deploys a XML on the container
protected  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(KernelDeployment deployment)
          Undeploy a deployment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deployer

protected BeanXMLDeployer deployer
The deployer


deployments

protected java.util.List<KernelDeployment> 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(KernelConfig kernelConfig,
                          java.lang.String... args)
                   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

addShutdownHook

public void addShutdownHook()
Add a simple shutdown hook to stop the server.


run

public void run()

bootstrap

public void bootstrap()
               throws java.lang.Throwable
Throws:
java.lang.Throwable

undeploy

public void undeploy(KernelDeployment deployment)
              throws java.lang.Throwable
Undeploy a deployment

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

deploy

public KernelDeployment deploy(java.lang.String arg)
                        throws java.lang.Throwable
Throws:
java.lang.Throwable

deploy

public 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 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()

setProperties

public void setProperties(java.util.Properties props)


Copyright © 2006 JBoss Inc. All Rights Reserved.