Redian新闻
>
How do I declare a transaction among 2 spring service calls
avatar
How do I declare a transaction among 2 spring service calls# Java - 爪哇娇娃
c*i
1
Daniel Grant, The Fine Art of Crime; The look of courtroom art in New York
is pastel, the look in California is watercolor. Wall Street Journal, Aug.
10, 2010.
http://online.wsj.com/article/SB10001424052748703999304575399472612355204.html
My comment:
(a) fine art (n): "art (as painting, sculpture, or music) concerned
primarily with the creation of beautiful objects —usually used in plural"
(b) plein air (adj; French, open air): "of or relating to painting in
outdoor daylight"
Note: Despite simil
avatar
y*i
2
第四章

深红静静躺在床上,表情分外宁静安详。
从微微扬起的嘴角来看,她应该在做一个甜蜜的梦吧。
如果你也在这种梦的话,一定非常讨厌有人突然将你从梦中唤醒。不过相比起你们来说
,深红是幸福的,因为再也没有一个人能够将她这个美丽的梦打碎,令她再度重返这充
满了悲伤的回忆的现实中。
她会永远沉睡,永远沉浸在那个有哥哥陪伴的世界中,明知最后的命运将是自燃消失,
但她也依然无怨无悔。
谁又能知道?这是幸福抑或是不幸呢……
怜坐在深红的床边,怔怔地望着双目紧闭的少女。忽然间,泪水再度无法抑制地从她的
眼角涌出。
在这十几个小时中,她曾无数次用力摇晃着少女的身躯,她曾无数次大声呼唤着少女的
名字,但换来的却只是令人无法忍受的沉默以及在她心底越来越深的绝望。
“我该怎么做才好呢?我……究竟还有什么可以依靠的呢?”
“优雨……你希不希望……我也过去陪你呢……”
就在此时,楼下忽然传来了门铃声。
天仓萤永远都不会想到,如果自己再晚来一段时间的话,也许他所见到的,就只有两个
永远都无法睡醒的女子。但就是因为今天的路况格外顺利,所以令他提前一个小时就抵
达了怜的公寓。
这个世界就是这样,同一件事情,如果你
avatar
g*g
3
I have an operation which is a 3 steps process. It looks like this.
1. Make some changes, commit to server, get an XML back.
2. Sign XML on client side
3. Commit the signed XML to server.
I do have all information before step 1 starts, but due to
security reason, step 2 has to be done on client side. Pass the
signature to server is not an option.
I want to make the whole process a transaction, in case step 3
fails, I want to rollback the changes in step 1.
Unfortunately, I can't do an undo for s
avatar
g*y
4
如果可以的话,请尽量的用中文发表一些自己的评论好吗?
这样别人可能会就你的评论而试图和你沟通交流
我多郁闷啊我,看到英文就浑身抗体~

different

【在 c**i 的大作中提到】
: Daniel Grant, The Fine Art of Crime; The look of courtroom art in New York
: is pastel, the look in California is watercolor. Wall Street Journal, Aug.
: 10, 2010.
: http://online.wsj.com/article/SB10001424052748703999304575399472612355204.html
: My comment:
: (a) fine art (n): "art (as painting, sculpture, or music) concerned
: primarily with the creation of beautiful objects —usually used in plural"
: (b) plein air (adj; French, open air): "of or relating to painting in
: outdoor daylight"
: Note: Despite simil

avatar
y*i
5
日本著名恐怖游戏系列第二部. 第一部是零.红蝶

【在 y***i 的大作中提到】
: 第四章
: 一
: 深红静静躺在床上,表情分外宁静安详。
: 从微微扬起的嘴角来看,她应该在做一个甜蜜的梦吧。
: 如果你也在这种梦的话,一定非常讨厌有人突然将你从梦中唤醒。不过相比起你们来说
: ,深红是幸福的,因为再也没有一个人能够将她这个美丽的梦打碎,令她再度重返这充
: 满了悲伤的回忆的现实中。
: 她会永远沉睡,永远沉浸在那个有哥哥陪伴的世界中,明知最后的命运将是自燃消失,
: 但她也依然无怨无悔。
: 谁又能知道?这是幸福抑或是不幸呢……

avatar
m*t
6
If it's really commited in step 1, then what's done is done, I don't see how
you can roll it back (and you mentioned compensation wasn't an option
either.)
You might be able to achieve what you want to do by doing client-side
transactions, i.e., having the client demarcate a transaction around step 1,
2,3. But you'd have to do it programmatically, and obviously there are risks.
avatar
c*i
7
I have been in US for a quarter century. I can hardly speak Chinese.

【在 g***y 的大作中提到】
: 如果可以的话,请尽量的用中文发表一些自己的评论好吗?
: 这样别人可能会就你的评论而试图和你沟通交流
: 我多郁闷啊我,看到英文就浑身抗体~
:
: different

avatar
h*o
8
Commits on the Spring level do not mean that you commit at the datasource
level. Spring transaction mangement really maps the specific datasource
transaction management you use, which in turn might map to another abstract
transaction layer. as long as you do not commit to the permanent storage,
you can roll back your transaction.
But if you commit ur transaction to the db layer, as magicfat said, what's
done is done. there is no turning back.
Hibernate has something called "application transacti
avatar
g*y
9
fine~~~

【在 c**i 的大作中提到】
: I have been in US for a quarter century. I can hardly speak Chinese.
avatar
g*g
10
I get an idea, I would do step 1 without commiting on server, only
get the XML back, then commit the changes of 1 and 3 together.

【在 g*****g 的大作中提到】
: I have an operation which is a 3 steps process. It looks like this.
: 1. Make some changes, commit to server, get an XML back.
: 2. Sign XML on client side
: 3. Commit the signed XML to server.
: I do have all information before step 1 starts, but due to
: security reason, step 2 has to be done on client side. Pass the
: signature to server is not an option.
: I want to make the whole process a transaction, in case step 3
: fails, I want to rollback the changes in step 1.
: Unfortunately, I can't do an undo for s

avatar
t*e
11
你不要explicitly call commit method. 用个大method encapsulate 3 个operations
, 然后再这大method上declare transaction attributes.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。