Sync Server °ü¸® ¾È³»¼­


»ç¿ëÀÚ ÀÚ½ÅÀÇ ¿À·ù ó¸® ³í¸®

°ÅÀÇ ¸ðµç ¿À·ù ¸Þ½ÃÁö´Â ¸Þ½ÃÁö ÅØ½ºÆ®¿¡ ³ªÅ¸³­ ¹®Á¦Á¡À» ÇØ°áÇϱâ À§ÇÑ Á¶Ä¡¸¦ ÃëÇϵµ·Ï ¿ä±¸ÇÕ´Ï´Ù. ¸ÅÀÏÀÇ µ¿±âÈ­ °ü¸®¸¦ ´Ü¼øÈ­Çϱâ À§ÇØ, ƯÁ¤ ¿À·ù ¹øÈ£°¡ ¹ßÇàµÉ ¶§ ÀÚµ¿À¸·Î Á¶Ä¡¸¦ ¼öÇàÇÏ°Ô ÇÏ´Â »ç¿ëÀÚ ÀÚ½ÅÀÇ ³í¸®¸¦ Ãß°¡Çϵµ·Ï ¼±ÅÃÇÒ ¼ö ÀÖ½À´Ï´Ù.

ÀÚµ¿ ¿À·ù 󸮸¦ Á¤ÀÇÇÏ·Á¸é ´ÙÀ½À» ¼öÇàÇϽʽÿÀ.

  1. ÅØ½ºÆ® ÆíÁý±â¸¦ »ç¿ëÇÏ¿© ÆíÁýÇÏ·Á¸é ´ÙÀ½ ÆÄÀÏÀ» ¿©½Ê½Ã¿À.
    DSYUserExits.properties
    

    ¸Þ½ÃÁö ¹øÈ£°¡ ·Î±×¿¡ ÀÛ¼ºµÉ ¶§ ÀÌ ÆÄÀÏÀº ¸Þ½ÃÁö ¹øÈ£¸¦ ½ÇÇàÇÏ´Â ·çƾÀ̳ª ÇÁ·Î±×·¥°ú ¿¬°ü½Ãŵ´Ï´Ù. ÀÌ µî·Ï Á¤º¸ ÆÄÀÏÀº ¸¹Àº ¼­·Î ´Ù¸¥ ¸Å°³º¯¼ö¸¦ Áö¿øÇÕ´Ï´Ù.

    # Formats:
    # {DSY message id}={class to execute} {environment parameters}
    # {DSY message id}={command to execute} {environment parameters}
    #   where
    #     {DSY message id}:
    #       a DSY* message id that you want to define a user exit for (such as 
    #       DSYD000E)
    #     {class to execute}:
    #       the name the Java .class to execute. This class must implement the
    #       com.ibm.mobileservices.DSYUserExitsInterface
    #     {command to execute}:
    #       the name the command to execute (such as pager.exe)
    #     {environment parameters}:
    #       a series of parameters to pass in to the class or command to execute
    #
    #   Optional command tags:
    #     <DSYID>            = the message id
    #     <DSYIDMSG>         = the message id message text
    #     <DSYIDMSG_>        = the message id message text, but all blanks are 
    #                          converted to underscores
    #     <DSYMSG>           = the message text
    #     <DSYMSG_>          = the message text, but all blanks are converted to 
    #                          underscores.
    #     <SERVER_IPADDRESS> = the server ip address (such as 9.112.19.143)
    #     <SERVER_NAME>      = the server name (such as mpauser.stl.ibm.com)
    #
    # Refer to the messages section for available DSY message ids.
    #
    # Example 1:
    #   If you wanted to have user exists for DSYD000E, you would add a line 
    #   similar to the following:
    #
    # DSYD000E=pager.exe number=5551234 id=<DSYID> msg=<DSYMSG_>
    #
    # When a DSYD000E message was issued, the pager.exe command would be executed
    # with two environment parameters would be set: number=5551234, id=DSYD000E
    # and msg=DSY message text, substituting an underscore (_) for blanks.
    #
    # Example 2:
    #   If you wanted to have a class executed when a DSYD020E was encountered,
    #   you would add a line similar to the following:
    #
    # DSYD020E=com.ibm.mobileservices.DSYUserExitsSample.class
    #
    # When a DSYD020E was issued, the com.ibm.mobileservices.DSYUserExitsSample 
    # class would be executed.
    
  2. ÆÄÀÏÀÇ ³¡¿¡¼­, ¸Þ½ÃÁö°¡ ·Î±×¿¡ ¾²¿©Áú ¶§ ¼öÇàµÇ´Â Á¶Ä¡¿Í ¸Þ½ÃÁö ¹øÈ£¸¦ ÇÑ ½ÖÀ¸·Î ¹­À¸½Ê½Ã¿À. Á¶Ä¡´Â ¸í·É(½ÇÇà ¶Ç´Â ¹èÄ¡ ÆÄÀÏ)À̰ųª Java Ŭ·¡½ºÀÏ ¼ö ÀÖ½À´Ï´Ù. ´ÙÀ½ Çü½ÄÀ» »ç¿ëÇϽʽÿÀ.
    message_number=action parameter=value
    

    ¿©±â¼­,

    message_number
    ¸Þ½ÃÁö ¹øÈ£. ºÎ·Ï A, ¿À·ù ¸Þ½ÃÁö¿¡¼­ ¸Þ½ÃÁö ÄÚµå¿Í ¿¬°üµÈ ÅØ½ºÆ®¸¦ ÂüÁ¶ÇϽʽÿÀ.

    action
    È£ÃâµÇ´Â ¸í·É ¶Ç´Â Java Ŭ·¡½º¸¦ ÂüÁ¶ÇÏ´Â ÆÄÀÏ. Java Ŭ·¡½º´Â com.ibm.mobileservices.DSYUserExitsInterface¸¦ ±¸ÇöÇØ¾ß ÇÕ´Ï´Ù.

    parameter=value
    lastname=Doe firstname=John°ú °°ÀÌ ÀÏ·ÃÀÇ ¸Å°³º¯¼ö ¼¼Æ®À̸ç, °¢ ¼¼Æ®´Â °ø¹éÀ¸·Î ±¸ºÐµË´Ï´Ù.

    ¼öÇàµÇ´Â Á¶Ä¡´Â ¿Ã¹Ù¸¥ ·çƾÀ̳ª ÇÁ·Î±×·¥¿¡ ´ëÇÑ ÂüÁ¶¿©¾ß ÇÕ´Ï´Ù.

¿¹¸¦ µé¾î, ¸Þ½ÃÁö DSYD000E°¡ ¹ßÇàµÉ ¶§ ÇØ´ç ÆäÀÌÁö¸¦ »ç¿ëÀÚ Á¾·áÇÏ´Â °ÍÀ» Æ÷ÇÔÇÏ·Á°í ÇÑ´Ù°í °¡Á¤ÇÕ´Ï´Ù. »ç¿ëÀÚ ÆäÀÌÀú¿¡ ÀüÈ­¸¦ °Å´Â pager.exe¶ó°í ÇÏ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇϰí, ¸Å°³º¯¼ö·Î¼­ ÆäÀÌÀú ¹øÈ£¸¦ Æ÷ÇÔÇÒ ¼ö ÀÖ½À´Ï´Ù. DSYUserExits ÆÄÀÏ¿¡ ÀÖ´Â ÇàÀº ´ÙÀ½°ú °°Àº Çü½ÄÀÔ´Ï´Ù.

DSYD000E=pager.exe number=9980674

¶ÇÇÑ, ´ÙÀ½°ú °°Àº ¸Å°³º¯¼ö¿Í º¯¼ö¸¦ ¸í·É°ú ÇÔ²² Æ÷ÇÔÇÒ ¼ö ÀÖ½À´Ï´Ù.

ID
¸Þ½ÃÁö Äڵ带 ÀÛ¼ºÇÏ·Á¸é ÀÌ ¸Å°³º¯¼ö¸¦ »ç¿ëÇϽʽÿÀ. ¸Å°³º¯¼ö °ªÀÇ °æ¿ì, º¯¼ö DSYID¸¦ ÁöÁ¤ÇϽʽÿÀ.

MSG
¸Þ½ÃÁö ÅØ½ºÆ®¸¦ ÀÛ¼ºÇÏ·Á¸é ÀÌ ¸Å°³º¯¼ö¸¦ »ç¿ëÇϽʽÿÀ. ¸Å°³º¯¼ö °ªÀÇ °æ¿ì, DSYMSG¸¦ ÁöÁ¤ÇÏ¿© ½ÇÁ¦ ¸Þ½ÃÁö ÅØ½ºÆ®¸¦ ÀÛ¼ºÇϰųª, DSYMSG_¸¦ ÁöÁ¤ÇÏ¿© ¸Þ½ÃÁö ÅØ½ºÆ®¸¦ ÀÛ¼ºÇÏÁö¸¸, ÅØ½ºÆ®¿¡ ÀÖ´Â ¸ðµç °ø¹éÀ» ¹ØÁÙ ¹®ÀÚ·Î º¯È¯ÇϽʽÿÀ.

´ÙÀ½ ¿¹Á¦´Â µ¿ÀÏÇÑ ÆäÀÌÀú¿¡ ÀüÈ­¸¦ °ÉÁö¸¸, ¸Þ½ÃÁö ¹øÈ£¿Í °ü·Ã ÅØ½ºÆ® ¸ðµÎ¸¦ ¸Å°³º¯¼ö·Î Á¦ÃâÇÏ¿© ÆäÀÌÀú â¿¡ Ç¥½ÃÇÕ´Ï´Ù.

DSYD000E=pager.exe number=9980674 id=dsyid msg=dsymsg

Sync Server´Â DSYUserExits ÆÄÀÏ¿¡¼­ Ç׸ñÀÇ À¯È¿¼ºÀ» È®ÀÎÇÏÁö ¾Ê°í ¸Þ½ÃÁö¿Í ¿¬°üµÈ Á¶Ä¡°¡ ¿Ï·áµÇ¾ú´ÂÁöµµ È®ÀÎÇÏÁö ¾Ê½À´Ï´Ù.

»ç¿ëÀÚ Á¾·á ·çƾÀ» Å×½ºÆ®Çϱâ À§Çؼ­´Â DSYUserExitsTest.bat ÆÄÀÏ µµ±¸°¡ Æ÷ÇԵ˴ϴÙ. DSYUserExitsTest µµ±¸¸¦ »ç¿ëÇÏ¿© »ç¿ëÀÚ Á¾·á ·çƾÀ» Å×½ºÆ®ÇÏ·Á¸é, ´ÙÀ½ Çü½ÄÀ» »ç¿ëÇϽʽÿÀ.

DSYUserExitsTest.bat dsy_message_id

¿©±â¼­ dsy_message_id´Â ½Ã¹Ä·¹ÀÌÆ®ÇÒ ¸Þ½ÃÁöÀÇ ¹øÈ£ÀÔ´Ï´Ù. ¸Þ½ÃÁö ID¸¦ Á¦°øÇÏÁö ¾Ê¾ÒÀ¸¸é, »ç¿ë °¡´ÉÇÑ ¸Þ½ÃÁö IDÀÇ ¸ñ·ÏÀÌ Ç¥½ÃµË´Ï´Ù.

´ÙÀ½Àº ¸Þ½ÃÁö ID DSYS001IÀÇ ¸í·É ¿¹ÀÔ´Ï´Ù.

DSYUserExitsTest.bat dsys001i

DSYS001I ¸Þ½ÃÁö°¡ »ý¼ºµÇ¸ç, ÀÌ ¸Þ½ÃÁö ¹øÈ£¿¡ Á¤ÀÇµÈ »ç¿ëÀÚ Á¾·á°¡ ½ÃÀ۵˴ϴÙ.

´ÙÀ½Àº ¿Ã¹Ù¸£Áö ¾ÊÀº ¸Þ½ÃÁö ¹øÈ£ÀÇ ¸í·É ¿¹ÀÔ´Ï´Ù.

DSYUserExitsTest.bat zzz

DSYUserExitsTest µµ±¸ÀÇ Ãâ·ÂÀº ´ÙÀ½°ú °°½À´Ï´Ù.

DSYUserExitsTest
    DSY message id 'ZZZ' not found. Valid DSY message id's are: 
DSYA000E, DSYA001E, DSYD000E, DSYD002E, DSYD006E, DSYD007E, ...


[ ÆäÀÌÁöÀÇ ¸Ç À§ | ÀÌÀü ÆäÀÌÁö | ´ÙÀ½ ÆäÀÌÁö | ¸ñÂ÷ | »öÀÎ ]