org.exolab.jms.config
Class Connector

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

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

This specifies the type of communication to use, between clients and the server. When a TCP connector is configured, the TcpConfiguration element is relevant. When an RMI connector is configured, the RmiConfiguration element is relevant. When an HTTP connector is configured, the HttpConfiguration element is relevant. Note that when an HTTP connector is configured, a TCP connector is implicitly configured, and the connection factories are shared between them.

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

Constructor Summary
Connector()
           
 
Method Summary
 ConnectionFactories getConnectionFactories()
          Returns the value of field 'connectionFactories'.
 SchemeType getScheme()
          Returns the value of field 'scheme'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setConnectionFactories(ConnectionFactories connectionFactories)
          Sets the value of field 'connectionFactories'.
 void setScheme(SchemeType scheme)
          Sets the value of field 'scheme'.
static Connector 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

Connector

public Connector()
Method Detail

getConnectionFactories

public ConnectionFactories getConnectionFactories()
Returns the value of field 'connectionFactories'. The field 'connectionFactories' has the following description: Connection factories are bound in JNDI by the OpenJMS server. This element defines the type and binding of factories.
Returns:
the value of field 'connectionFactories'.

getScheme

public SchemeType getScheme()
Returns the value of field 'scheme'.
Returns:
the value of field 'scheme'.

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 -  

setConnectionFactories

public void setConnectionFactories(ConnectionFactories connectionFactories)
Sets the value of field 'connectionFactories'. The field 'connectionFactories' has the following description: Connection factories are bound in JNDI by the OpenJMS server. This element defines the type and binding of factories.
Parameters:
connectionFactories - the value of field 'connectionFactories'.

setScheme

public void setScheme(SchemeType scheme)
Sets the value of field 'scheme'.
Parameters:
scheme - the value of field 'scheme'.

unmarshal

public static Connector 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.