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