How can i using datasource in toplink's map file

In the TopLink map :
<toplink:login xsi:type="toplink:database-login">
<toplink:platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</toplink:platform-class>
<toplink:user-name>test</toplink:user-name> <toplink:password>C23487CFA591952D44310804F3D591CB</toplink:password>
<toplink:sequencing>
<toplink:default-sequence xsi:type="toplink:native-sequence">
<toplink:preallocation-size>1</toplink:preallocation-size>
</toplink:default-sequence>
</toplink:sequencing>
<toplink:driver-class>oracle.jdbc.driver.OracleDriver</toplink:driver-class>
<toplink:connection-url>jdbc:oracle:thin:@192.168.0.1:1521:testdb</toplink:connection-url>
<toplink:bind-all-parameters>true</toplink:bind-all-parameters>
</toplink:login>
How can i modify it using datasource?

The login information stored in the map file is good for direct connection and design time login information.
For your runtime login information I would use the sessions configuration (sessions.xml). It provides complete deployment configuration:
   <session>
      <name>my-session</name>
      <!-- This references the ORM map XML file -->
      <project-xml>META-INF/employee-basic.xml</project-xml>
      <session-type>
         <server-session/>
      </session-type>
      <login>
         <datasource>jdbc/TopLinkDS</datasource>
         <uses-external-connection-pool>true</uses-external-connection-pool>
         <uses-external-transaction-controller>true</uses-external-transaction-controller>
      </login>
      <external-transaction-controller-class>oracle.toplink.essentials.transaction.oc4j.Oc4jTransactionController</external-transaction-controller-class>
      <enable-logging>true</enable-logging>
      <logging-options>
         <log-exceptions>true</log-exceptions>
         <print-thread>false</print-thread>
         <print-date>false</print-date>
      </logging-options>
   </session>Doug

Similar Messages

  • How can I use JTA in Toplink???

    Toplink transaction is setted by auto commit.
    I'm using Toplink Workbench for relational object mappings...
    I want to use JTA to controll transaction, which file should I configure in toplink Workbench?

    Please go through the following URLs
    1)http://www.oracle.com/technology/products/ias/toplink/doc/1013/MAIN/_html/sescfg009.htm#BCGJCJCA
    2)http://www.oracle.com/technology/products/ias/toplink/doc/1013/MAIN/_html/uowadv013.htm#CACHFICI

  • How can I use Airport Extreme just as a file server - no wifi

    I'm setting up a new Apple environment for an invalid music buff.  Here are the components, all newly purchased.
    MacBook Pro
    Airport Extreme
    Airport Express
    I was handed a G-Drive with a large iTunes file collection on it.
    The user will have Comcast as his network provider and he already has a Comcast wireless router, so none of the Apple devices will need to be used as a wireless router or base station (assuming I understand what Apple means by a "base station").
    The Airport Express has the primary function of acting as an AirPlay device, feeding an analog music signal to the user's hi-end audio system (Denon integrated amplifier, Thiel Loudspeakers).
    The Airport Extreme has the sole function of acting as a network file share for the G-Drive.
    The MacBook Pro will operate iTunes and will get its music files from the network shared G-Drive and send it to the AirPlay device, which will feed the music signal to the hi-end audio system.
    I am able to get the Airport Express to simply act as a wireless client on the Comcast provided wireless network.  The MacBook Pro is also on the network and can see the Airport Express as an AirPlay device and send music to the audio system.
    What I'm having problems with is getting the Airport Extreme to simply act as a file server on this LAN.  It can either work in bridged mode and just be a wireless network client, or I can readily run an ethernet cable from the Airport Extreme to the Airport Express, or even to the Comcast router. 
    I tried to connect the MacBook Pro to the Airport Extreme with an ethernet cable and get it to "join an existing network", but it refused to recognize the Comcast provided network.  All it could see were some networks in homes nearby.
    I was hoping that if I just ran a network cable between the Airport Extreme and the Airport Express, that it would just get a network address over DHCP through the Airport Express.  Nope.
    So I'm stuck.   How do I get the Airport Express to simply act as a file server for the G-Drive on my LAN?

    +Can I use the Airport Extreme base station as a wired router, with wireless disabled for the time being?+
    Sure, but it will probably take just as much time...a few minutes....to turn the wireless off than simply change the name on the default wireless network to your personal choice.
    The AirPort Extreme is pre-configured to create a wireless network when it is hooked up to a modem. All you need do is assign a name to this network and establish a password. If you don't want to do this, you can turn the wireless off and use the device as a wired only router.
    AirPort Utility, the application that is used to setup the AirPort Extreme has a simple guided step by step process for you to configure the device the way you want.

  • How can I use automator to import a .csv file into a an excel file

    I would still like all the import settings that I get if I am using excel to do the process, i.e. going in with the text format instead of the general format. That way my dates don't change

    You'll need to use Applescript in Automator.
    Note:  File extension cannot be CSV (Excel will assume that the file is comma separated), so add an action to copy or rename with extension TXT.
    (You can rename back at end of Workflow is needed)
    The Applescript Action is:
    on run {input, parameters}
         repeat with f in input
              tell application "Microsoft Excel"
                   open text file filename (f as string) data type delimited field info {{1, text format}} other char "|" with use other
              end tell
          end repeat
          eturn input
    end run
    NOTE: This is formating the 1st col to text
    If you need to format the second, then you need to:
      open text file filename (f as string) data type delimited field info {{1, general format}, {2, text format}} other char "|" with use other
    (You'll need to list the 1st col, 2nd col, etc until you get to the col to format as text).  Formats are (from the Applescript Excel Library):
    [field info list] : A list contain parse information for the individual columns of data.
    Formats are general format, text format, MDY format, DMY format, YMD format, MYD format, DYM format, YDM format, skip column.
    Or you can skip using Automator and just use an Applescript App (this is a droplet, just drop the files on the icon, or click to choose files):
    on run
         set fs to choose file with prompt "Select one or more files to open:" default location alias (the path to desktop folder as text) with multiple selections allowed
         proceed(fs)
    end run
    on open fs
         proceed(fs)
    end open
    on proceed(fs)
         repeat with f in fs
              tell application "Microsoft Excel"
                   open text file filename (f as string) data type delimited field info {{1, text format}} other char "|" with use other
               end tell
          end repeat
    end proceed

  • How can I use my time capsule to save files from my windows PC (Windows 8.1)?

    I have been to see the iStore close to where I live but I am frustrated to say that they are no help what so ever. The technical desk there freely admits that they do not how to do it and all they say is "apparently it is easy. Just follow the instructions on screen" which helps me no end!
    I have the Time Capsule set up on my mac and want to use part of the disc to save my files from my Windows PC (running Windows 8.1) that is on the same home network.
    I have found the apple forums so helpful in the past that I am pinning on my hopes on anyone that can help me via the forum now!

    Load the airport utility for windows. Sadly the most recent one is old.
    http://support.apple.com/kb/dl1547
    Although it is for windows 7 it does work on 8 and 8.1 .. tell us if you have problems loading it. Some people find it won't work without using safe mode.
    The utility will not help a lot to setup the latest model TC.. it is fine for Gen4 and earlier. But it does load bonjour for windows and a disk access agent.
    The TC should run simple names.. Short.. keep them below 10 characters if you can. No spaces and pure alphanumeric.
    That includes the base station name and wireless name.
    Once all of that is correct, open windows explorer and type in the address bar.
    \\TCname or \\TCipaddress where you replace TCname with the new short name or TCipaddress with obviously its actual IP.
    You will then get a request for username and password. Username is whatever.. admin will do. Password type in your disk access password.. public by default.
    TC is not designed to allow partitions so you cannot partition the TC disk. Create a folder and simply copy and paste your files to the folder.
    NOTE:: The TC cannot back itself up. So make sure you do not move files to the TC without having another copy.
    NOTE:: The TC does not happily mix TM backups and data.
    See http://pondini.org/TM/Home.html For info about TM and the TC.
    This area in particular.
    Q3 http://pondini.org/TM/Time_Capsule.html
    On mixing data and backups.

  • How can I use a applet in a JSP file?

    hi
    I failed to use applet in a jsp file.My workspace is a BC4J type. I put the applet's source file in business component project.the jsp is in JSP project.
    The jsp file calls applet by <jsp:plugin></jsp:plugin> style.
    The error is can't find the applet class.
    why? Thank someone for give me help.

    Actually using jsp applet tags does not mean that it is taking care of that the classes are available. It simply renders the Applet tag tothe JSP page. If e.g. teh codebase is specified as /java/, then there should be a mapping to the Java class location with thename of /java/. If codebase is not provided, then the Java class must be in the classpath of the JSp servlet.
    Frank

  • How can I use loop in graphical message mapping

    The source input XML is like:
    <bookstore>
      <book>
           <item1>xxx</item1>
           <item2>yyy</item2>
      </book>
      <book>
            <item1>zzz</item1>
           <item2>www</item2> 
    </book>
    </bookstore>
    I want to create an output XML like
    <output>
       <item>
            <item1>xxx</item1>
             <item2>yyy</item2>
        </item>
       <item>
            <item1>xxx</item1>
             <item2>www</item2>
        </item>
       <item>
            <item1>zzz</item1>
             <item2>www</item2>
        </item>
       <item>
            <item1>xxx</item1>
             <item2>yyy</item2>
        </item>
    </output>
    That means I want to do permutation and combination for all <item1> <item2> under <book>.
    Of course I can write a customer function to do it, but I want to basically use the buildin functions to do the graphical message mapping for this.
    Any idea?  thank you.

    well, I'm not very clear of those 2 English words
    What I want is to list all possible combination of item1 and item2 (and in fact, we have item3, item4, ....etc).
    example
    input: 
    <item>
              <item1> 111 </item1>
              <item2> 222 </item2>
              <item3> 333 </item3>
    </item>
    <item>
              <item1> aaa </item1>
              <item2> bbb </item2>
              <item3> ccc </item3>
    </item>
    I want to get
    <item><Item1>111>/item1> <item2>222</item2> <item3>333</item3> </item>
    <item><Item1>111>/item1> <item2>222</item2> <item3>ccc</item3> </item>
    <item><Item1>111>/item1> <item2>bbb</item2> <item3>333</item3> </item>
    <item><Item1>111>/item1> <item2>bbb</item2> <item3>ccc</item3> </item>
    <item><Item1>aaa>/item1> <item2>222</item2> <item3>333</item3> </item>
    <item><Item1>aaa>/item1> <item2>222</item2> <item3>ccc</item3> </item>
    <item><Item1>aaa>/item1> <item2>bbb</item2> <item3>333</item3> </item>
    <item><Item1>aaa>/item1> <item2>bbb</item2> <item3>ccc</item3> </item>

  • How can I use Anquet or similar mountain mapping software on my iMac?

    As a keen hillwalker I would like to be able to use Anquet or similar maps - at present I use well-worn OS 1:50,000 maps but would like to print out relevant maps for whatever hill I'm doing, and possibly also get into using a GPS.
    According to the Anquet website their software doesn't work on Macs. I don't want to switch to PC but might have to. Any way round the problem without costing too much?

    you could try looking at this-
    http://ipod.about.com/od/ipad/qt/sync-photos-to-ipad.htm
    Basically
    >open itunes
    >go to ipad device screen
    >photos tab
    >you should get the option to sync folders containing pictures from your mac
    >select the folders you wish to sync
    >hit sync button

  • User Variable Options: How can I use them in a Business Rule?

    How can I use a "User Variable" set in File / Preferences in a Business Rule? It doesn't seem to appear as an Essbase Substitution Variable or as a Global Variable of Business Rules. The only way I know how to use it is to place the dimension on the POV or Page dimension of a data form, then use a Global Variable in a run time prompt to pick the member and run a BR against it, or some function of it.
    What do I do if I want to have that dimension in Columns or Rows? How can I set a BR to directly reference the member chosen under User Variable Options?
    J

    Thanks Alp, but I can't seem to reproduce what you are writing below. I want to refer my Business Rule to address the value set in File / Preferences / User Variable Options; no matter what members I show elsewhere in the data form.
    My other workaround is through a run time prompt and hope the user selects the appropriate user variable at the very bottom of the selection list in order to calculate the appropriate list of members.
    J

  • How can I use TopLink for querys that have two and more tables?

    I use TopLink today, and I can use one table to query, but how can I use TopLink for querys that have two and more tables?
    Thank you for see and answer this question.

    You can write a custom SQL query and map it to an object as needed. You can also use the Toplink query language "anyOf" or "get" commands to map two tables as long as you map them as one to one (get command) or one to many (anyOf command) in the toplink mapping workbench.
    Zev.
    check out oracle.toplink.expressions.Expression in the 10.1.3 API

  • How can i use connection pool within the sqlj?

    hello
    i am a beginner to sqlj,i find all of the sample code from the oracle DON'T use connectionpool,they only write the database url to "connection.properties" file,but i think in the production environment we should use the connectionpool to optimise the querying,i usually use the weblogic connection pool.
    how can i use the connection pool within the sqlj?
    thank you very much!

    Im not sure if I understand. :)
    English is not my best language...
    Looking up the connection again? Do you mean I have to create new DataSource object and bind it again to ServletContext?

  • How can I use jbo:InputSelect for a char type filed?

    How can I use <jbo:InputSelect for a char type filed?
    I have two tables. One is room (primary key is room(type is char)), another table is responsibility (foreign ker is room(type is char)). Both tables have same length for room column.
    There is a problem:
    If I use (in the "DataEditComponent.jsp" file)
    <jbo:InputSelect multiple="false" datasource="dsEdit" displaydatasource="roomData" displaydataitem="ROOM" displayvaluedataitem="ROOM" ></jbo:InputSelect>
    to get the room input for responsibility from combobox(Datasource roomData is from room table). In the form the room field cannot bind the data in combobox, alway select the first item. And if I select one item and click the update button.There is an error message:
    Error Message: JBO-27010: Attribute set with value H409 for Room in Responsibility has invalid precision/scale
    I found If I changed the field type from char to varchar2 in database also change the entity objects, it works well. I wonder if there are any diffrence using <jbo:InputSelect tag in char and varchar2 type. How can I use <jbo:InputSelect for a char type filed as i don't want to change my datatype in database at this stage.
    I try this in JDeveloper 9.03, 9.034, 9.04. The result is the same.

    If I were in your shoes, here's how I would do it:
    <%-- Assuming you have dsRoom and dsResponsibility --%>
    <%-- Select is an HTML tag --%>
    <select name="ROOM" size="1">
    <% char roomID =""; // Init your character var
    // Open a rowsetIterator to get the records and add them to the LOV
    <jbo:RowsetIterate datasource="dsResponsibility" changecurrentrow="true" >
    <% roomID = (char)dsResponsibility.getRowSet().getCurrentRow().getAttribute("ROOM"); // Grab the char value
    // add the value to the LOV
    %>
    <option value="<%=roomID%>"><%=roomID%></option>
    </jbo:RowsetIterate>
    </select>
    If you are using this as part of an edit page you may want to utilize the "selected" option of the <option> tag. In one instance I am doing this on an edit page because the use may open an existing record. If I don't account for it, then it will change the DB to contain the first value from the list! You can do a simple check like:
    //Set the current record's char
    char curRecord = (char)rowEdit.getAttribute("ROOM");
    // inside the iterate:
    if (curRecord == roomID) {
    <option value="<%=roomID%>" selected><%=roomID%></option>
    } else {
    <option value="<%=roomID%>" ><%=roomID%></option>
    Hope that helps!

  • How can I use this RFC function

    I just wanna create a monitor as same as TCODE ST06
    so
    I Added a TextBox, a Button and a DataGrid. and then everything has finished.as same as following step for "RFC_CUSTOMER_GET" from SAP connector 2.0 help
    but how can I use the function? (VB.net 2003) I debugged the function in SE37 the function only need 1 parameters
    so,I scratched some statments... but it is still not correct
            Dim num1 As Integer
            Dim dst As CPUSAPUSAGE.CPU_SINGLETable
            Me.SapProxy11.Get_Cpu_Single("local", "", num1, num1, num1, num1, "", num1, num1, num1, num1, dst)
    please tell me details steps
    Thank in advance.
    Yi
    Create a “Windows Forms” application.
    Add an empty SAP Connection class with the ABAP functions
    RFC_CUSTOMER_GET and RFC_CUSTOMER_UPDATE.
    Leave the proxy designer open. Go to the SAP Proxy toolbox and drag the “Proxy field” icon to the designer.
    Rename the new “Field1” to “Tab”. Change the “Type” property to BRFCKNA1Table. To do this, use the drop down icon.
    Note that the ReadOnly property automatically changes to ”true” and the default value changes to “new BRFCKNA1Table()”.
    Add a second Proxy Field with the name “Filter”, the type “String” and the default value “A*”.
    Select the “Rfc_Customer_Get” function and click on the “…” button of the “Parameters” property.
    Set the default values of the three parameters with the drop-down icon as follows:
    Name1: Filter
    Kunnr: “” Customer_T: _Tab
    Save the proxy designer and switch to your Windows form. Add a TextBox, a Button and a DataGrid.
    Add an instance of your SAP proxy to your Windows form, add a “Destination” and set the “Connection” property as described in “A4”.
    Set the DataSource property of the datagrid to “sapProxy11”. Set the DataMember property of the datagrid to “Tab”. Alternatively you can set the DataSource to “sapProxy11.Tab” and leave the DataMember empty.
    For “textBox1” use the DataBinding feature to bind the “Text property” of the textbox to “sapProxy11.Filter”.
    Double-click the button to create an event handler and add a single line:
    “this.sapProxy11.Rfc_Customer_Get_();”
    You are using “sapProxy11” as a smart DataSet that contains the necessary state. You bind the state to the corresponding controls. The overload method Rfc_Customer_Get_() does not have any parameters, as the required state is already in the bound Proxy Fields.

    Dim dst As New CPUSAPUSAGE.CPU_SINGLETable

  • How can i use the project code instead of project xml?

    hello
    i use the sessionbean+toplink structure,after i finish the o-r mapping by using the mapping work bench,i generate the project xml file,then in the "session.xml" file,i refer to the project xml,then i can use it from sessionbean.
    i hear that if i use the project code instead of project xml file,it will be more performant,is that true?
    otherwise,how can i use the project code instead of project xml file?i mean, in "session.xml", i can use the "<project-xml>" tag to refer to the project xml file,then in my session bean,i get the server session by read the "session.xml" file.but if i use the project code,how can i refer it from the "session.xml"?the examples that come with the toplink installation only tell me how can i use the project xml file within the session bean,it don't give me any clue about using the project code in the sesion bean,who can give me a step-by-step instruction and code snippet?
    thank you very much?

    There is a slight performance gain during session load at startup but there is no difference at runtime. The choice of which to use is dependent upon you build process. Whether it is easier to submit a new version of the class into the comile build process vs an XML file. In most cases it is just a preference of the development team.
    When you use the project-class you'll need to generate the source code and compile it into your system. Typically it is packaged with the persistent classes. You may need to configure your environment so that the class-loaders have access to these classes (same for the XML case).
    When using the project-class you simply replace the project-xml entry like this:
    <project-class>oracle.toplink.demos.employee.relational.EmployeeProject</project-class>
    The DTD for the session.xml file is found at <TOPLINK_HOME>\core\sessions_4_5.dtd. It is also in the documentation at:
    http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/toplink.903/b10064/a-sessio.htm#634246
    Doug Clarke
    Product Manager
    Oracle9iAS TopLink

  • How can we use mode "UsePDF" in Interactive form?

    Hello everybody,
    I want to know that how can i use the mode usePdf in Interactive form?
    My scenario is:
    I have pdf form saved locally with blank fields.
    I save this file after requied values in all fields.
    Now i want to import this pdf file in interactive form and needs to submit this form so all the data in this pdf file are submitted to the System.
    How can i do this?
    regards,
    Bhavik

    Hi Bhavik,
    you do not need to use the upload ui element, if your pdf-file which you want to upload resides in you web application project. In the following you can find Web Dynpro code snippets I use in one of my demos for displaying an uploaded pdf-file:
    wdDoModifyView method of FormView:
        //@@begin wdDoModifyView
         try {
              // get interactive form element by ID
              InteractiveForm form = (InteractiveForm) view.getElement("Evaluation");
              if (wdContext.currentContextElement().getCurrentMode().equals("usePDF")) {
                   form.setMode(WDInteractiveFormMode.USE_PDF);
         catch (Exception e) {
              e.printStackTrace();      
        //@@end
    onPlugFromUploadView method of UploadView:
        //@@begin onPlugFromUploadView(ServerEvent)
         try {     
              // modify the context and set needed attributes
              wdContext.currentContextElement().setCurrentMode( "usePDF" );
              // extend the attribute "pdfSource" from the context to a modifiable binary type
              IWDAttributeInfo attInfo = wdContext.currentContextElement().node().getNodeInfo().getAttribute("pdfSource");
              ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
              IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
              binaryType.setFileName("evaluationForm.pdf");
              binaryType.setMimeType(WDWebResourceType.PDF);
              // add the generated pdf to the context
              wdContext.currentContextElement().setPdfSource( evaluationForm ); // byte[] evaluationForm
         catch (Exception e) {
              wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
        //@@end
    If you do not want to display the data before submitting the data, then you have to use the WDInteractiveFormHelper class for extracting the form data after upload in the context. This class is available since NetWeaver04 Support Package Stack (SPS) 10. The class com.sap.tc.webdynpro.clientserver.adobe.api.WDInteractiveFormHelper contains at the moment one helper function for PDF document. Here are the details:
    Constructor Detail
    public WDInteractiveFormHelper()
    Method Detail
    public static void transferPDFDataIntoContext(byte[] pdfSource, IWDNode targetNode)
    Method transferPDFDataIntoContext extracts data from a PDF document and copies the values into the Web Dynpro Context. The xml structure of the document data is applied starting from the specified target node. Usually, this node should be the same context node to which InteractiveForm-UIELement property dataSource is bound during PDF generation.
    Parameters:
    pdfSource - PDF document as byte[]
    targetNode - target IWDNode
    Hope this will help you,
    Regards, Carsten

Maybe you are looking for

  • I have just installed OS X Mavericks and I can't seem to right click on the track pad.

    I have just installed OS X Mavericks and I can't seem to right click on the track pad. Also the track pad seems to be slower/ not picking up all my finger movements.

  • Mail and the DNS Cache

    My web server name has recently changed. I ran "lookupd -flushcache" to flush my local cache and I was able to reach my website using the domain name within minutes of the change. Mail has however not been able to find the server. After a day or two

  • Accessing variables of different projects

    I have created a general "java application project" and a "Web Application project" How can i access a variable of the "java application" from the "web Application" java application -> it has Game1.java (contains the main() method) Assume it has a va

  • I am able to compile a java file in eclipse inspite of compilation errors shown in eclipse and a .class file is generated

    Hi, I had a java file with compilation errors as shown in eclipse IDE. But the class file is still generated in the classes folder on building and pressing clean the project. I confirmed that the class file has an updated time stamp and also that a S

  • Frame sizes?

    hello all. Can anyone help me understand the "logic" with frame sizes when exporting. Let me elaborate. I exported a sequence from FCP via quicktime movie. when I bring up the info window on the exported file it says 3 different things in reference t