User: kimptoc Date: 01/04/01 06:43:21 Added: src/main/javax/jms BytesMessage.java Connection.java ConnectionConsumer.java ConnectionFactory.java ConnectionMetaData.java DeliveryMode.java Destination.java ExceptionListener.java IllegalStateException.java InvalidClientIDException.java InvalidDestinationException.java InvalidSelectorException.java JMSException.java JMSSecurityException.java MapMessage.java Message.java MessageConsumer.java MessageEOFException.java MessageFormatException.java MessageListener.java MessageNotReadableException.java MessageNotWriteableException.java MessageProducer.java ObjectMessage.java Queue.java QueueBrowser.java QueueConnection.java QueueConnectionFactory.java QueueReceiver.java QueueSender.java QueueSession.java ResourceAllocationException.java ServerSession.java ServerSessionPool.java Session.java StreamMessage.java TemporaryQueue.java TemporaryTopic.java TextMessage.java Topic.java TopicConnection.java TopicConnectionFactory.java TopicPublisher.java TopicSession.java TopicSubscriber.java TransactionInProgressException.java TransactionRolledBackException.java XAConnection.java XAConnectionFactory.java XAQueueConnection.java XAQueueConnectionFactory.java XAQueueSession.java XASession.java XATopicConnection.java XATopicConnectionFactory.java XATopicSession.java package.html Log: jms interfaces - untested - but compiles... Revision Changes Path 1.1 jboss-j2ee/src/main/javax/jms/BytesMessage.java Index: BytesMessage.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface BytesMessage extends Message { public boolean readBoolean() throws JMSException; public byte readByte() throws JMSException; public int readUnsignedByte() throws JMSException; public short readShort() throws JMSException; public int readUnsignedShort() throws JMSException; public char readChar() throws JMSException; public int readInt() throws JMSException; public long readLong() throws JMSException; public float readFloat() throws JMSException; public double readDouble() throws JMSException; public String readUTF() throws JMSException; public int readBytes(byte[] value) throws JMSException; public int readBytes(byte[] value, int length) throws JMSException; public void writeBoolean(boolean value) throws JMSException; public void writeByte(byte value) throws JMSException; public void writeShort(short value) throws JMSException; public void writeChar(char value) throws JMSException; public void writeInt(int value) throws JMSException; public void writeLong(long value) throws JMSException; public void writeFloat(float value) throws JMSException; public void writeDouble(double value) throws JMSException; public void writeUTF(String value) throws JMSException; public void writeBytes(byte[] value) throws JMSException; public void writeBytes(byte[] value, int offset, int length) throws JMSException; public void writeObject(Object value) throws JMSException; public void reset() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/Connection.java Index: Connection.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * A JMS Connection is a client's active connection to its JMS provider. * It will typically allocate provider resources outside the Java virtual machine. * <p> * Connections support concurrent use. * <p> * A Connection serves several purposes: * <p> * It encapsulates an open connection with a JMS provider. It typically represents * an open TCP/IP socket between a client and a provider service daemon. * Its creation is where client authenticating takes place. * It can specify a unique client identifier. * It provides ConnectionMetaData. * It supports an optional ExceptionListener. * Due to the authentication and communication setup done when a Connection is * created, a Connection is a relatively heavy-weight JMS object. Most clients * will do all their messaging with a single Connection. Other more advanced * applications may use several Connections. JMS does not architect a reason * for using multiple connections; however, there may be operational reasons for doing so. * <p> * A JMS client typically creates a Connection; one or more Sessions; and a * number of message producers and consumers. When a Connection is created it * is in stopped mode. That means that no messages are being delivered. * <p> * It is typical to leave the Connection in stopped mode until setup is complete. * At that point the Connection's start() method is called and messages begin * arriving at the Connection's consumers. This setup convention minimizes any * client confusion that may result from asynchronous message delivery while the * client is still in the process of setting itself up. * <p> * A Connection can immediately be started and the setup can be done afterwards. * Clients that do this must be prepared to handle asynchronous message delivery * while they are still in the process of setting up. * <p> * A message producer can send messages while a Connection is stopped * * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface Connection { /** * Get the client identifier for this connection. This value is JMS Provider * specific. Either pre-configured by an administrator in a ConnectionFactory * or assigned dynamically by the application by calling setClientID method. * * @return the client identifier for this connection * @throws JMSException if JMS implementation fails to return the client ID for this Connection due to some internal error. */ public String getClientID() throws JMSException; /** * Set the client identifier for this connection. * The preferred way to assign a Client's client identifier is for it to be configured in a client-specific ConnectionFactory and transparently assigned to the Connection it creates. * <p> * Alternatively, a client can set a connection's client identifier using a provider-specific value. The facility to explicitly set a connection's client identifier is not a mechanism for overriding the identifier that has been administratively configured. It is provided for the case where no administratively specified identifier exists. If one does exist, an attempt to change it by setting it must throw a IllegalStateException. If a client explicitly does the set it must do this immediately after creating the connection and before any other action on the connection is taken. After this point, setting the client identifier is a programming error that should throw an IllegalStateException. * <p> * The purpose of client identifier is to associate a connection and its objects with a state maintained on behalf of the client by a provider. The only such state identified by JMS is that required to support durable subscriptions * <p> * If another connection with clientID is already running when this method is called, the JMS Provider should detect the duplicate id and throw InvalidClientIDException. * * @param theClientID the client identifier for this connection * @throws JMSException general exception if JMS implementation fails to set the client ID for this Connection due to some internal error. * @throws InvalidClientIDException if JMS client specifies an invalid or duplicate client id. * @throws IllegalStateException if attempting to set a connection's client identifier at the wrong time or when it has been administratively configured. */ public void setClientID(String theClientID) throws JMSException; /** * Get the meta data for this connection * * @return the meta data for this connection * @throws JMSException general exception if JMS implementation fails to get the Connection meta-data for this Connection */ public ConnectionMetaData getMetaData() throws JMSException; /** * Get the ExceptionListener for this Connection * * @return the ExceptionListener for this Connection. * @throws JMSException general exception if JMS implementation fails to get the Exception listener for this Connection. */ public ExceptionListener getExceptionListener() throws JMSException; public void setExceptionListener(ExceptionListener theListener) throws JMSException; public void start() throws JMSException; public void stop() throws JMSException; public void close() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/ConnectionConsumer.java Index: ConnectionConsumer.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface ConnectionConsumer { public ServerSessionPool getServerSessionPool() throws JMSException; public void close() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/ConnectionFactory.java Index: ConnectionFactory.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface ConnectionFactory { } 1.1 jboss-j2ee/src/main/javax/jms/ConnectionMetaData.java Index: ConnectionMetaData.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface ConnectionMetaData { public int getJMSMajorVersion() throws JMSException; public int getJMSMinorVersion() throws JMSException; public String getJMSProviderName() throws JMSException; public String getJMSVersion() throws JMSException; public java.util.Enumeration getJMSXPropertyNames() throws JMSException; public int getProviderMajorVersion() throws JMSException; public int getProviderMinorVersion() throws JMSException; public String getProviderVersion() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/DeliveryMode.java Index: DeliveryMode.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface DeliveryMode { public static final int NON_PERSISTENT = 101; public static final int PERSISTENT = 201; } 1.1 jboss-j2ee/src/main/javax/jms/Destination.java Index: Destination.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface Destination { } 1.1 jboss-j2ee/src/main/javax/jms/ExceptionListener.java Index: ExceptionListener.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface ExceptionListener { public void onException(JMSException exc); } 1.1 jboss-j2ee/src/main/javax/jms/IllegalStateException.java Index: IllegalStateException.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * This exception is thrown when a method is invoked at an illegal or * inappropriate time or if the provider is not in an appropriate state * for the requested operation. For example, this exception should be * thrown if Session.commit() is called on a non-transacted session. * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public class IllegalStateException extends JMSException { // CONSTRUCTORS ----------------------------------------------------- /** * Construct a IllegalStateException with reason and error code for exception */ public IllegalStateException(String reason, String errorCode) { super(reason,errorCode); } /** * Construct a IllegalStateException with reason and with error code defaulting to null */ public IllegalStateException(String reason) { super(reason,null); } } 1.1 jboss-j2ee/src/main/javax/jms/InvalidClientIDException.java Index: InvalidClientIDException.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * This exception must be thrown when a client attempts to set a * connection's client id to a value that is rejected by a provider. * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public class InvalidClientIDException extends JMSException { // CONSTRUCTORS ----------------------------------------------------- /** * Construct a InvalidClientIDException with reason and error code for exception */ public InvalidClientIDException(String reason, String errorCode) { super(reason,errorCode); } /** * Construct a InvalidClientIDException with reason and with error code defaulting to null */ public InvalidClientIDException(String reason) { super(reason,null); } } 1.1 jboss-j2ee/src/main/javax/jms/InvalidDestinationException.java Index: InvalidDestinationException.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * This exception must be thrown when a destination is either not understood by a provider or * is no longer valid. * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public class InvalidDestinationException extends JMSException { // CONSTRUCTORS ----------------------------------------------------- /** * Construct a InvalidDestinationException with reason and error code for exception */ public InvalidDestinationException(String reason, String errorCode) { super(reason,errorCode); } /** * Construct a InvalidDestinationException with reason and with error code defaulting to null */ public InvalidDestinationException(String reason) { super(reason,null); } } 1.1 jboss-j2ee/src/main/javax/jms/InvalidSelectorException.java Index: InvalidSelectorException.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * This exception must be thrown when a JMS client attempts to give a provider a message * selector with invalid syntax. * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public class InvalidSelectorException extends JMSException { // CONSTRUCTORS ----------------------------------------------------- /** * Construct a InvalidSelectorException with reason and error code for exception */ public InvalidSelectorException(String reason, String errorCode) { super(reason,errorCode); } /** * Construct a InvalidSelectorException with reason and with error code defaulting to null */ public InvalidSelectorException(String reason) { super(reason,null); } } 1.1 jboss-j2ee/src/main/javax/jms/JMSException.java Index: JMSException.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * This is the root class of all JMS exceptions. * * It provides following information: * * <ul> * <li>provider-specific string describing the error - This string is the standard Java exception message, and is available via getMessage(). * <li>provider-specific, string error code * <li>reference to another exception - Often a JMS exception will be the result of a lower level problem. If appropriate, this lower level exception can be linked to the JMS exception. * </ul> * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public class JMSException extends Exception { // CONSTRUCTORS ----------------------------------------------------- /** * Construct a JMSException with reason and error code for exception */ public JMSException(String reason, String errorCode) { super(reason); _errorCode = errorCode; } /** * Construct a JMSException with reason and with error code defaulting to null */ public JMSException(String reason) { this(reason,null); } // PUBLIC METHODS ----------------------------------------------------- /** Get the vendor specific error code */ public String getErrorCode() { return _errorCode; } /** Get the exception linked to this one. * ? who uses this ? */ public Exception getLinkedException() { return _linkedException; } /** set the linked exception */ public void setLinkedException(Exception linkedException) { _linkedException = linkedException; } // ATTRIBUTES ----------------------------------------------------- /** the specified error code */ private String _errorCode = null; /** a linked exception */ private Exception _linkedException; } 1.1 jboss-j2ee/src/main/javax/jms/JMSSecurityException.java Index: JMSSecurityException.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * This exception must be thrown when a provider rejects a user name/password submitted * by a client. It may also be thrown for any case where a security restriction prevents * a method from completing. * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public class JMSSecurityException extends JMSException { // CONSTRUCTORS ----------------------------------------------------- /** * Construct a JMSSecurityException with reason and error code for exception */ public JMSSecurityException(String reason, String errorCode) { super(reason,errorCode); } /** * Construct a JMSSecurityException with reason and with error code defaulting to null */ public JMSSecurityException(String reason) { super(reason,null); } } 1.1 jboss-j2ee/src/main/javax/jms/MapMessage.java Index: MapMessage.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface MapMessage extends Message { public boolean getBoolean(String name) throws JMSException; public byte getByte(String name) throws JMSException; public short getShort(String name) throws JMSException; public char getChar(String name) throws JMSException; public int getInt(String name) throws JMSException; public long getLong(String name) throws JMSException; public float getFloat(String name) throws JMSException; public double getDouble(String name) throws JMSException; public String getString(String name) throws JMSException; public byte[] getBytes(String name) throws JMSException; public Object getObject(String name) throws JMSException; public java.util.Enumeration getMapNames() throws JMSException; public void setBoolean(String name, boolean value) throws JMSException; public void setByte(String name, byte value) throws JMSException; public void setShort(String name, short value) throws JMSException; public void setChar(String name, char value) throws JMSException; public void setInt(String name, int value) throws JMSException; public void setLong(String name, long value) throws JMSException; public void setFloat(String name, float value) throws JMSException; public void setDouble(String name, double value) throws JMSException; public void setString(String name, String value) throws JMSException; public void setBytes(String name, byte[] value) throws JMSException; public void setBytes(String name, byte[] value, int offset, int length) throws JMSException; public void setObject(String name, Object value) throws JMSException; public boolean itemExists(String name) throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/Message.java Index: Message.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface Message { // CONSTANTS ---------------------------------------------------- public static final int DEFAULT_DELIVERY_MODE = DeliveryMode.PERSISTENT; public static final int DEFAULT_PRIORITY = 4; /** FIXME - is this correct - default should be unlimited ??? */ public static final long DEFAULT_TIME_TO_LIVE = 0; // METHODS ------------------------------------------------------- public String getJMSMessageID() throws JMSException; public void setJMSMessageID(String messageID) throws JMSException; public long getJMSTimestamp() throws JMSException; public void setJMSTimestamp(long timestamp) throws JMSException; public byte[] getJMSCorrelationIDAsBytes() throws JMSException; public void setJMSCorrelationIDAsBytes(byte[] correlationID) throws JMSException; public void setJMSCorrelationID(String correlationID) throws JMSException; public String getJMSCorrelationID() throws JMSException; public Destination getJMSReplyTo() throws JMSException; public void setJMSReplyTo(Destination replyTo) throws JMSException; public Destination getJMSDestination() throws JMSException; public void setJMSDestination(Destination destination) throws JMSException; public int getJMSDeliveryMode() throws JMSException; public void setJMSDeliveryMode(int deliveryMode) throws JMSException; public boolean getJMSRedelivered() throws JMSException; public void setJMSRedelivered(boolean redelivered) throws JMSException; public String getJMSType() throws JMSException; public void setJMSType(String type) throws JMSException; public long getJMSExpiration() throws JMSException; public void setJMSExpiration(long expiration) throws JMSException; public int getJMSPriority() throws JMSException; public void setJMSPriority(int priority) throws JMSException; public void clearProperties() throws JMSException; public boolean propertyExists(String name) throws JMSException; public boolean getBooleanProperty(String name) throws JMSException; public byte getByteProperty(String name) throws JMSException; public short getShortProperty(String name) throws JMSException; public int getIntProperty(String name) throws JMSException; public long getLongProperty(String name) throws JMSException; public float getFloatProperty(String name) throws JMSException; public double getDoubleProperty(String name) throws JMSException; public String getStringProperty(String name) throws JMSException; public Object getObjectProperty(String name) throws JMSException; public java.util.Enumeration getPropertyNames() throws JMSException; public void setBooleanProperty(String name, boolean value) throws JMSException; public void setShortProperty(String name, short value) throws JMSException; public void setIntProperty(String name, int value) throws JMSException; public void setLongProperty(String name, long value) throws JMSException; public void setFloatProperty(String name, float value) throws JMSException; public void setDoubleProperty(String name, double value) throws JMSException; public void setStringProperty(String name, String value) throws JMSException; public void setObjectProperty(String name, Object value) throws JMSException; public void acknowledge() throws JMSException; public void clearBody() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/MessageConsumer.java Index: MessageConsumer.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface MessageConsumer { public String getMessageSelector() throws JMSException; public MessageListener getMessageListener() throws JMSException; public void setMessageListener(MessageListener listener) throws JMSException; public Message receive() throws JMSException; public Message receive(long timeout) throws JMSException; public Message receiveNoWait() throws JMSException; public void close() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/MessageEOFException.java Index: MessageEOFException.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * This exception must be thrown when an unexpected end of stream has been reached when a * StreamMessage or BytesMessage is being read. * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public class MessageEOFException extends JMSException { // CONSTRUCTORS ----------------------------------------------------- /** * Construct a MessageEOFException with reason and error code for exception */ public MessageEOFException(String reason, String errorCode) { super(reason,errorCode); } /** * Construct a MessageEOFException with reason and with error code defaulting to null */ public MessageEOFException(String reason) { super(reason,null); } } 1.1 jboss-j2ee/src/main/javax/jms/MessageFormatException.java Index: MessageFormatException.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * This exception must be thrown when a JMS client attempts to use a data type not * supported by a message or attempts to read data in a message as the wrong type. * It must also be thrown when equivalent type errors are made with message property * values. For example, this exception must be thrown if StreamMessage.setObject() * is given an unsupported class or if StreamMessage.getShort() is used to read a * boolean value. Note that the special case of a failure caused by attempting to * read improperly formatted String data as numeric values should throw the * java.lang.NumberFormatException. * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public class MessageFormatException extends JMSException { // CONSTRUCTORS ----------------------------------------------------- /** * Construct a MessageFormatException with reason and error code for exception */ public MessageFormatException(String reason, String errorCode) { super(reason,errorCode); } /** * Construct a MessageFormatException with reason and with error code defaulting to null */ public MessageFormatException(String reason) { super(reason,null); } } 1.1 jboss-j2ee/src/main/javax/jms/MessageListener.java Index: MessageListener.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface MessageListener { public void onMessage(Message message); } 1.1 jboss-j2ee/src/main/javax/jms/MessageNotReadableException.java Index: MessageNotReadableException.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * This exception must be thrown when a JMS client attempts to read a write-only message. * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public class MessageNotReadableException extends JMSException { // CONSTRUCTORS ----------------------------------------------------- /** * Construct a MessageNotReadableException with reason and error code for exception */ public MessageNotReadableException(String reason, String errorCode) { super(reason,errorCode); } /** * Construct a MessageNotReadableException with reason and with error code defaulting to null */ public MessageNotReadableException(String reason) { super(reason,null); } } 1.1 jboss-j2ee/src/main/javax/jms/MessageNotWriteableException.java Index: MessageNotWriteableException.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * This exception must be thrown when a JMS client attempts to write to a read-only message * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public class MessageNotWriteableException extends JMSException { // CONSTRUCTORS ----------------------------------------------------- /** * Construct a MessageNotWriteableException with reason and error code for exception */ public MessageNotWriteableException(String reason, String errorCode) { super(reason,errorCode); } /** * Construct a MessageNotWriteableException with reason and with error code defaulting to null */ public MessageNotWriteableException(String reason) { super(reason,null); } } 1.1 jboss-j2ee/src/main/javax/jms/MessageProducer.java Index: MessageProducer.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface MessageProducer { public void setDisableMessageID(boolean value) throws JMSException; public boolean getDisableMessageID() throws JMSException; public void setDisableMessageTimestamp(boolean value) throws JMSException; public boolean getDisableMessageTimestamp() throws JMSException; public void setDeliveryMode(int deliveryMode) throws JMSException; public int getDeliveryMode() throws JMSException; public void setPriority(int defaultPriorityFromLow0High9) throws JMSException; public int getPriority() throws JMSException; public void setTimeToLive(long timeToLiveInMilliseconds) throws JMSException; public long getTimeToLive() throws JMSException; public void close() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/ObjectMessage.java Index: ObjectMessage.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface ObjectMessage extends Message { public void setObject(java.io.Serializable object) throws JMSException; public java.io.Serializable getObject() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/Queue.java Index: Queue.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface Queue extends Destination { public String getQueueName() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/QueueBrowser.java Index: QueueBrowser.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface QueueBrowser { public Queue getQueue() throws JMSException; public String getMessageSelector() throws JMSException; public java.util.Enumeration getEnumeration() throws JMSException; public void close() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/QueueConnection.java Index: QueueConnection.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface QueueConnection extends Connection { public QueueSession createQueueSession(boolean transacted, int acknowledgeMode) throws JMSException; public ConnectionConsumer createConnectionConsumer(Queue queue, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/QueueConnectionFactory.java Index: QueueConnectionFactory.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface QueueConnectionFactory extends ConnectionFactory { public QueueConnection createQueueConnection() throws JMSException; public QueueConnection createQueueConnection(String username, String password) throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/QueueReceiver.java Index: QueueReceiver.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface QueueReceiver extends MessageConsumer { public Queue getQueue() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/QueueSender.java Index: QueueSender.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface QueueSender extends MessageProducer { public Queue getQueue() throws JMSException; public void send(Message message) throws JMSException; public void send(Message message, int deliveryMode, int priority, long timeToLive) throws JMSException; public void send(Queue queue, Message message) throws JMSException; public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/QueueSession.java Index: QueueSession.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface QueueSession extends Session { public Queue createQueue(String queueName) throws JMSException; public QueueReceiver createReceiver(Queue queue) throws JMSException; public QueueReceiver createReceiver(Queue queue, String messageSelector) throws JMSException; public QueueSender createSender(Queue queue) throws JMSException; public QueueBrowser createBrowser(Queue queue) throws JMSException; public QueueBrowser createBrowser(Queue queue, String messageSelector) throws JMSException; public TemporaryQueue createTemporaryQueue() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/ResourceAllocationException.java Index: ResourceAllocationException.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * This exception is thrown when a provider is unable to allocate the resources * required by a method. For example, this exception should be throw when a * call to createTopicConnection fails due to lack of JMS Provider resources. * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public class ResourceAllocationException extends JMSException { // CONSTRUCTORS ----------------------------------------------------- /** * Construct a ResourceAllocationException with reason and error code for exception */ public ResourceAllocationException(String reason, String errorCode) { super(reason,errorCode); } /** * Construct a ResourceAllocationException with reason and with error code defaulting to null */ public ResourceAllocationException(String reason) { super(reason,null); } } 1.1 jboss-j2ee/src/main/javax/jms/ServerSession.java Index: ServerSession.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface ServerSession { public Session getSession() throws JMSException; public void start() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/ServerSessionPool.java Index: ServerSessionPool.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface ServerSessionPool { public ServerSession getServerSession() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/Session.java Index: Session.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface Session extends Runnable { public static final int AUTO_ACKNOWLEDGE = 30001; public static final int CLIENT_ACKNOWLEDGE = 30002; public static final int DUPS_OK_ACKNOWLEDGE = 30003; public BytesMessage createBytesMessage() throws JMSException; public MapMessage createMapMessage() throws JMSException; public Message createMessage() throws JMSException; public ObjectMessage createObjectMessage() throws JMSException; public ObjectMessage createObjectMessage(java.io.Serializable object) throws JMSException; public StreamMessage createStreamMessage() throws JMSException; public TextMessage createTextMessage() throws JMSException; public TextMessage createTextMessage(String text) throws JMSException; public boolean getTransacted() throws JMSException; public void commit() throws JMSException; public void rollback() throws JMSException; public void close() throws JMSException; public void recover() throws JMSException; public MessageListener getMessageListener() throws JMSException; public void setMessageListener(MessageListener listener) throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/StreamMessage.java Index: StreamMessage.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface StreamMessage extends Message { public boolean readBoolean() throws JMSException; public byte readByte() throws JMSException; public short readShort() throws JMSException; public char readChar() throws JMSException; public int readInt() throws JMSException; public long readLong() throws JMSException; public float readFloat() throws JMSException; public double readDouble() throws JMSException; public String readString() throws JMSException; public int readBytes(byte[] value) throws JMSException; public Object readObject() throws JMSException; public void writeBoolean(boolean value) throws JMSException; public void writeByte(byte value) throws JMSException; public void writeShort(short value) throws JMSException; public void writeChar(char value) throws JMSException; public void writeInt(int value) throws JMSException; public void writeLong(long value) throws JMSException; public void writeFloat(float value) throws JMSException; public void writeDouble(double value) throws JMSException; public void writeString(String value) throws JMSException; public void writeBytes(byte[] value) throws JMSException; public void writeBytes(byte[] value, int offset, int length) throws JMSException; public void writeObject(Object value) throws JMSException; public void reset() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/TemporaryQueue.java Index: TemporaryQueue.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface TemporaryQueue extends Queue { public void delete() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/TemporaryTopic.java Index: TemporaryTopic.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface TemporaryTopic extends Topic { public void delete() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/TextMessage.java Index: TextMessage.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface TextMessage extends Message { public void setText(String textMessageToSend) throws JMSException; public String getText() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/Topic.java Index: Topic.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface Topic extends Destination { public String getTopicName() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/TopicConnection.java Index: TopicConnection.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface TopicConnection extends Connection { public TopicSession createTopicSession(boolean transacted, int acknowledgeMode) throws JMSException; public ConnectionConsumer createConnectionConsumer(Topic topic, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException; public ConnectionConsumer createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/TopicConnectionFactory.java Index: TopicConnectionFactory.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface TopicConnectionFactory extends ConnectionFactory { public TopicConnection createTopicConnection() throws JMSException; public TopicConnection createTopicConnection(String username, String password) throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/TopicPublisher.java Index: TopicPublisher.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface TopicPublisher extends MessageProducer { public Topic getTopic() throws JMSException; public void publish(Message message) throws JMSException; public void publish(Message message, int deliveryMode, int priority, long timeToLive) throws JMSException; public void publish(Topic topic, Message message) throws JMSException; public void publish(Topic topic, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/TopicSession.java Index: TopicSession.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface TopicSession extends Session { public Topic createTopic(String topicName) throws JMSException; public TopicSubscriber createSubscriber(Topic topic) throws JMSException; public TopicSubscriber createSubscriber(Topic topic, String messageSelector, boolean noLocal) throws JMSException; public TopicSubscriber createDurableSubscriber(Topic topic, String name) throws JMSException; public TopicSubscriber createDurableSubscriber(Topic topic, String name, String messageSelector, boolean noLocal) throws JMSException; public TopicPublisher createPublisher(Topic topic) throws JMSException; public TemporaryTopic createTemporaryTopic() throws JMSException; public void unsubscribe(String name) throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/TopicSubscriber.java Index: TopicSubscriber.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface TopicSubscriber extends MessageConsumer { public Topic getTopic() throws JMSException; public boolean getNoLocal() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/TransactionInProgressException.java Index: TransactionInProgressException.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * This exception is thrown when an operation is invalid because a transaction * is in progress. For instance, attempting to call Session.commit() when a * session is part of a distributed transaction should throw a TransactionInProgressException. * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public class TransactionInProgressException extends JMSException { // CONSTRUCTORS ----------------------------------------------------- /** * Construct a TransactionInProgressException with reason and error code for exception */ public TransactionInProgressException(String reason, String errorCode) { super(reason,errorCode); } /** * Construct a TransactionInProgressException with reason and with error code defaulting to null */ public TransactionInProgressException(String reason) { super(reason,null); } } 1.1 jboss-j2ee/src/main/javax/jms/TransactionRolledBackException.java Index: TransactionRolledBackException.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * This exception must be thrown when a call to Session.commit results in a rollback of * the current transaction. * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public class TransactionRolledBackException extends JMSException { // CONSTRUCTORS ----------------------------------------------------- /** * Construct a TransactionRolledBackException with reason and error code for exception */ public TransactionRolledBackException(String reason, String errorCode) { super(reason,errorCode); } /** * Construct a TransactionRolledBackException with reason and with error code defaulting to null */ public TransactionRolledBackException(String reason) { super(reason,null); } } 1.1 jboss-j2ee/src/main/javax/jms/XAConnection.java Index: XAConnection.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface XAConnection { } 1.1 jboss-j2ee/src/main/javax/jms/XAConnectionFactory.java Index: XAConnectionFactory.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface XAConnectionFactory { } 1.1 jboss-j2ee/src/main/javax/jms/XAQueueConnection.java Index: XAQueueConnection.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface XAQueueConnection extends XAConnection, QueueConnection { public XAQueueSession createXAQueueSession() throws JMSException; public QueueSession createQueueSession(boolean transacted, int acknowledgeMode) throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/XAQueueConnectionFactory.java Index: XAQueueConnectionFactory.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface XAQueueConnectionFactory extends XAConnectionFactory, QueueConnectionFactory { public XAQueueConnection createXAQueueConnection() throws JMSException; public XAQueueConnection createXAQueueConnection(String username, String password) throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/XAQueueSession.java Index: XAQueueSession.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface XAQueueSession extends XASession { public QueueSession getQueueSession() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/XASession.java Index: XASession.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface XASession extends Session { public javax.transaction.xa.XAResource getXAResource(); public boolean getTransacted() throws JMSException; public void commit() throws JMSException; public void rollback() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/XATopicConnection.java Index: XATopicConnection.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface XATopicConnection extends XAConnection, TopicConnection { public XATopicSession createXATopicSession() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/XATopicConnectionFactory.java Index: XATopicConnectionFactory.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface XATopicConnectionFactory extends XAConnectionFactory, TopicConnectionFactory { public XATopicConnection createXATopicConnection() throws JMSException; public XATopicConnection createXATopicConnection(String username, String password) throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/XATopicSession.java Index: XATopicSession.java =================================================================== /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package javax.jms; /** * * @author Chris Kimpton ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ **/ public interface XATopicSession extends XASession { public TopicSession getTopicSession() throws JMSException; } 1.1 jboss-j2ee/src/main/javax/jms/package.html Index: package.html =================================================================== <body> This is the basic contract for the Java Message Service - what JBossMQ offers and clients can expect. </body> _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development