MessageParse Activity. GlueMessageParse Activity´Â TC(String) ¶Ç´Â File¿¡ ´ã±ä TC(String) ¸¦ LayoutÀ¸·Î ParseÇÏ¿© GlueMessage Instance¸¦ »ý¼ºÇÏ´Â ±â´ÉÀ»
¼öÇàÇÑ´Ù.
byte parsing ½Ã Encoding ¿ì¼±¼øÀ§´Â ´ÙÀ½°ú °°´Ù.
1. charset-name property
2. charset property
3. jvm default
Activity Property
- layout : (Çʼö) applicationContext.xmlÀÇ GlueLayoutManager bean id.
- message-id : (¼±ÅÃ) msg key. layout/{message-id}-msg.xml Âü°í ±Ù°Å.
[ default ] ctx.get("ReceiveTC")ÀÇ °ª¿¡¼ ÃßÃâÇÔ.
String s = (String)ctx.get("ReceiveTC");
String msg_id = s.substring(0, id_length);
- id-length : (¼±ÅÃ) "ReceiveTC"¿¡ ÇØ´çÇÏ´Â StringÀÇ substring ±âÁØ. message-id°¡ Á¤ÀǵǾî ÀÖ´Â °æ¿ì, id-length´Â »ç¿ëµÇÁö ¾ÊÀ½.
[ default ] : 8
- charset : (¼±ÅÃ) ParseTypeÀÌ byte ÀÏ °æ¿ì »ç¿ëµÊ. °íÁ¤°ª.
- charset-name : (¼±ÅÃ) ParseTypeÀÌ byte ÀÏ °æ¿ì »ç¿ëµÊ. µ¿Àû°ª.
¿¹Á¦
»ç¿ë ¿¹# 1
- ÃÖ¼Ò»ç¿ë
»ç¿ë ¿¹# 2
- message-id °¡ ¼ö½ÅData["ReceiveTC"] ¿¡¼ ÃßÃâÇÏ´Â °Í°ú ´Ù¸¦ °æ¿ì
»ç¿ë ¿¹# 3
- message-id °¡ ÁÖ¾îÁöÁö ¾Ê¾Æ ¼ö½ÅData["ReceiveTC"] ¿¡¼ ÃßÃâÇؾßÇÏ´Â °æ¿ì.
»ç¿ë ¿¹# 4
- charset-name »ç¿ë½Ã.. ctx.get(this.getProperty("charset-name")) ÀÇ °ªÀÌ »ç¿ëµÊ.
»ç¿ë ¿¹# 5
- charset »ç¿ë½Ã activity property value°¡ »ç¿ëµÊ.
Âü°í : applicationContext.xml
Âü°í : Java Code (Custom)
ctx.put("encoding", "UTF-8");
Âü°í : glue.properties
msg.parsing.type=byte
Âü°í : GlueConText ±¸¼º - ReceiveTC, ReceiveTCTypeÀº Çʼö.
ctx.put("ReceiveTC", "MSGFW001R10aaa seoul ");
ctx.put("ReceiveTCMsg", "MSGFW001R10aaa seoul ");
ctx.put("ReceiveTCType", "T")
//ctx.put("ReceiveTC", new File("/APP/CHAIN/MSGFW002_20130201.dat"));
//ctx.put("ReceiveTCMsg", "MSGFW002/APP/CHAIN/MSGFW002_20130201.dat");
//ctx.put("ReceiveTCType", "F")