javax.jms
ÀÎÅÍÆäÀ̽º TextMessage
- ¸ðµç ½´ÆÛ ÀÎÅÍÆäÀ̽º:
- Message
- public interface TextMessage
- extends Message
TextMessage
¿ÀºêÁ§Æ®¸¦ »ç¿ëÇØ,java.lang.String
¸¦ Æ÷ÇÔÇÑ ¸Þ¼¼Áö¸¦ ¼Û½ÅÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ÀÎÅÍÆäÀ̽º´Â,Message
ÀÎÅÍÆäÀ̽º¸¦ °è½ÂÇØ, ÅØ½ºÆ® ¸Þ¼¼ÁöÀÇ º»¹®À» Ãß°¡ÇÕ´Ï´Ù.
ÀÌ ¸Þ¼¼ÁöÇüÀ» Æ÷ÇÔÇÒ ¼ö ÀÖ¾ú´ø ¹è°æ¿¡´Â, XML °¡ JMS ¸Þ¼¼Áö¸¦ Æ÷ÇÔÇÑ ¸ðµç Á¾·ùÀÇ ³»¿ëÀ» Ç¥ÇöÇÏ´Â ÀϹÝÀûÀÎ ±â±¸°¡ µÉ °ÍÀÌ´Ù¶ó´Â Àü¸ÁÀÌ ÀÖ½À´Ï´Ù.
Ŭ¶óÀÌ¾ðÆ®°¡ TextMessage
¸¦ ¼ö½ÅÇÒ ¶§, À̰ÍÀº Àо Àü¿ë ¸ðµå°¡ µË´Ï´Ù. ÀÌ ½ÃÁ¡¿¡¼ Ŭ¶óÀÌ¾ðÆ®°¡ ¸Þ¼¼ÁöÀÇ ±âÀÔÀ» ½ÃµµÇϸé(ÀÚ),MessageNotWriteableException
°¡ ½½·Î¿ì µË´Ï´Ù. clearBody
°¡ ºÒ·Á °¡¸é(ÀÚ), ¸Þ¼¼ÁöÀÇ µ¶ÇØ¿Í ±âÀÔÀÇ ¾çÂÊ ¸ðµÎ°¡ °¡´ÉÇÏ°Ô µË´Ï´Ù.
- °ü·Ã Ç׸ñ:
Session.createTextMessage()
,
Session.createTextMessage(String)
,
BytesMessage
,
MapMessage
,
Message
,
ObjectMessage
,
StreamMessage
,
String
¸Þ¼ÒµåÀÇ °³¿ä |
java.lang.String |
getText ()
¸Þ¼¼ÁöÀÇ µ¥ÀÌÅ͸¦ Æ÷ÇÔÇÑ Ä³¸¯ÅÍ ¶óÀÎÀ» ÃëµæÇÕ´Ï´Ù. |
void |
setText (java.lang.String string)
¸Þ¼¼ÁöÀÇ µ¥ÀÌÅ͸¦ Æ÷ÇÔÇÑ Ä³¸¯ÅÍ ¶óÀÎÀ» ¼³Á¤ÇÕ´Ï´Ù. |
ÀÎÅÍÆäÀ̽º javax.jms. Message ·ÎºÎÅÍ °è½ÂÇÑ ¸Þ¼Òµå |
acknowledge , clearBody , clearProperties , getBooleanProperty , getByteProperty , getDoubleProperty , getFloatProperty , getIntProperty , getJMSCorrelationID , getJMSCorrelationIDAsBytes , getJMSDeliveryMode , getJMSDestination , getJMSExpiration , getJMSMessageID , getJMSPriority , getJMSRedelivered , getJMSReplyTo , getJMSTimestamp , getJMSType , getLongProperty , getObjectProperty , getPropertyNames , getShortProperty , getStringProperty , propertyExists , setBooleanProperty , setByteProperty , setDoubleProperty , setFloatProperty , setIntProperty , setJMSCorrelationID , setJMSCorrelationIDAsBytes , setJMSDeliveryMode , setJMSDestination , setJMSExpiration , setJMSMessageID , setJMSPriority , setJMSRedelivered , setJMSReplyTo , setJMSTimestamp , setJMSType , setLongProperty , setObjectProperty , setShortProperty , setStringProperty |
setText
public void setText(java.lang.String string)
throws JMSException
- ¸Þ¼¼ÁöÀÇ µ¥ÀÌÅ͸¦ Æ÷ÇÔÇÑ Ä³¸¯ÅÍ ¶óÀÎÀ» ¼³Á¤ÇÕ´Ï´Ù.
- ÆÄ¶ó¹ÌÅÍ:
string
- ¸Þ¼¼ÁöÀÇ µ¥ÀÌÅ͸¦ Æ÷ÇÔÇÑ String
- ¿¹¿Ü:
JMSException
- ³»ºÎ ¿¡·¯¸¦ À§Çؼ(¶§¹®¿¡) JMS ÇÁ·Î¹ÙÀÌ´õ°¡ ÅØ½ºÆ®ÀÇ ¼³Á¤¿¡ ½ÇÆÐÇßÀ» °æ¿ìMessageNotWriteableException
- ¸Þ¼¼Áö°¡ Àо Àü¿ë ¸ðµåÀÇ °æ¿ì
getText
public java.lang.String getText()
throws JMSException
- ¸Þ¼¼ÁöÀÇ µ¥ÀÌÅ͸¦ Æ÷ÇÔÇÑ Ä³¸¯ÅÍ ¶óÀÎÀ» ÃëµæÇÕ´Ï´Ù. µðÆúƮġ´Â null ÀÔ´Ï´Ù.
- ¹Ýȯ°ª:
- ¸Þ¼¼ÁöÀÇ µ¥ÀÌÅ͸¦ Æ÷ÇÔÇÑ
String
- ¿¹¿Ü:
JMSException
- ³»ºÎ ¿¡·¯¸¦ À§Çؼ(¶§¹®¿¡) JMS ÇÁ·Î¹ÙÀÌ´õ°¡ ÅØ½ºÆ®ÀÇ Ãëµæ¿¡ ½ÇÆÐÇßÀ» °æ¿ì
Copyright 2002 Sun Microsystems, Inc. All rights reserved.
»ç¿ë¿¡´Â»ç¿ë Çã¶ô °è¾àÀÌ Àû¿ëµË´Ï´Ù.