How to use a third party datasource in java se use toplink jpa?

because i am working on a desktop app, i don't have a container.So i can't use a JNDI provider;
but i want to use proxool or dbcp connection pool instead of toplink's connection pool.
how can i handle this?
thx for your help

Define a SessionCustomizer that assigns your data source::
public class MySessionCustomizer implements oracle.toplink.tools.sessionconfiguration.SessionCustomizer {
    public void customize(Session session) throws Exception {
        session.getLogin().setConnector(new oracle.toplink.jndi.JNDIConnector(myDataSource));
}Pass it to createEntityManagerFactory method as a property
Map props = new HashMap();
props.put("toplink.session.customizer", "MySessionCustomizer");

Similar Messages

  • Implementation of SequenceImpl and third party Datasource

    Hi !
    When trying to use a third party datasource that supports sequences like i.e. maxdb (formaly sapdb) there is a problem with the implementation of the oracle.jbo.server.SequenceImpl class.
    This class generates a sql-statement like:
    select sequence_name.NEXTVAL from dual
    which would be correct and then seems to return the value by something like
    aResultSet.getLong('NEXTVAL').
    This should be changed because not all DB-Systems return the nextval with the column name NEXTVAl.
    So could you please be so kind and either change the first thing to:
    select sequence_name.NEXTVAL NEXTVAL from dual
    or even better the second statement to:
    aResultSet.getLong(1).
    regards Hermann

    Thank you very much, Karsten!
    Your answer came as quick as a flash I do not really miss a thing at the KM IMS, but this question was a customers challenge. So I have to explain that Java or ABAP is needed inevitably to access the records of an index or rather perfom a getRecord-functionality with documents stored in TREX.
    Best regards
    Steffen

  • How SAP handles AFS Third Party Orders in ECC system?

    Hi All,
    There is a user exit EXIT_SAPLJ3AM_003 which exist in 4.6C version of SAP for AFS.
    This user exit is for Third Party order processes. This is called within the include LJ3AMFD1 of the main program SAPLJ3AM.
    But this User exit is missing in ECC version of SAP for AFS.
    Basically when the Dierct ship Sales Order is created, corresponding PR is created for it and using this User exit certain fields in this corresponding Purchase Requisition is filled from Sales Order but this user exit is missing in ECC system.
    Could anyone please let me know how SAP handles the Third party Orders in ECC AFS system?
    Thanks,
    Ameesha

    Hi Ameesha,
    Did u find out any solution for it? bcoz, am also hving the same issue!!
    thanq

  • ADF mobile: How to pack a third party jars into apk

    Hi Expert,
    I am using Jdeveloper + ADF mobile 11.1.2.4 to develop an android application. In this application, I need to call some functions in the third party jar files.  I need to add the third party jars into my apk so that those classes can be found during runtime.
    I followed section 17.1.1.1 to add the libraries into my project. However, after I deployed my app to the emulator and tried to run it, it reported "encountered error: classes not found". And I also found that the third party jars don't exist in libs/ directory of the apk. Do you know how to solve the problem: How to reference a third party jar files in my app and make sure it works?
    Thanks,
    Yan

    Create a /libs directory within  Android project directory and copy the JAR files to /libs.
    To build.properties add
    external.libs.dir=libs

  • How will i configure third party billing

    how will i configure third party billing....

    Customize the third party sales in summary:
    1. Create Vendor XK01
    2. Create Material u2013 Material Type as "Trading Goods". Item category group as "BANS".
    3. Assign Item Category TAS to Order type that you are going to use.
    4. A sale order is created and when saved a PR is generated at the background
    5. With reference to SO a PO is created (ME21N). The company raises PO to the vendor.
    6. Vendor delivers the goods and raises bill to company. MM receives the invoice MIRO
    7. Goods receipt MIGO
    8. Goods issue
    9. The item cat TAS or Schedule line cat CS is not relevant for delivery which is evident from the config and, therefore, there is no delivery process attached in the whole process of Third party sales.
    10. Billing
    SD - 3rd party sales order Create Sales Order
    VA01
    Order Type
    Sales org, distr chnl, div
    Enter
    Sold to
    PO #
    Material
    Quantity
    Enter
    Save
    SD - 3rd party sales order View the PR that is created with a third party sales order
    VA01
    Order Number
    Goto Item Overview
    Item ->Schedule Item
    SD - 3rd party sales order View the PR that is created
    ME52N
    Key in the PR number
    Save
    SD - 3rd party sales order Assign the PR to the vendor and create PO
    ME57
    Key in the PR number
    Toggle the "Assigned Purchase Requisition"
    Execute
    Check the box next to the material
    Assign Automatically button
    Click on "Assignments" button
    Click on "Process assignment"
    The "Process Assignment Create PO" box , enter
    Drag the PR and drop in the shopping basket
    Save
    SD - 3rd party sales order Receive Goods
    MIGO_GR
    PO Number
    DN Number
    Batch tab , click on classification
    Serial Numbers tab
    Date of Production
    Flag Item OK
    Check, just in case
    Post
    Save
    SD - 3rd party sales order Create Invoice
    MIRO
    Invoice Date
    Look for the PO , state the vendor and the Material
    Check the box
    Clilck on "Copy"
    Purchase Order Number (bottom half of the screen)
    Amount
    State the baseline date
    Simulate & Post
    Invoice Number
    *Invoice blocked due to date variance
    SD - 3rd party sales order Create a delivery order
    VL01N
    In the order screen , go to the menu Sales Document , select "Deliver"
    Go to "picking" tab
    State the qty and save
    SD - 3rd party sales order Create a billing document
    VF01
    Ensure that the delivery document is correct in the
    Enter
    Go to edit -> Log
    Save
    Also please go through this Building block
    [Third Party Without Shipping Notification|http://help.sap.com/bestpractices/BBLibrary/html/J55_ThirdPartyWOSN_EN_US.htm]
    thanks
    G. Lakshmipathi

  • How to integrate DOCAVE third party tool to sharepoint

    Hi,
    Could someone please let me know , how to integrate DOCAVE third party tool to SharePoint.
    Using DOCAVE: How to do reporting for SharePoint farm.
    How to migrate sharepoint farm from Moss 2007 to sharepoint 2010
    How to do reporting using DOCAVE
    Latest versions available in market.
    Is the tool operation using UI or Scripting.
    Badri

    + to Dimitri,
    this is the place you should be looking for more information -
    http://www.docave.com/SitePages/KB/Main.aspx
    and
    http://www.avepoint.com/resources/user-guides/
    Hope this helps!
    MCITP: SharePoint 2010 Administrator
    MCTS - MOSS 2007 Configuring, .NET 2.0
    | SharePoint Architect | Evangelist |
    http://www.sharepointdeveloper.in/
    http://ramakrishnaraja.blogspot.com/

  • How to access the third party plugin

    i am new to javascript and InDesign.now my work is to access the Third Party plugin styles, the third Pary plugin is all about InMath.
    is it possible to access third party plugin through java prgramming.
    plz help me.....
    by
    subha

    Hello, I'm not a very accomplished JavaScripter, but have found that you can access some InMath at least in CS3. I only needed to be able to refresh the InMath styles from a script.
    If you run this script...
    app.menuActions.everyItem().name;
    it will return the names of all the available menu actions. The list is quite long, but it includes some of the InMath actions. At least the ones you can assign keyboard shortcuts to. In my case, I needed to refresh the InMath styles from a script. So I found the name of the InMath menu action that was returned from the above script (Refresh All InMath Expressions) and was able to make a script that refreshed the styles like this.
    app.menuActions.itemByName("Refresh All InMath Expressions").invoke();
    However, I'm trying to figure out how to do this in CS2 because my client is still using CS2 and can't find the CS2 version of menuActions.
    I think I read your other post about the find/change fillColor bug. I was stuck in the same place and now have it working thanks to the posted help. I was working on a script that would fix fractions based on their colors.
    Hope this helps.
    Andrea

  • TS2551 how do i reinstall third party plug ins to iPhoto? such as Diptic?

    hi
    I was using Diptic with iphotos just fine until I was asked by iphoto to install a update. Afterward I could no longer see my diptic files when trying to load pics another another site. Please tell me how to reinstall the third party diptic to my iphoto ty

    As a general rule it's up to the plug-in maker to update their plug-in when the app is updated. So you will need to contact them for support.

  • How do i enable third party cookies on my macbook pro?

    how do i enable third party cookies on my macbook pro?

    You mean in a particular browser?
    Safari>Preferences>Privacy>third party cookies

  • How do I allow third party cookies for a website and how do I turn off pop-up blocker?

    How do I allow third party cookies for websites and how do I turn off pop-up blocker?

    Allow third party cookies at Safari > Preferences > Privacy > Block Cookies - "Never".
    Turn off the pop-up blocker at Safari > Preferences > Security > Block pop-up windows = unchecked

  • How  to map the Third Party materila for Job Wok process in our Plant

    Dear All,
    please guide me how  to map the  Third Party  Subcontracting in Our Plant Means Customer materials to be Processed  in our Plant and  then we have to sent to customer after processing.
    please  Brief me  with the Proces sflow
    Reagrds
    kishore Edagali

    1) create a 2 material as non valuated (one incoming material "A1"& after processed material"B1")
    2) create a BOM. for A1
    & assign the B1 and maintain respective conversion
    3) create a routing for A1 and assign the relevant work center
    4) create a manual PO to receive the material from customer and store it in storage location
    5) create a production order and release the order  in co01
    6)issue the material :B1 to the order 9 in MB1a, 261 movement)
    7) and confirm the order (so that cost incurred for order is captured)
    8) create a  sale order and maintain service price in PR00 and send the material A1 to customer.

  • How can I enable third party cookies?

    How can I enable third party cookies?

    Demo, I just did some reseach on this question and while one an set iPad to accept cookies, from what I read, it doesn't work for 3rd party cookies.  Maybe I'm not getting it though, which is certainly possible..

  • How do I move (third party purchased) actions from pse 10 to pse 13?

    How do I move third party actions from pse 10 to pse 13?  Thanks!

    Please post Photoshop Elements related queries over at
    http://forums.adobe.com/community/photoshop_elements

  • How do i enable third party cookies to play minecraft on a mac

    how do i enable third party cookies to play minecraft on a mac

    In the preferences of your browser.

  • Integrating third party components in java

    Hi All,
    I have a doubt, as in .net u can add third party components in ur application and use the functionality of that e.g u can add third party datagrid in .net,
    In similar way are there any third party components in java, if yes how do we integrate in our application
    Please reply.
    Thanks,
    Mahesh.

    There are lots and lots of 3rd party components and libraries in Java. All you have to do to use 3rd party components is to add jars to the classpath and write some code which uses the classes.
    Kaj

Maybe you are looking for

  • Hard drive crashed - how to restore iTunes

    A bad sector hung up my hard drive. I have a new drive now, but need to restore iTunes and songs. I have almost all my songs backed up on an external drive. SO if I download iTunes and the add in the songs will I be good and can I synch between iTune

  • When to use what facelet file

    hello sir 1. I have developed one project , where different types of facelet pages are created. but i m confused, what is the rule to use these facelet file , different options displays are as : new Facelet Composition Page new Facelet Footer new Fac

  • How do I get twitter integration working in lion?

    How do I 'turn on' twitter integration in Lion? I've seen loads of blogs saying it's built into lion all you have to do is install the official twitter app. Well I've installed it and have it open. I two finger click on some text and there is no opti

  • Compaq mini C bios password reset FOR CODE CNU0092JXJ

    please i need help to reset my compaq mini cq10 CNU0092JXJ bios password This question was solved. View Solution.

  • How to re-install BPS standard objects

    Experts,   I've deleted standard BPS objects, such as Planning Area:4TPM3000   how to get my object back?   there is no kind of thing in business content I can find and active. Thanks.