001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.jms.serverless;
023:
024: import org.jboss.logging.Logger;
025: import javax.jms.JMSException;
026: import javax.jms.Destination;
027: import javax.jms.Message;
028: import javax.jms.MessageProducer;
029:
030: /**
031: *
032: * @author Ovidiu Feodorov <ovidiu@jboss.org>
033: * @version $Revision: 57195 $ $Date: 2006-09-26 08:08:17 -0400 (Tue, 26 Sep 2006) $
034: *
035: **/
036: class MessageProducerImpl implements MessageProducer {
037:
038: private static final Logger log = Logger
039: .getLogger(MessageProducerImpl.class);
040:
041: private SessionImpl session;
042: private Destination destination;
043:
044: MessageProducerImpl(SessionImpl session, Destination destination) {
045:
046: this .session = session;
047: this .destination = destination;
048:
049: // TO_DO
050: }
051:
052: //
053: // MessageProducer INTERFACE IMPLEMENTATION
054: //
055:
056: public void setDisableMessageID(boolean value) throws JMSException {
057: throw new NotImplementedException();
058: }
059:
060: public boolean getDisableMessageID() throws JMSException {
061: throw new NotImplementedException();
062: }
063:
064: public void setDisableMessageTimestamp(boolean value)
065: throws JMSException {
066: throw new NotImplementedException();
067: }
068:
069: public boolean getDisableMessageTimestamp() throws JMSException {
070: throw new NotImplementedException();
071: }
072:
073: public void setDeliveryMode(int deliveryMode) throws JMSException {
074: throw new NotImplementedException();
075: }
076:
077: public int getDeliveryMode() throws JMSException {
078: throw new NotImplementedException();
079: }
080:
081: public void setPriority(int defaultPriority) throws JMSException {
082: throw new NotImplementedException();
083: }
084:
085: public int getPriority() throws JMSException {
086: throw new NotImplementedException();
087: }
088:
089: public void setTimeToLive(long timeToLive) throws JMSException {
090: throw new NotImplementedException();
091: }
092:
093: public long getTimeToLive() throws JMSException {
094: throw new NotImplementedException();
095: }
096:
097: public Destination getDestination() throws JMSException {
098: return destination;
099: }
100:
101: public void close() throws JMSException {
102: throw new NotImplementedException();
103: }
104:
105: public void send(Message message) throws JMSException {
106:
107: message.setJMSDestination(destination);
108: session.send(message);
109:
110: }
111:
112: public void send(Message message, int deliveryMode, int priority,
113: long timeToLive) throws JMSException {
114: throw new NotImplementedException();
115: }
116:
117: public void send(Destination destination, Message message)
118: throws JMSException {
119: throw new NotImplementedException();
120: }
121:
122: public void send(Destination destination, Message message,
123: int deliveryMode, int priority, long timeToLive)
124: throws JMSException {
125: throw new NotImplementedException();
126: }
127:
128: }
|