Transaction in java control??

Advertisement
hi, all.
I've wrote a custom java control which include several database operations, and I want these operations be wrapped in transactions.
I get information from the document that implicit transaction is provided by workshop.
but unfortunately, I found that when a database operation failed, no rollback happened.
I have search about this problem in this newsgroup, but can't get useful information.
Can someone help me?
Advertisement

Replay

zheng vl wrote:
hi, all.
I've wrote a custom java control which include several database operations, and I want these operations be wrapped in transactions.
I get information from the document that implicit transaction is provided by workshop.
but unfortunately, I found that when a database operation failed, no rollback happened.
I have search about this problem in this newsgroup, but can't get useful information.
Can someone help me?I've taken care of this in my pageflow by explicitly getting a
UserTransaction object from an InitialContext object, as follows
InitialContext itx = new InitialContext();
UserTransaction ut =
(UserTransaction)itx.lookup("javax.transaction.UserTransaction");
ut.begin();
This should get you started.
hth
Mike

Is there programmatic control over Java control panels

We have users who may not be able to (or we may not want them to) change their JRE settings. Anyone know if there is a way to deselect the browser JRE option in each version of the Java control panel? We'd like to do it programmatically.jcrofts wrote

NO java control panel in windows system control window

Hello together, there seems to be a bug/feature (?) not allowing me to use the plugin functionality of my J2EEsdk-1_4 Situation: Before i installed the J2EE i had an already installed java plug-in 1_4_2 working fine on my Laptop giving my ms explorer

Caching problem in Applets - Java Control Panel

I have a problem of applets being cached in Java Control Panel. Is there a way in Java to stop caching applets programatically in the Java Control Panel. There is one way to stop caching files by unchecking "Keep Temporary Files on my Computer"

Java Control Panel wont open at all and any Java Applets crash web browsers

Hello, I recently installed a fresh fully updated copy of Windows 7 Home Premium 64 bit, and I have not for the life of me been able to get Java working at all. Java version is the latest JRE 6U31. I only have Internet Explorer 9 installed but I doub

Java Control Panel quit unexpectedly while using the libjvm.dylib plug-in.

OS X Server1 0.8.4, Mac Mini (5,1), Java 7u25 (jre-7u25-macosx-x64.dmg). Tried removing and re-installing Java 7u25 directly from Oracle's site.  Also did a fix disk permissions, rebuilt caches, deleted java caches,  etc...  I can't simply get the Ja

How to use transform control in java control?

when i add a transform control into a java control, the workshop show me : The element "jpd:transform" is not allowed at this location Is a transform control must be used in a process file?Yes, transform controls can only be used from within a p

Websites that use java are not working. In the Java control panel, under advanced, default java for browsers "mozilla family" won't stay clicked

I've recently gotten a new Windows 8 computer. Ever since, I've tried accessing certain websites (like www.cnet.com) and can't get the java scripts to load like for the drop down menus. When I hover over them they don't do anything. Other computers I

Sp  transaction  notification  to control  docdate

Hi, i've  this problem.  i've  Sales  Invoceis  ( OINV)  and  Credit  Notes (ORIN)  with  the  same  series i  want  to  control,  by  sp  transaction  notification,  that  the user does   not  insert,  for  this  series, a  new  document  with  a  d

Copyright year in Java control panel about box

I think the about box did not display the copyright year properly. Copyright (c) @@[email protected]@ Oracle and/or it's affiliateshungwai wrote: The version of Windows/Java -Windows XP 32-bit and Windows ultimate Vista 64-bit -Java SE 1.6.0_21Perhaps

Problems in Java Runtime Environment Update 14 Control Panel on Windows 7

When opening the Java Control Panel 6 Update 14 on Windows 7, the text and other elements in the Java Control Panel are distorted as shown in this pic: http://jdash007.googlepages.com/javare614prob.jpg so, what's the problem? Edited by: jdash007 on J

IS java database control (jcx) sinchronized?

Hi, I use workshop for create a web application. I have make a java control database and I have import this control in my page flow. So the database control result in controller class as a class intance variable .This class variable is used for all c

Distributed transactions, distributed objects

An observation and a conjecture about distributed transactions and distributed object references: Distributed non-service object references are persistent, and a transaction can, in principle, propagate to the distributed object through a method call

Catching Database Control Exceptions...

I would like to catch exceptions generated when the database control loses connection to its data source. At the moment, the database control is part of a java control, which in turn is exposed as a web service. When the connection to the database (o

Serial control in wip discrete jobs

Hi gurus, i had created a discrete job with serial control enabled for components. but when trying to query for job im unable to get it. so whats the mistake i did? when going thru oracle white papers they mentioned to change profile option TP:WIP Op

After installing Yosemite I'm getting a Java Runtime notification when rebooting... How to solve?

Since installing Yosemite, if I reboot, I get the following...  I follow the links and it directs me to Oracle and an SDK download - frankly stuff I don't get... and I'm a pretty decent computer user...  Any suggestions here?  Thanks.I too have this

Vista & webi java security window

Post Author: BrentGee CA Forum: WebIntelligence Reporting I just got a new computer with vista and when I try to use the java client to develop webi reports, the allow certificate window will not show. User is running as an administrator and has uac

Control Project

Hi guys! I need some help regarding control projects in weblogic. I have a control deliverable project in one application and I want to use the same code in another one.So I packed that control project as jar file and then imported in another one.I a

Deletion of KANBAN control cycle

Hi All, I need to delete a KANBAN control cycle which is the TCODE used for doing so , another problem is that the control  cycle is created with the TCODE PK01 and the sypply area is a ware house related  one . Thanks and Regards, Mallik.Hi, Delete

Project Availability Control

Hi, I would like to confirm if availability control / check happens only at actual posting level or also during commitments and other trigger points?  Please also advise where to set the proj availability control for different trigger points. VivianS