[JBoss Seam] - Re: Nested conversations and transaction management
by christian.bauer@jboss.com
OK, I really have no idea what you are doing, your code does not match your description. Stop using stuff like nested conversations until you have the basics working.
anonymous wrote :
| a) Is the database transaction started when the conversation starts, committed when the conversation is ended (@End) and rolled back if the conversation is rolled back (@Rollback) ?
| This should be true, since if I call a.cancel() from the A page, the database is not changed
|
No, this is not true. Read my first two replies: if you use TransactionalSeamPhaseListener your conversation demarcation does not influence transactions in any way. It does not matter that there is a long-running conversation. A JSF requests is wrapped in a system transaction (in two transactions, in fact). @Rollback does a rollback of the transaction, again, not related to conversations.
anonymous wrote :
| b) When a nested conversation is started, the database transaction is nested ?
| If not so (a new database transaction is started) when the nested transaction is closed, the database transaction is committed and there is no way to have changes undone
|
There are no nested transactions in Java EE.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042275#4042275
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042275
17 years, 2 months
[JBossWS] - how to deal with unicode
by thanatosis
I wrote a little library that can do simple translations, for example, i can select an operation such as english -> russian. Then if i send my library the string "greetings" it will return to me "??????" (privet) in cyrillic. Since java stores it's strings in unicode, this is all very easy, so long as the result string gets output with something like this :
PrintStream out = new PrintStream(System.out, true, "UTF-8");
out.print(results);
I'm trying to wrap a POJO web service around it, and it works fine with latin chars, but with things like cyrillic, something in the soap stack is mangling up my result string. I don't know what kind of output encoding the xml writer is using, but the string it generates is useless.
is it possible to tell the soap stack to use UTF-8? I'm not sure what can be done to solve my problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042272#4042272
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042272
17 years, 2 months