KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > jms > Message

javax.jms
Interface Message

All Known Subinterfaces:
BytesMessage, MapMessage, ObjectMessage, StreamMessage, TextMessage
See Also:
Top Examples, Source Code, TopicSubscriber, QueueReceiver, MessageConsumer.receive(), MessageConsumer.receive(long), MessageConsumer.receiveNoWait(), MessageListener.onMessage(Message)

public void acknowledge()
                 throws JMSException
See Also:
Session.CLIENT_ACKNOWLEDGE, IllegalStateException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void clearBody()
               throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void clearProperties()
                     throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int DEFAULT_DELIVERY_MODE
See Also:
DeliveryMode.PERSISTENT
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final int DEFAULT_PRIORITY
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final long DEFAULT_TIME_TO_LIVE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean getBooleanProperty(String name)
                           throws JMSException
See Also:
MessageFormatException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public byte getByteProperty(String name)
                     throws JMSException
See Also:
MessageFormatException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public double getDoubleProperty(String name)
                         throws JMSException
See Also:
MessageFormatException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public float getFloatProperty(String name)
                       throws JMSException
See Also:
MessageFormatException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getIntProperty(String name)
                   throws JMSException
See Also:
MessageFormatException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getJMSCorrelationID()
                           throws JMSException
See Also:
setJMSCorrelationIDAsBytes(byte[]), getJMSCorrelationIDAsBytes(), setJMSCorrelationID(String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public byte[] getJMSCorrelationIDAsBytes()
                                  throws JMSException
See Also:
setJMSCorrelationIDAsBytes(byte[]), getJMSCorrelationID(), setJMSCorrelationID(String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getJMSDeliveryMode()
                       throws JMSException
See Also:
DeliveryMode, setJMSDeliveryMode(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Destination getJMSDestination()
                              throws JMSException
See Also:
setJMSDestination(Destination)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long getJMSExpiration()
                      throws JMSException
See Also:
setJMSExpiration(long)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getJMSMessageID()
                       throws JMSException
See Also:
MessageProducer.setDisableMessageID(boolean), setJMSMessageID(String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getJMSPriority()
                   throws JMSException
See Also:
setJMSPriority(int)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean getJMSRedelivered()
                          throws JMSException
See Also:
setJMSRedelivered(boolean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Destination getJMSReplyTo()
                          throws JMSException
See Also:
setJMSReplyTo(Destination)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[939]P2P JMS message
By Anonymous on 2004/09/27 13:51:23  Rate
//session is an instance of QueueSession 
 TemporaryQueue tmpQueue = session.createTemporaryQueue (  ) ; 
  
  
 .. sending msg to the TemporaryQueue 
  
  
 // waiting reply  
 MessageConsumer consumer = session.createReceiver ( tmpQueue ) ; 
  
  
 //queueConnection is instance of QueueConnection 
 queueConnection.start (  ) ; 
  
  
 Message message = consumer.receive (  ) ; 
 queueConnection.stop (  ) ; 
  
  
 ... do something with the message 
  
  
 TemporaryQueue tmpReplyQueue =  ( TemporaryQueue )  msg.getJMSReplyTo (  ) ; 
 QueueSender sender = session.createSender ( tmpReplyQueue ) ; 
  
  
 ... send the reply msg to the tmpReplyQueue ... 
 


public long getJMSTimestamp()
                     throws JMSException
See Also:
MessageProducer.setDisableMessageTimestamp(boolean), setJMSTimestamp(long)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getJMSType()
                  throws JMSException
See Also:
setJMSType(String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public long getLongProperty(String name)
                     throws JMSException
See Also:
MessageFormatException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object getObjectProperty(String name)
                         throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Enumeration getPropertyNames()
                             throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public short getShortProperty(String name)
                       throws JMSException
See Also:
MessageFormatException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String getStringProperty(String name)
                         throws JMSException
See Also:
MessageFormatException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean propertyExists(String name)
                       throws JMSException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setBooleanProperty(String name,
                               boolean value)
                        throws JMSException
See Also:
MessageNotWriteableException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setByteProperty(String name,
                            byte value)
                     throws JMSException
See Also:
MessageNotWriteableException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setDoubleProperty(String name,
                              double value)
                       throws JMSException
See Also:
MessageNotWriteableException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setFloatProperty(String name,
                             float value)
                      throws JMSException
See Also:
MessageNotWriteableException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setIntProperty(String name,
                           int value)
                    throws JMSException
See Also:
MessageNotWriteableException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setJMSCorrelationID(String correlationID)
                         throws JMSException
See Also:
setJMSCorrelationIDAsBytes(byte[]), getJMSCorrelationIDAsBytes(), getJMSCorrelationID()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setJMSCorrelationIDAsBytes(byte[] correlationID)
                                throws JMSException
See Also:
getJMSCorrelationIDAsBytes(), getJMSCorrelationID(), setJMSCorrelationID(String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setJMSDeliveryMode(int deliveryMode)
                        throws JMSException
See Also:
DeliveryMode, getJMSDeliveryMode()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setJMSDestination(Destination destination)
                       throws JMSException
See Also:
getJMSDestination()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setJMSExpiration(long expiration)
                      throws JMSException
See Also:
getJMSExpiration()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setJMSMessageID(String id)
                     throws JMSException
See Also:
getJMSMessageID()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setJMSPriority(int priority)
                    throws JMSException
See Also:
getJMSPriority()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setJMSRedelivered(boolean redelivered)
                       throws JMSException
See Also:
getJMSRedelivered()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setJMSReplyTo(Destination replyTo)
                   throws JMSException
See Also:
getJMSReplyTo()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setJMSTimestamp(long timestamp)
                     throws JMSException
See Also:
getJMSTimestamp()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setJMSType(String type)
                throws JMSException
See Also:
getJMSType()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setLongProperty(String name,
                            long value)
                     throws JMSException
See Also:
MessageNotWriteableException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setObjectProperty(String name,
                              Object value)
                       throws JMSException
See Also:
MessageNotWriteableException, MessageFormatException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setShortProperty(String name,
                             short value)
                      throws JMSException
See Also:
MessageNotWriteableException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setStringProperty(String name,
                              String value)
                       throws JMSException
See Also:
MessageNotWriteableException, IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags