org.exolab.jms.config
Class ServerConfiguration

java.lang.Object
  |
  +--org.exolab.jms.config.ServerConfiguration
All Implemented Interfaces:
java.io.Serializable

public class ServerConfiguration
extends java.lang.Object
implements java.io.Serializable

This element defines items specific to the OpenJMS server. By default, OpenJMS uses an embedded JNDI server.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
ServerConfiguration()
           
 
Method Summary
 void deleteEmbeddedJNDI()
          Method deleteEmbeddedJNDI
 boolean getEmbeddedJNDI()
          Returns the value of field 'embeddedJNDI'.
 java.lang.String getHost()
          Returns the value of field 'host'.
 boolean hasEmbeddedJNDI()
          Method hasEmbeddedJNDI
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setEmbeddedJNDI(boolean embeddedJNDI)
          Sets the value of field 'embeddedJNDI'.
 void setHost(java.lang.String host)
          Sets the value of field 'host'.
static ServerConfiguration unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerConfiguration

public ServerConfiguration()
Method Detail

deleteEmbeddedJNDI

public void deleteEmbeddedJNDI()
Method deleteEmbeddedJNDI

getEmbeddedJNDI

public boolean getEmbeddedJNDI()
Returns the value of field 'embeddedJNDI'. The field 'embeddedJNDI' has the following description: This specifies whether to use an embedded (or internal) JNDI provider, or an external one. If false, then the JndiConfiguration element is relevant. For an embedded JNDI, the JndiConfiguration element will be populated with values.
Returns:
the value of field 'embeddedJNDI'.

getHost

public java.lang.String getHost()
Returns the value of field 'host'. The field 'host' has the following description: The host address of the OpenJMS server. This will typically be 'localhost'. If the host machine has multiple NICs, then the host will need to be specified.
Returns:
the value of field 'host'.

hasEmbeddedJNDI

public boolean hasEmbeddedJNDI()
Method hasEmbeddedJNDI

isValid

public boolean isValid()
Method isValid

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal
Parameters:
out -  

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal
Parameters:
handler -  

setEmbeddedJNDI

public void setEmbeddedJNDI(boolean embeddedJNDI)
Sets the value of field 'embeddedJNDI'. The field 'embeddedJNDI' has the following description: This specifies whether to use an embedded (or internal) JNDI provider, or an external one. If false, then the JndiConfiguration element is relevant. For an embedded JNDI, the JndiConfiguration element will be populated with values.
Parameters:
embeddedJNDI - the value of field 'embeddedJNDI'.

setHost

public void setHost(java.lang.String host)
Sets the value of field 'host'. The field 'host' has the following description: The host address of the OpenJMS server. This will typically be 'localhost'. If the host machine has multiple NICs, then the host will need to be specified.
Parameters:
host - the value of field 'host'.

unmarshal

public static ServerConfiguration unmarshal(java.io.Reader reader)
                                     throws org.exolab.castor.xml.MarshalException,
                                            org.exolab.castor.xml.ValidationException
Method unmarshal
Parameters:
reader -  

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.