Toplink and headstart

Hello,
We are using headstart framework in 10g database and we have a web application that uses Toplink for O-R mapping.
We open QMS transaction in postAcquireUnitOfWork and close it in preCommitUnitOfWork.
But if there is and exception raised in an sql or plsql that is executed within the UnitOfWork, the QMS transaction stays opened in the session.
So the next client can get the "dirty" session with the opened QMS transaction inside.
It looks like before executing any statement inside a session, Toplink does commit, and this raises the exception:
Internal Exception: java.sql.SQLException: ORA-02091: transaction rolled back
ORA-02290: check constraint (HST9I.QMS_NEED_TO_CLOSE_TRANSACTION) violated Error Code: 2091 because the QMS transaction stayed opened.
Why does the Toplink session tries to execute commit before executing the first statement?
Is there any possibility to execute abort transaction from the toplink framework, if the UnitOfWork statements fail ?
Has anybody come up with a work around ?
Should we try to abort the QMS transaction in sessionListener.postAcquireClientSession (or a rollback) ?
Thanks
Kate

I've used Axis with Toplink a bit, but I'm not aware of an easy solution for a Toplink merge to be handled automatically by the Axis serialization engine.
In my application, I have an API layer for all biz/persistence logic. I have been careful to keep parameters to these APIs limited to simple types and arrays of simple types. It works fine for local calls, and it allows easy mapping between WSDL definitions and SOAP calls for remote access to my biz layer.
All adding/editing/deleting is performed via a parameterized API call. This fits well with the SOAP paradigm.
As for viewing data, I have thin objects that wrap my Toplink objects which I return as values.
Obviously, if your application isn't structured with an API layer, this may not be helpful.
If anyone has done something with Axis/Toplink beyond this, I'd be interested in learning about it.
Nate

Similar Messages

  • Differences between Headstart Oracle Designer and Headstart for Apps

    Hello,
    I would like to know where i can find an online demonstration of the product "Headtsart for Apps 11i" ?
    I have found the online demonstration of the product "Headtsart Oracle Designer" at the url :
    http://otn.oracle.com/products/headstart/headstartdemo_viewlet.html
    I would like to compare the functionalities of these two products (the tabs option for example).
    For a new application, we have the choice between "Headstart for apps"+"Oracle Application" environment or "Headstart Oracle Designer" alone.
    If no demonstration exists, could you tell me the difference between these two products (i have understood that one run under OA and the other run alone) ?

    Hi,
    Headstart for Apps and Headstart Oracle Designer are based on the same idea, and therefore there are many similarties between the two. The main differences are:
    * the look and feel
    Headstart for Apps is used to generate Oracle Form screens with the same look and feel as a standard Oracle Application screen. Headstart Oracle Designer has its own look and feel.
    Headstart for Apps also enables/eases some Oracle Applications specific look and feel features (although Headstart Oracle Designer has also adopted some of these).
    * dependency of Oracle Applications
    Forms generated with Headstart for Apps cannot run outside the Oracle Applications framework. You will use the same security mechanism as for an Oracle Applications form, the same messaging system, and you can use the standard Oracle Applications built ins.
    Headstart Oracle Designer runs completely outside the Oracle Applications framework, there is a separate messaging system, and you cannot use the Oracle Applications built ins.
    Hope this helps!

  • JDeveloper, Toplink, and ADF advice.

    We have application that was completely developed JDeveloper 10.1.3/4 with Toplink, JSF, ADF, and Session Facade; extremely similar to the SRDemo.
    I am want to upgrade to JDeveloper 11g; however, the ADF Faces JSF will be migrated to Apache MyFaces Trinidad.
    1. Why would this be better than migrating to ADF Faces 11g? Pros and cons?
    2. Is Apache MyFaces Trinidad the future of Oracle's ADF?
    3. What would be the best approach for upgrade to Toplink and ADF 11g?
    Thank you.

    1. Why would this be better than migrating to ADF Faces 11g? Pros and cons?It won't be better than using ADF Faces 11g - it is just more feasible for automatic conversion - we can't do automatic conversion from ADF FAces 10.1.3 to ADF Faces 11g since the UI capabilities are so drastically different. We migrate to Trinidad to allow you to combine Trinidad and ADF Faces 11g in the same application. (You can't use ADF Faces 10.1.3 and 11g in the same application).
    2. Is Apache MyFaces Trinidad the future of Oracle's ADF?No. ADF Faces Rich Client is the present and future. Those are based on Trinidad.
    3. What would be the best approach for upgrade to Toplink and ADF 11g?The basic thing to do is open the application in JDeveloper 11g - things should work after the migration.
    Then you can start leveraging new capabilities such as the new ADF Faces 11g UI in new parts of the application.
    You might want to ask on the TopLink forum if they have any specific migration tips.

  • BUG!?! Toplink and XE in Jdev 10g Rel 3 SU4

    Good ... evening/morning ... everyone! :-)
    Trying to follow (teach using) the tutorial on creating an Web App using Toplink
    and ADF Faces. After creating the Map I am getting problems on the Java object
    generation. I get the exception:
    java.lang.NullPointerException
    at oracle.ideimpl.log.TabbedLogManager.getMsgPag (TabbedLogManager.java:101)
    at oracle.toplink.addin.log.POJOGenerationLoggingAdapter.updateTask(POJOGenerationLoggingAdapter.java:42)
    at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.fireTaskUpdated(MappingCreatorImpl.java:1049)
    at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:231)
    at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:201)
    at oracle.toplink.addin.wizard.jobgeneration.JobWizard$1.construct(JobWizard.java:401)
    at oracle.ide.util.SwingWorker$1.run(SwingWorker.java:119)
    at java.lang.Thread.run(Thread.java:595)
    and JDev get in a endless loop in the generation progress dialog. The only
    difference from the tutorial setting is XE instead of a full server!
    Hope someone have some hints; just let me know if further details of the setting
    is needed!
    Dan.

    Good ... evening/morning ... everyone! :-)
    Trying to follow (teach using) the tutorial on creating an Web App using Toplink
    and ADF Faces. After creating the Map I am getting problems on the Java object
    generation. I get the exception:
    java.lang.NullPointerException
    at oracle.ideimpl.log.TabbedLogManager.getMsgPag (TabbedLogManager.java:101)
    at oracle.toplink.addin.log.POJOGenerationLoggingAdapter.updateTask(POJOGenerationLoggingAdapter.java:42)
    at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.fireTaskUpdated(MappingCreatorImpl.java:1049)
    at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:231)
    at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:201)
    at oracle.toplink.addin.wizard.jobgeneration.JobWizard$1.construct(JobWizard.java:401)
    at oracle.ide.util.SwingWorker$1.run(SwingWorker.java:119)
    at java.lang.Thread.run(Thread.java:595)
    and JDev get in a endless loop in the generation progress dialog. The only
    difference from the tutorial setting is XE instead of a full server!
    Hope someone have some hints; just let me know if further details of the setting
    is needed!
    Dan.

  • Designer and Headstart 6 upgrade to 6i questions

    One of my customer is using Developer 6i, Designer 6.0 and
    Headstart 6.0
    He is considering upgrading to Designer 6i and possibly
    Headstart 6i
    New features of Designer 6i are well documented on technet but
    what about Headstart 6i?
    What are the new features?
    Is it worth it or can you keep on using Headstart 6 with
    Designer 6i?
    My customer was quoted roughly $2500 per upgrade.
    He is not ready to pay this amount of money without first
    knowing exactly what he'll get, obviously.
    From what I have read on technet, Headstart 6i is now part of a
    broader tool called iDevelopment Accelerators.
    Yet, what does Headstart 6i offer that Headstart 6 does not?
    And do you HAVE to upgrade to Headstart 6i if you upgrade to
    Designer 6i?
    All comments welcome,
    Xavier Neys
    [email protected]
    The DOC b.v.
    www.thedoc.nl

    Not the easiest thing to find, try patch no: 2686763
    In the simple patch search in metalink choose Oracle Designer - Respository Family and Designer/Repository 9i Release.
    Cheers.

  • Toplink and VPD

    Hi,
    In a three-tier architecture, has anyone successfully implemented VPD in combination with Toplink and a ConnectionPool?
    When all my web-users are connecting to the database with the same (connection pool) credentials, how, when and where do I tell my database who is really logged in (web-user) and thus how to set the specific VPD for that web-user?
    Thanks. I already read another post on this forum mentioning that VPD support would be included in an upcoming release of TopLink.
    Re: toplink and Oracle VPD
    I also heard of a patch to download. Can anyone verify this?

    Just to add an extra question: Is it true that when one is using chained Toplink actions in a request-response cycle that each action will fetch its own connection from the pool and thus for each time a connection is fetched the VPD needs to be set again?
    This in contrast with BC4J, where all actions in a request-response cycle will share the same application module and thus the same connection.
    Bottom line: how to configure Toplink so that for each fetched connection it tells the database: "Hey, its me again, please set the application context (VPD) to my own personal values, so I will only see my own records"?
    . And to clean it up nicely: just before the connection is released to the pool: "Ok, I'm done, please reset the application context, so other users will not be bothered by my context".
    Hard to believe nobody has tried this before.

  • What are the difference between TopLink and TopLink Essentials...?

    What are the difference between TopLink, TopLink Essentials, EclipseLink and TopLink Essentials-GlassFish?
    What is the difference of their functions?
    Edited by: qkc on Nov 21, 2009 10:52 AM

    Difference between TopLink and ToPLink Essentials:
    TopLink Essentials are the reference implementation (RI) of JPA, is an open source effort that is licensed under the Common Development and Distribution License (CDDL) v1.0. It can be freely downloaded and used under the terms of this license agreement. This means, you can only use it for the management of persistence and orm with Java EE and Java SE. The binary distribution of TopLink consist of 2 jars:
    * toplink-essentials-agent.jar: contains Java Persistence API; XML Schemas and TopLink essentials implementation
    * toplink-essentials.jar: contains java agent class requires in a standolane Java SE application
    In addition to TopLink Essentials that makes the JPA implementation alive, Oracle offers its Oracle TopLink product (10.1.3) that contains an earlier preview binary of JPA and also offers developers additional object-relational capabilities, object-XML mapping (JAXB), non-relational mapping using Java 2.0 Connector Architecture (JCA).
    Let's wait other person to answer these questions.

  • FRM-40501 Error and HeadStart 3.4.2W

    I'm migrating and old application made with Designer 1.3.2 and HeadStart 3.4.2W to Oracle 8i Release 8.1.6 and in many forms screens at commit time i'm receiving the message FRM-40501 "Unable to reserve records to update or delete". Any Clue, Anyone.

    This is the same problem as posted by Chuck, right?
    ORA-01410
    <p>I am not familiar with using instead-of triggers, so maybe someone else will help out here... Can you describe -- what does the instead-of trigger do?
    <p>But: I am sure the problem is in the form, and not with corrupt indexes.
    <p>Your Add_Table procedure is just setting up the record in the block to be added to the database. Everything looks normal there.
    <p>But what have you changed in the form since it was working? Have you added some SQL statements? Maybe added a trigger to the block? Commit-time processing? Answer these things and maybe someone can help some more.
    <p>It sounds like the rowid that Forms automatically sets after an insert is not being set, and you have added something (maybe inadvertently) that tries to update the record immediately after it is inserted. And the first thing that happens when you change a record is that Forms automatically issues a lock on the record (the select for update). This process uses a rowid, but your form has bypassed the process that sets the rowid.
    <p>Good luck with Forms. It is frustrating at first, but it gets better. And Oracle is a great dbms to work on.

  • Can I implement the ORM task without TopLink and Hibernate?

    Can I implement the ORM (Objest/Relational Mapping) task without TopLink and Hibernate tools?

    Any opinions are welcome.

  • Behaviour of updateObject and writeObject in toplink and eclipse link

    Hi all ,
    Please let us know if there is any difference between updateobject and writeobject being used in toplink and eclipselink.jar ?
    It would be greatly helpful if someone can say the scenarios to use both the objects in eclipselink.jar .
    Thanks in advance.
    Regards
    Mythili

    In general you should not use either of these, but either use JPA, or use the UnitOfWork.
    updateObject and writeObject are only defined in a single user DatabaseSession.
    updateObject will just update the object, it assumes the object exists
    writeObject can either insert or update an object, it first performs a doesExist check to see if an insert or an update should be done.
    James : http://www.eclipselink.org

  • Desktop Conference 2005 includes Java, TopLink and more

    Checkout Desktop Conference 2005 (www.desktopconference2005.org or www.odtug.com) for information on Desktop Conference 2005, the virtual conference webcast sponsored by Oracle, ODTUG, and BIDW SIG of OAUG. It's powered by Oracle's Collaboration Suite Web Conferencing and features all-star presenters and exceptional technical content February 15-17. Since it's virtual, there's no need to travel. All you need is a PC and internet connection.
    Java/J2EE topics include J2EE, Web Services, JSF, Struts, ADF, BPEL, Frameworks, TopLink and more. Java/J2EE experts include Rod Johnson, Bruce Tate, Richard Monson-Haefel, Paul Dorsey, Toon Koppelaars, and Sri Rajan.
    Oracle Java/J2EE experts include Dai Clegg, Duncan Mills, Avrom Faderman, Steven Davelaar, Frank Nimphius, Tugdual Grall, Sue Harper, Jonas Jacobi, Anuj Jain, Stacen Anderson, Katarina Obradovic-Sarkic, and David Shaffer.
    Great keynotes addresses include Oracle's Thomas Kurian, Senior VP, Development OAS. The conference has a lot to offer so I hope you can check it out. Thanks. Maggie Tompkins

    There are several sessions done by the JDeveloper Product Management as well as several sessions done by othre users of JDeveloper. Check out both the Java track and the Oracle track.
    See the detailed agenda here:
    http://www.desktopconference2005.org/03-agenda/index.html
    Can be a nice opportunity to "go" to a conference if your company is on a tight travel budget.

  • TopLink and Stored Procedures

    Hi all
    We are migrating an application made with MS ASP's to a full blown J2EE application using ADF, JSF and toplink, atm we've used the mapping abilities from toplink and have saved lots of work, however i'd like to know if there's aw ay to map the Stored procedures the same way you map the tables. This would be a great time saving routine, if not available we might have to write it but I thought we would ask here first. Any pointers?
    greetings!

    TopLink does fully support invoking stored procedures for any query. It is not available in the graphical mapping editors but is available through the API. Look in the documentation for StoredProcedureCall.
    Doug

  • How to use jta in toplink and stateless session bean EJB 3.0?

    I have an application with techologies jsf,stateless session bean, adf, toplink
    generated by toplink workbench.
    In web side ı want to use two methods in stateless session bean which are updated
    different tables. I call these methods in my page backing bean.
    I also want to JTA in web side. My first methods is done correctly, but second method has an error. I wanto to rollback all transaction.
    How can ı do that? with using JTA in Toplink...

    Yuichi
    Did you manage to solve this?  I'm doing something similar and seeing the same problem, although they're up to 7.3 SP7.
    Any help greatly appreciated.
    Lewis

  • Hot delpoyment with TopLink and Stateless Session Beans

    What is the recommended procedure for making hot deployment of Stateless session beans work with toplink in WLS 7.0sp1 and oc4j (9.0.3)
    My current setup is as follows using WLS 7.0sp1:
    A stateless session bean is accessing toplink enabled persistent java classes via the SessionManager. I'm currently using the class loader of the stateless session bean:
    * Method in stateless session bean
    * Return the TopLink Session (based on the wls stateless session bean demo)
    public Server getSession() {
              return (Server)SessionManager.getManager().getSession("ejb_sessionbean", this.getClass().getClassLoader());
    Everything is working as such. My session bean can read and write the persistent java classes. However if I redeploy the stateless session bean jar file the toplink session is not reinitalized. This means that new settings in the session.xml are not used. I addition I get other errors.
    I'm having toplink on the server classpath. The toplink enabled persistent classes are in the stateless session bean jar file.
    Thanks
    Henrik

    What is the recommended procedure for making hot deployment of Stateless session beans work with toplink in WLS 7.0sp1 and oc4j (9.0.3)
    Everything is working as such. My session bean can read and write the persistent java classes. However if I redeploy the stateless session bean jar file the toplink session is not reinitalized. This means that new settings in the session.xml are not used. I addition I get other errors.
    I'm having toplink on the server classpath. The toplink enabled persistent classes are in the stateless session bean jar file.Henrik,
    This is a recent post note I found on the same topic:
    It all hinges on whether the TopLink ServerSession class has
    been loaded by a classloader which is actually thrown away
    during the hot deployment process. If this is the case, then
    hot deployment causes the ServerSession to go out of scope
    and finalize methods take care of logging it out properly.
    If you deploy your TopLink Project on the Sytem class path then
    it definately won't work. You'd have to restart the server every time.
    But if the TopLink Project is deployed inside of an .ear file
    and if you pass the correct ClassLoader to the
    SessionManager.getSession( .... ) call then TopLink Session will
    be re-started when you hot deploy the .earBased on this, the solution might be to deploy your EJBs in an ear file. Everything else looks OK. Can you try this and let us know?
    Thanks,
    Pete Farkas

  • TopLink and 9iAS/OC4J 9.0.2

    We are working on project that have
    to work with 9iAS/OC4J 9.0.2, upgrade
    to OC4J 9.0.3 in NOT an option.
    Our J2EE application will only use
    Servlets/JSP (NO EJBs), we need
    to do O/R mapping from Servlets to db.
    How can we install / use TopLink (9.0.3
    or earlier version) from 9iAS/OC4J 9.0.2 ?
    Regards, Radomir.

    Hi Radomir,
    This shouldn't be a problem, the easiest way to set things up would be to place the TopLink.jar file in the \j2ee\home\lib folder of OC4J v9.0.2. If there is something specific that you would like answered in terms of application deployment or setup and configurations, just ask.
    Darren Melanson

Maybe you are looking for

  • Adding a Crystal Report (report or layout) in a specific menu location

    Hi, i want to import a CR Report through SDK. I found an example in the sdk help center. You can find it searching 'Adding a Crystal Report (report or layout)'. It works but going in the Report and layout manager i find it under 'Lost Reports'. i can

  • HR Selection Screen

    Dear all- I am assigned a task of HR report. I am new to HR reporting. The design has selection-screen with the following: •     Personnel Number •     Employment Status •     Personnel Area •     Personnel Subarea •     Employee Group •     Employee

  • Incorrect display format in report column

    Hi. A report have two columns, the first display a value based in a case expression: NVL (DE.IMPORTE, 0) IMP_CHEQ the second colum, displays the value formatted: CASE WHEN DE.IMPORTE IS NULL THEN '-' WHEN DE.IMPORTE > 0 THEN TO_CHAR (DE.IMPORTE, 'FM9

  • Stolen MacBook - Anyway to trace it?

    I've searched all over the Internet for an answer only to find nothing, but I was hoping some Apple genius on here might have a solution for me to try. My MacBook was stolen from my office at work about a week ago. The thief is someone I work with (y

  • Business Partner: Minority status in Bidder Data

    Hello i am analysing the possibility to activate the Minority Status flag + date to in BP transaction of our SRM 4.0. I was able to activate it on the related screen but I am facing problems: 1. for one testing BP I was able to insert X to the flag +