public final class GlueBizControllerImpl extends Object implements GlueBizController
¿¹Á¦»ç¿ë ¿¹# 1 GlueContext ctx = new GlueDefaultContext(); ctx.put("ServiceName", "sample-service"); GlueBizProvider.getController().doAction(ctx); Âü°í : applicationContext.xml
Modifier and Type | Method and Description |
---|---|
GlueContext |
doAction(GlueContext ctx)
TransactionÀ» ó¸®¿Í LoggingÀ» ó¸® ÇÏ°í Service¸¦ ½ÇÇà ÇÑ´Ù.
|
GlueContext |
doSubController(GlueContext ctx,
boolean newTx)
doAction()°ú µ¿ÀÏÇÏÁö¸¸ Transaction 󸮴 Á¤ÀÇ¿¡ µû¶ó ´Þ¶óÁø´Ù.
|
static GlueBizController |
getController()
GlueBizController Instance¸¦ »ý¼º ÇÏ°í Return ÇÔ.
|
public static GlueBizController getController()
public GlueContext doAction(GlueContext ctx)
GlueBizController
À§ÀÇ Transaction List ¸¸Å Commit ¹× RollbackÀ» ¼öÇàÇÏ°í ¸¸ÀÏ commit="false"À̸é CommitÀ» ¼öÇàÇÏÁö ¾Ê´Â´Ù. commit="false" ¸¦ »ç¿ëÇÏ´Â °æ¿ì¿¡´Â Read Only °æ¿ì¿¡ »ç¿ëµÈ´Ù. ½ÇÁ¦ TransactionÀÇ Á¤ÀÇ´Â applicationContext.xml¿¡ ´ÙÀ½°ú °°ÀÌ Á¤ÀÇ µÈ´Ù.
doAction
in interface GlueBizController
ctx
- GlueContextpublic GlueContext doSubController(GlueContext ctx, boolean newTx)
GlueBizController
Sub-service ¸¦ È£Ãâ ÇÏ´Â À§ ¿¹Á¦¿¡¼ " " ÀÎ °æ¿ì Main-service ÀÇ Transaction°ú º°°³·Î SubService¿¡ Á¤ÀǵǾî ÀÖ´Â TransactionÀ» ó¸®ÇÏ°Ô µÈ´Ù. "fale"À̸é Transaction 󸮸¦ ÇÏÁö ¾Ê´Â´Ù. Áï MainServiceÀÇ TransactionÀ» ÀÌ¿ëÇÏ°Ô µÈ´Ù.
doSubController
in interface GlueBizController
ctx
- GlueContextCopyright © 2013–2020 POSCO ICT. All rights reserved.