How to create and use custom exceptions with ADF JClient

Hi
The forms developed using ADF JClient by default use pessimistic locking and throw an AlreadyLockedException if more than one user tries to modify the same record. I need to customize this exception so as to display the name of the Oracle user who has locked the record. Is this feasible? If yes, how can I achieve this.
PS: I've already tried creating my own messageBundle to customize the error messages. Even though I can change the message there, I'm unable to find any information in AlreadyLockedException or JboException that directly gives me the user or the oracle session id that has locked the record.

T A,
this information is not exposed through the JDBC driver and thus nit available to BC4J. So the answer is that you can't get this information.
Frank

Similar Messages

  • How to create and use Data Vault with HTML/JavaScript (SAPUI5) for Mobile Apps?

    Hello,
    I am creating a demo Enterprise Mobile App, for cross platform and I want to use the Data Vault.
    I am not able to figure out how to implement the Data Vault with HTML/JavaScript i.e. SAPUI5 for cross platform mobile apps I have a tutorial, but it is for Android based apps. Where as I want it for iOS as well. I guess, in this case, implementing the Data Vault using SAPUI5 over HTML and JavaScript would be  better.
    If anyone has any links or sample code to implement Data vault in HTML/JavaScript (SAPUI5) or specific for iOS apps, it would be great.
    Thank you.

    Hi,
    This is the "SAP Mobile Documents" community, so this seems to be the wrong place for asking your question related to Data Vault / SAPUI5.
    Maybe you should post your question here: http://scn.sap.com/community/developer-center/front-end.
    best regards,
    Ingo

  • HOW TO CREATE  and  USE EVENTS IN WORKFLOWS .

    HOW TO CREATE  and  USE EVENTS IN WORKFLOWS with the help of classes.
    What i am doing is..
    open se24
    event tab->event name->parameters
    method tab->method name->event handler->copy parameters
    interface tab->if_workflow->enter
    tell me what else to do step by step
    Another important thing is that HOW to use these class events to trigger the workflows.
    REPLY ASAP
    THXS IN ADVANCE

    Hi,
    Pl. see this blog...
    Raising ABAP OO events for workflow
    Regards,
    JOy.

  • How to create and use dynamic queue in JMS

    Plz tell me how to create and use a dynamic queue in jms and can reciever file lookup it as it lookup any server configurred queue(written in the server).

    Hi,
    We can use Azure File services to do this, for more information, please have a look at this article:
    http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx. The Azure File service exposes file shares using the standard SMB 2.1 protocol. Applications running in Azure can now easily share files between
    VMs using standard and familiar file system APIs like ReadFile and WriteFile.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to create and use mutable array of UInt8

    Hello!
    If I get it right, UInt8 *buffer, buffer - is a pointer to a start of array?
    Then how to create and use mutable array of UInt8 pointers?
    The main target is a creation of the module that will store some byte array requests and will send all of them at the propriate moment.

    I try
    - (void) scheduleRequest:(UInt8 *)request {
    if (!scheduledRequests) scheduledRequests = [[NSMutableArray array] retain];
    [scheduledRequests addObject:request];
    But get warning:"passing argument 1 of 'addObject:' from incompatible pointer type"

  • How to Create  and use of Coherence servers in weblogic serevr 11g (10.3.6)?

    how to Create  and use of Coherence servers in weblogic serevr 11g (10.3.6)?

    See the below discussion
    How to create and use Webservice controls using WSDL in weblogic portal10.3
    Thanks,
    Venkat Sarvabatla

  • How to Create and Remove CMP Entity with Toplink in same transaction??

    Hi, i have a problem to create and delete cmp intances with toplink.
    I create a entity bean and remove the same entity bean in the same transaction.
    ie. my method have this code:
    bean a = homeBean.create(pk);
    a.remove();
    bean a = homeBean.create(pk);
    this code throws a javax.ejb.DuplicateKeyException
    Toplink not remove CMP, execute the two calls of create first.
    What configure toplink to support this case ??
    Is this possible ??
    I Can't controling the transaction manualy i'm using CMP entity beans with CMT.
    tanks.
    Message was edited by:
    Carlos Lacerda

    BM,
    If you want to import the utils package into your code, then the location of the utils package has to be in your CLASSPATH. JDeveloper uses libraries to define a project's CLASSPATH.
    I'm not sure exactly what's going on here, but you might want to read the information about packages and class libraries in the online documentation. It's under:
    User Guides
    -> Working with JDeveloper
    -> Packages and Class Libraries
    Blaise

  • Data Modeller: how to create and use collection type

    Hello,
    basically subj. I'm not clear how to ( for example ) create and use the data type based off the varray data type.
    Please advise.
    thank you
    andrew

    Hi Andrew,
    you can create collection types (varray/table) in two ways:
    1) in browser - find "Data Types">"Collection types" node use pop-up menu - it's just "create new collection type" there
    2) in Data types model diagram - you can create collection of "certain structured type" or collection of references to it - use "new Collection ..." tool and first click on referred structured type and after that on structured type that will hold the collection - new attribute is added in latter type and if there is no such collection type already defined new collection type is created and you can edit it later.
    Philip

  • Need Ideas for creating and using Custom Business Object

    Hello Guys,
    I am developing an application which uses a Request->Approve->Create approach for creating Purchase documents.
    Now I am a little puzzled about how to make use of the Business Object BUS2014.
    The application I am developing has its own unique 'Request Number'  (say REQID)  which will point to the Request for Creation of a purchase order.
    Whenever a Request is created (from a Z-Tcode) a workflow needs to be initiated and it has to be sent to the approver.
    The Purchase Document will be created once the approver approves.
    Now my confusion here is, if I use BUS2014, the object will be instantiated only during the final step of the workflow. But I need an instance during the beginning of the Requestor ->Approver negotiations as I am playing with events. These events needs an Object_key.
    How should I proceed here?
    Should I create a new logical Business Object like ZPOREQ where I have the above mentioned REQID as the key?
    And should I have an attribute of type BUS2014 inside the custom BO?
    How will I make use of the methods like BUS2014.Create etc which I may need to create the purchase document?
    Any small direction will be a huge help for me to get used to this wilderness.

    Hi,
    You should continue with the ABAP class idea. The business objects are kind of "obsolete" already, and if there is a need to create a new "object", ABAP classes are the way to go. Business objects are still useful, but I normally use them only when an existing standard business object fulfills the requirements (possibly with slight additions) which is almost never. 
    From my point of view you can use the existing class. Depending on the circumstances I normally have just one class that I use for both workflow and the possible other functionality that is required, but you have to understand that I have this goal in my mind already when starting the development process. As your class most probably has many useful features already (such as you have the header and item data as attributes etc. (if I understood correctly?), these are also useful in in workflow (class attributes will be available in WF container etc.). 
    If you are hesitant to use the same class directly in your workflow, you could also create a new class ZCL_REQUEST_FOR_WF (with the workflow interface), and then simply add your existing class ZCL_WF_REQUEST as an attribute to this new class. Then this new workflow class could include the pure workflow stuff, and your existing class the non-workflow stuff. But this most probably will not make much sense - just implement the if_workflow interface in your existing class (this is just one possibility that you might consider.)
    Regards,
    Karri

  • How to create and use a boot volume clone?

    Hello. My name is Cassiano and I'm NOT a system administrator. I'm an architect. I design and build houses, not systems. And the reason I'm telling you that is because I need your help.
    The short version of my problem is this: "How do I create a boot volume clone", but I think I need to tell you the whole story.
    Here at the office I work we have 18 iMacs and 1 Xserve running OS X Server 10.4.9.
    Although I'm an architect I'm responsible to keep the computers up and running.
    This is not because I want, but just because I'm the one here that knows a bit more about this stuff and although I'm not an expert, I know quite a lot about this stuff. I did pretty much everything here. Configured the network, firewall, installed the Xserve, etc, but of course that if something breaks we just take the computer to apple store and wait for it to be fixed
    The Xserve has 3 HDs inside. 1 at bay1 which is the boot and 2 others on bay2 and bay3. The HDs on bay2 and bay3 are working as one using SoftRAID and we use this volume to store all of our data. That is the reason we chose to mirror them using softRaid. If one fails, the other has everything and we just have to get a new one.
    Last week we decided to setup the Xserve to be our mail server as well, so I turned on the Mail Service and after a lot of reading I managed to configure it correctly. In fact we have our MX records pointing to a company that relays the email to our Xserve, so it is not really accessible from the outside world.
    But this Mail thing made me loose my sleep. The reason is: before that our Xserve was used only as a file repository. So if it would break or something all we have to do is take the HD out of it, send it to apple store and plug the HD on another computer. All of our files would be safe and everybody would be happy. Of course this is an over simplificated situation, but that is pretty much how it would go.
    But now everything is different. Every person here has the email account configured to the Xserve, which means that if it breaks or something goes wrong, no one will be able to send or receive emails. The new messages will not be lost, because the company that relays the emails to us will keep them there, but things will get chaotic here.
    When reading this document here: http://developer.apple.com/documentation/MacOSXServer/Conceptual/XServerProgrammingGuide/Articles/abpinstall.html I saw this section that said: "Cloning the Boot Volume"
    Where it says: The use of the boot volume clones is entirely to ensure the highest availability possible for your system volume, not your client data.
    So, finally, my question is. How do I implement this "boot volume clone"? If I buy a new HD and place it on bay4 will I be able to do that? How?
    After doing it if something goes wrong how do I use the "clone volume"?
    Thank you for your patience and any help is greatly appreciated.
    Best regards,
    Cassiano Forestier
    Specs of the Xserve
    Machine Name: Xserve
    Machine Model: Xserve1,1
    Processor Name: Dual-Core Intel Xeon
    Processor Speed: 2 GHz
    Number Of Processors: 2
    Total Number Of Cores: 4
    L2 Cache (per processor): 4 MB
    Memory: 1 GB
    Bus Speed: 1.33 GHz
    Boot ROM Version: XS11.0080.B00
    SMC Version: 1.11f5
    LOM Revision: 1.2.1

    Yes, your server is becoming central to your business universe. Mine, too.
    Boot from DVD, and use Disk Utility to create the clone. Another way of looking at this is as a photocopy or snapshot or block-by-block copy of the state of the disk at the moment the clone is made. You can then either boot from the clone (if needed; assuming the clone is on a bootable device), or boot from the DVD and copy the clone back to the original (or replacement) disk; this restores the disk state to that of the time the clone was made.
    Yes, you'll need a disk to clone to. Probably more than one, since you'll probably want to set up a rotating pool, should you need to go back to an older snapshot.
    You're undoubtedly also approaching a requirement for either an add-on storage array or storage shelf via one of your PCI-X or PCIe I/O expansion slots, or adding a FC SAN into an open PCI-X or PCIe slot and adding the external FC SAN Xserve RAID configuration that Apple sells.
    The external storage can be "just a bunch of disks (JBOD)" in an external disk shelf, or an external RAID via add-in eSATA or add-in SCSI controller, or via Fibre Channel for the Xserve RAID configuration for the FC SAN configuration, or (for lower speeds) FireWire or (lowest) USB.
    If your data is worth it and you want to deal centrally with Apple and your budget allows it (qv: "if your data is worth it"), Xserve RAID is the way to go. The external storage shelf is certainly a feasible approach -- but you'll likely end up dealing with a third-party for the configuration, set-up and third-party storage gear.
    If you're looking for things that can go wrong here, recognize that RAID only protects against drive failure. RAID does not protect against accidental nor malicious file deletions, fat-fingered operator commands, nor against application or system-level disk corruptions. RAID (only) seeks to protect against disk errors. This gets into tapes, or near-line disk copies, or other such media. External tape, or other such archival media, and particularly media that can be sent off-site on a regular basis.
    It's good that you're thinking about this stuff, too.

  • How to create and use scales for DAQ-6014 in Labview?

    Hello,
    In my application, I use the DAQmx-driver to read the 16 analog input terminals of my DAQ-Card. I create a task with all the 16 channels and define for each channels the input domain (from 0 to 10V) and configure them as NRSE. Then I configure my task to measure the waveforms during 10s with 1000 Hz each time I need it.
    The waveform I measure are raw data and I need to scale them to get a mesurement with physical signification. This is actually done after each measure, which costs a lot of time (almost 5 seconds). Then I tried to use the DAQmx Create Scale.vi to create scales and attach them to the channels during my task creation. The creation of scale works fine and I can attach them to the channels. But when I do my measure, I get the raw data - unscaled.
    I have no idea, what I am doing wrong. I look for some examples on how to use the DAQmx Create Scale.vi but I can't find none.
    Does anybody already have some experiences with this VI?
    Cheers,
    Olivier

    Hi,
    May be I don't get exactly what you mean with:
    "Right click On DAQmx read and check the options with DAQmx AI read (it is a polymorphic VI) ."
    I set the DAQmx read polymorphic VI to the option "Analog 1D Wfm NChan NSamp".
    Anyway, I send you 3 VI:
    - NIDAQ_6014_CreateScales.vi: where I create my scales
    - NIDAQ_6014_StartAIN_Scaled.vi: where I create my task and use the scales
    - Measure.WaveFormReader.vi: where I read my data
    May can you see what is wrong.
    Cheers.
    Attachments:
    Measure.WaveFormReader.vi ‏39 KB
    NIDAQ_6014_CreateScales.vi ‏22 KB
    NIDAQ_6014_StartAIN_Scaled.vi ‏29 KB

  • How to create and use Webservice controls using WSDL in weblogic portal10.3

    Hi All,
    I have WSDL , How to create webservice controls using the WSDL in weblogic portal 10.3 and use those controls to invoke those webservice methods?
    please give me the documents links for this.
    Thanks
    Venkata Sarvabatla

    As far as I remember, Controls can be called only from Pageflows, BackingFiles, Another Control (Like control calling another control) etc. In pageflow we use annotation @Control and give control classname and a varialbe for that. I am pretty sure this annotation may not work from normal java class and in your case a JAVA JSR Class.
    If you installed the samples, refer the samples from WLS: C:\beawlp103\wlserver_10.3\samples\server\examples\src\examples\webservices. They have lot of fully ready to work samples with instructions. I used clientgen ant task. But you can use standard SUN JDK Command "wsimport" also to generate the java files from the WSDL. Open any command prompt. If java is in classpath, just run wsimport and that should give an idea.
    Goud

  • How to Create and Use ldb in reports?

    Give examples that uses ldb.

    Hi Albert
    You can create and maintain logical databases via the transaction <b>SE36</b>.
    You can relate a LDB to your program using the 'Attributes' window by entering the LDB name to the relevant field.
    Additional to what Andreas told, many HR programs use LDB. Check programs with 'RH*'.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • HOW TO CREATE AND USE ModbusSlave drivers ?

    the idea is to have a ModbusSlave driver to test the applications developed as Master modbus; with both drivers running in the same computer in both com 1 and com 2.

    This is an excellent idea for troubleshooting, which we have been using and recommending for long. ModbusSlave Object simulates a Modbus PLC within Lookout. This can be used to test and troubleshoot the functioning of the Modbus driver object without requiring an actual PLC/RTU.
    To use the ModbusSlave object, create the Object as if your PC were the PLC. So, assign it a COM port, baud rate, etc. Let's say you assign it COM2.
    Now, create the drive Modbus object on COM1. Then, physically connect the two COM ports with a null-modem (crossed) serial cable. So, basically you fool the Modbus driver object that there's a Modbus PLC out there but you loop-back and connect to the other COM port and use the ModbusSlave.
    Once you've done this, you can
    simulate some values within the Slave by connecting some Pots to the Slave's registers. You can then try reading these with the driver Modbus object, etc.
    Hope this helps.
    Khalid

  • How to Create and Use MQ Adapter(IBM MQ Series) in BPEL

    Hi,
    I am using Oracle SOA Suite 10.1.3.3.
    I am very new to the Usage of MQ Adapter(IBM MQ Series) in BPEL.
    what is the procedure to create our own Message Queues(i.e., MQ Series)?
    It would be great if anybody share the idea of how to create the MQ and usage of same in BPEL Workflows.
    is it mandatory to install websphere to create the MQ?
    If possible,share the related docs for the same.
    Any suggestions/views will be great.
    Cheers,
    Balaji
    Edited by: user580285 on Nov 4, 2008 5:44 AM

    Hi,
    Kindly refer to the BPEL Dev Guide and in that please refer to the Appendix which contains MQ Series Adapter.
    For this you need to provide the details like: -
    MQ Server Host, port, queue manager name etc. Also you need not to install IBM Websphere MQ, you can work on it remotely as well.

Maybe you are looking for