Unit of work with wlql

toplink 3.6 is offering a mechanism, that lets you see the results of your work
in the database, before they actually are written to it. i used this under bea
WLS 5.1 and now have my first project with bea 6.0, where i need to use the wlql.
how can i do here the same as i did with toplink's confirmInUnitOfWork() process?

I don't follow your pseudo code. Try to simplify your test case:
UnitOfWork uow = session acquireUnitOfWork();
Person p = uow.readObject(Person.class,expression);
p.setSomeAttrbiute("something else");
uow.commit();
Once you get something like that to work, then walk through your code and I'm sure you'll notice something that's not following the pattern...
- Don

Similar Messages

  • Multi-page units of work with automatic state management

    Hi Jhs team:
    When my applications need to support an end-user task requiring data entry on many different web pages to complete,
    how to building multi-page units of work with automatic state management ? please give some instruction .

    Ting Rung,
    You can do this in two ways:
    - use a Struts form bean to collect all the values over the requests
    - submit the changes of each request to bc4j, but do not post and commit the changes to the database.
    The latter is easiest. For this to work, you must set the doCommit property of all your save actions in the stuts-condig to false, except for the last save action in the chain of requests.
    In addition, in your application module class, you need to overwrite method postChanges as follows:
    * DO NOT post the changes to the database
    public void postChanges() throws Exception
    // do not post here
    // posting will happen when the commitChanges
    // method on the handler is invoked
    Steven Davelaar,
    Jheadstart Team.

  • Ipad 2 upgraded to iOS 8.0.2 and the cellular signal doesn't work. Have to restart the unit to work with cellular signal. After a while it goes off and no service indication appears.

    Ipad 2 upgraded to iOS 8.0.2 and the cellular signal doesn't work. Have to restart the unit to work with cellular signal. After a while it goes off and no service indication appears.

    iPad 2, Since upgrading to iOS 8.0.2  the cellular signal indicates I do not have a SIM card. Monday spent hours on the phone with Apple support, backed up my iPad, reset all settings, reloaded my iPad and it still tells me I don't have a SIM card. Tuesday went to AT&T and got a new SIM card on the advice of apple support. It worked perfect until this morning and the NO SIM CARD notice reappeared. Never ever had any problem until the upgrade. I find it inexcusable that Apple refuses to address the issues they caused, iOS 8.0.2 is the Ebola of iPad 2 world. I dont have any cellular service after wasting two days trying to address and fix a problem Apple is responsible for. It's obvious Steve Jobs is no longer running the company. Furious & fustrated. How does Apple expect anyone who uses an iPad 2 for work, to remain a customer who will return to their products?

  • Alpine 9885 head unit now works with 1.0.1 iPhone

    My iPhone was not liking my Alpine 9885 head unit with iPod cable - the music came out of the iPhone speakers instead of the car speakers.
    With 1.0.1 firmware, the iPhone now operates correctly. Music comes out of the car speakers as expected.
    So, I guess there was a little more to 1.0.1 than meets the eye...

    I can't remember what head unit my alpine is that does the ipod interface but mine works great from day one. Is there a way possibly to add a microphone to the head unit and when I receive a call I'd be able to hear it via the speakers?
    I think I have hi-def radio, xm ready all that jazz of a head unit. no bluetooth inside, may be optional? can't remember.

  • Problem in using Unit of Work with executeNonSelectingCall() method

    Hi,
    I am using external Connection Pooling and Transaction Controller of JBoss in Toplink.
    When I am getting the data from DB and do "clientSession.release();", it works fine.
    I get the clientSession as follows:
    serversession = (Server) SessionManager.getManager().getSession(new XMLSessionConfigLoader(),"Session", Thread.currentThread().getContextClassLoader(), false, true);
    serversession.login();
    ClientSession clientsession = serversession.acquireClientSession();
    I am facing the problems in two cases:
    Case 1: But when I get the UOW through "transaction = clientSession.getActiveUnitOfWork();" and insert the data, commit and do "clientSession.release();", I get the following error:
    [CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@c42091
    I removed clientSession.release(); from my finally{} block still I am getting the same error.
    Case 2: But when I get the UOW through "transaction = clientSession.acquireUnitOfWork();" and insert the data, commit and do "clientSession.release();", I get the following error:
    17:48:55,670 ERROR [LogInterceptor] TransactionRolledbackLocalException in method: public abstract java.lang.String com.pearson.pix.business.purchaseorder.interfaces.PurchaseOrderLocal.saveOrderConfirmation(com.pearson.pix.dto.purchaseorder.POHeader) throws com.pearson.pix.exception.AppException, causedBy:
    org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=asad/139, BranchQual=, localId=139] status=STATUS_NO_TRANSACTION; - nested throwable: (java.lang.NullPointerException)
         at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:354)
    I am not able to understand what to do. Pls. help.
    Thanks

    Locking a row that does not exist can be difficult.
    On most database you can lock an entire table through "LOCK TABLE <table>", however this may be extreme. Potentially you could also insert an empty row into the table with the id that you want to lock, then you would have a write lock on the row until you commit the transaction.

  • HP Simple Pass not working with fingerprint snanner

    I have just purchased a new laptop namely the HP Envy 17. One of the primary reasons for me aquiring this product as apposed to other similar products was due to the built in fingerprint scanner. You can imgine my disbelief when i now discover that the windows version 8.1 pre-loaded on this unit doesnt work with the scanner or the built in scanner sofeware HP Simple Pass.
    Can anyone assist with a simple fix as this has really blurred my perception of HP products as a whole.
    Thanks

    Hello @BJordaan,
    Welcome to the HP Forums.
    It appears that the HP Simplepass isn't working correctly for you. I will try to assist you with this.
    Start by making sure all updates have been completed on the notebook.
    After that try this document: Troubleshooting a Fingerprint Reader (Windows 8).
    I will also provide this document: Using HP SimplePass Fingerprint Reader (Windows 8).
    Let me know how this goes.
    Thank you for posting on the HP Forums.
    I worked on behalf of HP.

  • A1469 not working with panasonic tv

    I have a 3G apple tv unit which works with my sony tv.  I bought the sony at same time as the panasonic virea I have.  It is not being picked up as an AV input when I select this option.
    There are two HDMI ports being ercognised and TV and Media Server.
    Tried two different HDMI ports - the one on the LHS and the one at the back.
    Help.

    solved!  I switched the hdmi from the dvd [player into the back of the apple tv unit.  Poor solution but it works.

  • Re: Would serial number at the bottom work with other Windows Vista OS

    Firstly sorry for my English.
    I have only one question.
    My hard drive is broken with my recovery partition.
    If I download windows vista and install the system with my original serial number on the laptop, this will be working or I need to activate him after installation.
    I hope this is the same number than before is installed on my first installation.

    Hi Marcin
    I doubt that the serial number which is placed at the bottom of the unit would work with another Windows Vista OS. But its worth a try
    You could test it I heard that is very rare cases this was possible
    Anyway, if your HDD is broken and its not possible to create a recovery DVD using the software Toshiba Recovery disk creator then you should contact the ASP in your country for a help.
    If the warranty is valid the HDD should be replaced just for free. If you need only the Recovery DVD then you could order it here:
    https://backupmedia.toshiba.eu/landing.aspx
    Regards

  • Ear Sir: Yesterday on 18.09.2014 evening, I wanted to install IOS 8.0 according to your instructions iPhone 5S.during installation Stopped working and was closd, I can not work with him. Ibought it in the United States Apple Store Fifth 40venue 767 N

    Dear Sir: Yesterday on 18.09.2014 evening, I wanted to install
    IOS 8.0 according to your instructions iPhone 5S.during installation
    Stopped working and was closd, I can not work with him. Ibought it in
    the United States
    Apple Store Fifth 40venue 767 New York NY1053
    iPhone 5s Spase Gray 32 gb verizon.
    Part Number: ME344ll / A.
    Serial number: DN*******NjM.
    Model A1533. I would like to request a new password for opening the
    iPhone.  Passwod..... Thank you very much,
    Im not difficult for you to request a quick answer.Israel.
    <Personal Information Edited By Host>

    We are fellow users here on these forums, you're not talking to iTunes Support nor Apple - it looks like somebody has asked the hosts to remove your personal info from your post (it's not a good idea to post any personal info on any public forum).
    What do you 'stopped working and was closed, I can not work with him' ? What exactly are you seeing on the phone's screen ?
    If it's the activation screen and you can't remember your password for your account then see if you can get it reset via http://iforgot.apple.com

  • [svn:osmf:] 14261: Updated DRM unit tests to work with code review feedback .

    Revision: 14261
    Revision: 14261
    Author:   [email protected]
    Date:     2010-02-18 14:15:23 -0800 (Thu, 18 Feb 2010)
    Log Message:
    Updated DRM unit tests to work with code review feedback.
    Modified Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/elements/TestParallelElementWithDRMTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/elements/TestSerialElementWithDRMTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/traits/TestDRMTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/utils/DynamicDRMTrait.as

    Hello Alex,
    I don't have an answer for you.
    But, can you try to use http://drmtest2.adobe.com:8080/Content/anonymous.f4v with locally hosted OSMF player? This content doens't require user/pass info.
    I'm wondering that Google TV's flash player doesn't support prompt dialog.
    http://drmtest2.adobe.com/AccessPlayer/player.html requires flash player 11. That's why it won't be loaded with flash player 10.x.
    Thanks,
    -- Hiroshi

  • Which version of the iphone 5 works with united arab emirates LTE network

    The version sold in canada or the one sold in europe,which one is more likely to work with LTE network in the united arab emirates?

    hi
    it should be GSM model A1429

  • Apple TV issue-I have a Pioneer Elite Pro 1130 with a PRO-Ro6u Media Receiver. I cannot get my new Apple TV unit to work on this TV no matter what I have tried. No Video

    My new Apple TV unit (3rd generation) will not work with my Pioneer Elite Pro 1130 tv. The TV has a PRO-R06u Media Receiver. No matter what I try, I cannot get anything to come up on the screen. No Video and No Audio??

    Try cycling AppleTV resolutions with the remote using the tip for 'black screen recovery' here:
    http://support.apple.com/kb/ht3176
    The set is quite old now, does it support HDCP?

  • Issues updating with Unit of Work

    Hello,
    I think, I might be missing a point about toplink. I know that when I need to update an Object, i find the current object in cache(ReadObject) and then register that object to get a cloned object and do updates on the cloned object and then commit it.
    Everything works fine in above scenario, IF AND ONLY IF, I set the attributes of the cloned object individually. But the update doesn't work if I set the cloned object to a totally different object (clonedObj = otherObj) Here otherObj has changed attributes which i want to be updated. Toplink somehow doesn't like it.
    How do i do it?
    Sample working code:
    public void mergeData(Object obj, Class c){
    try{
    ReadObjectQuery query = ReadObjectQuery(obj);
    // get the object with the primary key as the one passed in
    Object persistableObject = session.executeQuery(query);
    Object objectClone = tx.register(persistableObject);
    //It is a User object
    ((User)objectClone).setName("New Neeraj");
    tx.commit();
    Sample NOT working code
    public void mergeData(Object obj, Class c){
    try{
    ReadObjectQuery query = ReadObjectQuery(obj);
    // get the object with the primary key as the one passed in
    Object persistableObject = session.executeQuery(query);
    Object objectClone = tx.register(persistableObject);
    objectClone = obj //passed in object
    tx.commit();
    Is it becuase of the ReadObjectQuery using the same object as used to set up the cloned object?
    Thanks in advance for the help.
    Regards,
    Neeraj

    Don,
    This is what the documentation says related to mergeClone:
    "Merge the attributes of the clone into the unit of work copy. This can be used for objects that are returned from the client through RMI serialization (or another serialization mechanism), because the RMI object will be a clone this will merge its attributes correctly to preserve object identity within the unit of work and record its changes. The object and its private owned parts are merged."
    What is the significance RMI and serialization in this.
    I tries mergeClone locally (using the UOW) and it works fine, but just want to make sure that I understand what the documentation says.
    Also, if you will be kind enough to explain the difference between mergeClone and mergeCloneWithReferences.
    Thanks,
    Neeraj

  • Does video iChat work with H.323 Polycom units?

    Does iChat (version 5.0.1) work with H.323 VTC devices, specifically Polycom units?

    Does this help http://discussions.apple.com/thread.jspa?messageID=10058088&#10058088

  • All of a sudden, my 4th gen iPod Touch no longer works with my Apple TV, has Apple "upgraded" something to kill off this older unit? (IOS 6.1.2)

    All of a sudden, my iPod Touch (4th gen, IOS 6.1.6) no longer works with Airplay on my Apple TV.  It was working and still works as a 'remote' but not with Airplay which seems to indicate I've been abandoned by the message that pops up on the screen saying in essence "too bad you don't have IOS 7.1". 

    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - Then do the other actions of:
    iOS: Device not recognized in iTunes for Windows
    paying special attention to item #5
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates
    - Try on another computer to help determine if computer or iPod problem

Maybe you are looking for