Updating a database using EJB Inheritance

I am new to EJB's, so please forgive my ignorance. I creating the following classes that inherit from each other along with a method to update my database:
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@DiscriminatorColumn(name="TYPE", discriminatorType=DiscriminatorType.STRING)
public abstract class ObjectA implements java.io.Serializable {
     protected String name;
     protected String desc;
     protected String type;
@Entity
@DiscriminatorValue("OBJECTB")
public class ObjectB extends ObjectA implements java.io.Serializable {
     protected String str_b;
     public ObjectB(String name, String desc, String type, String str_b) {
          this.name = name;
          this.desc = desc;
          this.type = type;
          this.str_b = str_b;
@Entity
@DiscriminatorValue("OBJECTC")
public class ObjectC extends ObjectB implements java.io.Serializable {
     private String str_c;
     public ObjectC(String name, String desc, String type, String str_b, String str_c) {
          this.name = name;
          this.desc = desc;
          this.type = type;
          this.str_b = str_b;
          this.str_c = str_c;
public class MyFacade implements ServletContextListener {
     @PersistenceUnit(unitName="Pu")
    private EntityManagerFactory emf;
    @Resource
    private UserTransaction utx;
    public MyFacade() { }
    public void contextDestroyed(ServletContextEvent sce) {
        if (emf.isOpen()) emf.close();
    public void contextInitialized(ServletContextEvent sce) {
        ServletContext context = sce.getServletContext();
        context.setAttribute("MyFacade", this);
     public void updateObject(ObjectA obj) {
        EntityManager em = emf.createEntityManager();
        try{
            utx.begin();
            em.merge(obj);
            utx.commit();
        } catch(Exception exe){
            try {
                utx.rollback();
            } catch (Exception e) {}
            throw new RuntimeException("Error updating obj", exe);
        } finally {
            em.close();
}If I do the following:
     String name = "test name";
     String desc = "updating object c";
     String type = "OBJECTC";
     String b = "b";
     String c = "c";
     MyFacade myf = new MyFacade();
     ObjectC objC = new ObjectC(name, desc, type, b, c);
     myf.updateObject(objC);
     .....In my database, only the values associated with ObjectC get updated and nothing from ObjectA or ObjectB get updated in the database. Does the "merge" method not work on inheritance. How do I update my database using inheritance?
Thanks!
Message was edited by:
FourierXForm

did you only have ISQL for testing it?
Can you debug the form and look, if someone happens - exceptions, ... ?
after the update you can use
message (SQL%ROWCOUNT); pause ;
to look, how many records were updated

Similar Messages

  • Updating different Databases Using XI

    Hello,
    I am having one requirement for updating different databases using XI.
    The scenario is that
    Data is coming from ERP to XI.
    This data should be inserted or updated in SQL server.
    Depending on certain conditions I need to update different SQL servers.
    Currently I am having one interface which updates one SQL server database.
    I want to change that interface for updating different SQL server databases depending on the data coming from ERP.
    Is it possible?
    How can I achieve this?
    Thanks in Advance
    Abhijit.

    Hi abi,
        For using more than one database server u can use the BPM.
        there in the design phase, while u making the layout of the picture type connection , there in the switch tool , u can put the condition and according to that
    it will connect to the database server.......
    if it is useful give the rewards
    Regards
    Sasi.........

  • Accessing  database using EJBs in WebDynpro

    Im using EJBs to access database...data is getting stored in the database...but i dnt know how to retrieve it...webDynpro is a totally new environment for me..it would be a great help if someone can help me solve my problem...
    regards,
    Sonal

    - start with "import JavaBean model" (importing model)
    - put model in Used Models
    - bind model with controller (web dynpro components-> double click on <application name>
    - bind view with controller (same vindow)
    - apply template (table for reading data) in view
    and you are redy for start.
    Eq
    your EJB is MyEJB, and there is some function myFunction() with Vector as return (Vector contains MyEJB objects)
    now in controller put (eq in wdDoInit())
    MyEJB myObject = new MyEJB()
    wdContext.current<NodeName>.bind(myObject.myFunction());
    good luck

  • Update the database using bc4j tag

    hi
    i am new to struts based bc4j tag.
    i have created the one application using the struts based jsp for business component.
    this wizard create a web application , with update , delete facility record. and number of pages like :
    1) DataEditComponent.jsp
    2) DataQueryComponent.jsp
    3) DataScrollerComponent.jsp
    4) DataTransacationComponet.jsp
    5) viewnameBrowse.jsp
    6) viewnameEdit.jsp
    7) viewnameQuery.jsp
    8) description.html
    9) content.html
    etc...
    and number of java files
    1) viewnameBrowsAction.java
    2) viewnameEditAction.java
    3) viewnameForm.java
    5) viewnameFormBeaninfo.java
    6) viewnameQueryAction.java
    and
    applicationResource.properties and struts-config.xml.
    this application run sucessfully,
    but when i clicked on the edit and after change the record and finally update the record internally it update the record in the view object or application module.
    but it dont update the data base.
    also, the DataTransacationComponent.jsp page display the link like
    commit and Rollback
    when i click on the commit link it invoked the appropriate java file (Transaction.java) which is provided by the oracle itself.
    but it dosent update the record in the database.
    last few days i have try to identify , any other requirement which one i was missing
    so, please help me

    I have a form with form elements like text box,list box with multiple values. I want to insert this using xsql and also update the same. Is there any method by which i can do this by just submitting the form to xsql as posted xml document with out using xsl as transform attribute and posting the xml with ROWSET/ROW form directly which includes my form element values as sub nodes. The easy way of doing is create a view (either simple or object) and write an INSTEAD OF trigger on the view. You can keep insert-request in the xsql and put logic in the trigger whether to update or insert the record.

  • Updating a database using XML SQL Utility

    Hi all,
    It seems that the Oracle XML SQL Utility provides only to insert rows into a table/view. However, if one wants to update a table from an XML no support is available.
    How does one proceed if this is to be achieved?
    Thanks in advance.
    Regards,
    Manoj
    null

    While inserting i get a
    oracle.xml.sql.OracleXMLSQLException and further a
    NumberFormatException. Which parameter do I have to set to avoid
    these Exceptions. I can insert the file in my local db but I get
    the Exception on the server db. The value I want to insert for
    expample is 30,1. Maybe the JDBC-Driver tries to convert the String ;30,1+ to an
    Integer-Object. This will cause the described Exception since
    the Integer-Class requires ;.+ instead of ;,+ for decimal point.
    I have another problem generating an xmlfile when there
    are "Umlaute" in the data. E.g. V and \. Exchanging these to Oe
    and Ue than it works fine.Use ISO-8859-1 character set to work with umlauts, e.g.:
    <?xml version = '1.0' encoding = 'ISO-8859-1'?>
    .. but you can use the default UTF-8 encoding too, umlauts will
    be replaced by equivalents as ;C&#376;+
    Alex

  • Insert and update in database using apex tabular form

    Hi All,
    i have tabular form
    category_ID
    Day
    Hours
    Start Date
    End Date
    1001
    2
    3
    01-jun-2013
    Null
    1002
    1
    4
    02-jun-2013
    Null
    1003
    2
    5
    03-jun-2013
    null
    if day or hour change/update then End date will be sysdate.
    and new row insert in table
    category_ID
    Day
    Hours
    Start Date
    End Date
    Header 6
    1001
    1
    3
    01-jun-2013
    04-jun-2013
    Day change from 2 to 1
    1002
    1
    4
    02-jun-2013
    Null
    No change
    1003
    2
    5
    03-jun-2013
    null
    No change
    1001
    1
    3
    04-jun-2013
    null
    New record insert which is change/update
    how to achieve it.
    Thanks in advance,
    Prashant

    I usualy don't use the apex wizards to create forms when you need such custom functionality.
    I just make the needed items, and when saving the form elements to the db i run my own written procedure en i submit the page with the request 'UPDATE' and i also set an id item with the newly created id for the inserted record.
    So the page knows it should call the procedure that fills up all items with the values of the record i just saved. this also comes in handy when inserting a form in multiple tables.

  • Updating the database using z bapi without deleting existing data

    hi every body,
    i am using a zbapi in that i am updating a table which is having 40 fields but i am modifying the only four fields but it is deleting the remaining field entries
    i am now attaching the code what i have used
    ZMPETS_SHIPHDR-SHIPDOCNO    = wf_shipdocno.
    ZMPETS_SHIPHDR-VENACCEPTIND = VENACCEPTIND.
    ZMPETS_SHIPHDR-LASTCHANGEDT = SY-DATUM.
    ZMPETS_SHIPHDR-LASTCHANGEBY = SY-UNAME.
    ZMPETS_SHIPHDR-LOEKZ        = ' '.
    CALL FUNCTION 'Z_MPETS_SAVE_SHIPHDR'
      EXPORTING
        zmpets_shiphdr_save       = ZMPETS_SHIPHDR.
    *COMMITING THE UPDATION.
       CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        IMPORTING
          RETURN = RETURN.
    UPDATING THE SHIPMENT ACTIVITY TABLE.
    ZMPETS_SHIPACTIV-PETSDOCNUMBER = wf_shipdocno.
    ZMPETS_SHIPACTIV-LOEKZ    = ' '.
    ZMPETS_SHIPACTIV-ACTIVITY = '20'.
    CALL FUNCTION 'Z_MPETS_SAVE_SHIPACTIV'
      EXPORTING
        zmpets_shipactiv_save       = ZMPETS_SHIPACTIV.
    in the upper function module the code
    is
    modify zmpets_shipactiv from zmpets_shipactiv_save.
    we have to use this compulsory as it is client's standard
    *COMMITING THE UPDATION.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        IMPORTING
          RETURN = RETURN.
    kindly give me reply
    i will reward the points for a best reply

    Welcome to SDN!
    You will need to pass all 40 fields into your BAPI structure (ZMPETS_SHIPACTIV). The problem is that when you use the modify from statement, the BAPI updates the DB as-is from the BAPI structure, and since you are passing it only 4 values, it defaults the others to space.
    Do this:
    SELECT * FROM ZMPETS_SHIPACTIV WHERE <specify key fields here>
    and then
    ZMPETS_SHIPACTIV-PETSDOCNUMBER = wf_shipdocno.
    ZMPETS_SHIPACTIV-LOEKZ = ' '.
    ZMPETS_SHIPACTIV-ACTIVITY = '20'.
    CALL FUNCTION 'Z_MPETS_SAVE_SHIPACTIV'
    EXPORTING
    zmpets_shipactiv_save = ZMPETS_SHIPACTIV.
    This should work.
    Hope this helps.
    Sudha

  • Help with updating a database while in cfloop

    Greetings. I'm having some difficulties in updating a
    database using cfquery inside of a cfloop.
    Background:
    I've got a text file that I need to interpret, line for line,
    and then update an existing database with information from that
    text file. For example, the text file might say
    jdoe~103 Anywhere St.~East Nowhere~New Jersey~05784~
    asmith~8963 North St.~Crabapple Cove~Maine~01390~
    (etc...you get the idea)
    So, I use a CFFILE to read the file, and then calculate the
    number of lines (records to be updated in the database) using
    listlen / 5 (in this example). From there, I:
    <cfloop index="record" from="1" to "#numberoflines#">
    <cfloop index="field" from="1" to "5">
    <cfset position = ((record - 1) * 5) + field>
    <cfelseif field EQ 1>
    <cfset form.username =
    ListGetAt(newcontents,position,"~")>
    <cfelseif field EQ 2>
    <cfset form.street =
    ListGetAt(newcontents,position,"~")>
    (etc...through EQ 5)
    </cfloop>
    <cfquery name="updatedatabase"
    datasource="clientlist">
    UPDATE clients
    SET
    Street= '#form.street#',
    (etc)
    WHERE email = '#form.username#'
    </cfquery>
    </cfloop>
    The problem I am having is that it updates the very first
    record in the set of records to update, but then it does not update
    any subsequent records.
    Why?
    Sorry if the code is crude. Is there a better way of doing
    this? If so, great detail would be helpful :) Relatively new at
    this.
    -Brian

    quote:
    Originally posted by:
    Dan Bracuk
    Updating a db from a file using cold fusion is generally
    inefficient and should only be used as a last resort. If your db
    has any bulk loading/updating utilities, consider using them. Maybe
    you can use cold fusion to upload the file and ftp it to your db
    server or something like that.
    Better yet, that file has to come from somewhere. Is there a
    way you can update your db instead of generating a file in the
    first place?
    The file starts as an output generated by a web user (an
    administrator on the software) which creates a text file containing
    email addresses, one per line. An external process which I have no
    control over takes that file and generates another file containing
    information about each of those e-mail addresses (last name, first
    name, etc) one per line. I can't change that process. So, I'm left
    with an external text file that I need to parse and then put into
    the database...all through a web interface. The goal here is that
    an administrator of the software, who does not have direct access
    to the database, can (using cold fusion processing) update the
    database with new information on each e-mail address without my
    intervention.
    -Brian

  • Problem in update to database

    Dear sir,
    I am making project on library management system using Netbeans 6.1
    in which i am able to connect my databases to the jtable in the frame sucessfully(jtable is used to display records of students who jahave issued the books) but when
    I peform update to database
    using following statements it gives me error that "no suitable driver found for java:derby:lib" in which lib is my database name.
    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {                                                String url = "jdbc:derby:lib";         try {               try {               Class.forName("org.apache.derby.jdbc.ClientDriver");             } catch (ClassNotFoundException ex) {                 Logger.getLogger(delUI.class.getName()).log(Level.SEVERE, null, ex);             }             Connection con = DriverManager.getConnection(url,"lib","lib");             java.sql.Statement stmt =  con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,                                     ResultSet.CONCUR_UPDATABLE);           ResultSet srs = stmt.executeQuery("delete * from student where sholarno="+jTextField2.getText());         } catch (SQLException ex) {             Logger.getLogger(delUI.class.getName()).log(Level.SEVERE, null, ex);         }       }                                               
    Also i observe that when I build the program the build is succesfull &
    there is one following statement written which says that it is not copying the libraries:
    D:\Program Files\glassfish-v2ur2\javadb\lib\derbyclient.jar is a directory or can't be read. Not copying the libraries.
    Building jar: C:\Documents and Settings\super\My Documents\NetBeansProjects\LibMan\dist\LibMan.jar
    Not copying the libraries.
    Sir, please help me to solve the above problem . Please tell me that it is not copying the files whether this causes the problem or anything is missing.

    The url listed is for an embedded Driver, but your loading the ClientDriver. So, which is it?

  • Console Application not updating the database

    Dear all,
    I am new to c# development. I have a console application front end in program.cs
    I have a local database on visual studio.
    When I execute the stored procedure locally on the database the data is getting updated in the database.
    When I update the same through Console Application - the data is not appearing in the database.
    Can somebody throw light on this? Where I am missing
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Data;
    using System.Data.SqlClient;
    namespace AssetApp
    class Program
    static void Main(string[] args)
    bool value = true;
    while (value)
    value = getdisplay();
    //Console.ReadLine();
    //value = false;
    private static bool getdisplay()
    Console.WriteLine("-------------------------------------- ");
    Console.WriteLine("---------------------------------------");
    Console.Clear();
    Console.WriteLine("----------Asset Application------------");
    Console.WriteLine(" 1 Company Asset ");
    Console.WriteLine(" 2 Standby Laptop Register ");
    Console.WriteLine(" 3 Scrap Register ");
    Console.WriteLine(" 4 Purchase Register ");
    Console.WriteLine(" 5 Service Call Report ");
    Console.WriteLine(" 6 IT Helpdesk ");
    Console.WriteLine(" 7 Exit ");
    Console.WriteLine("---------------------------------------");
    string input = Console.ReadLine();
    switch (input)
    case "1":
    CompanyAsset();
    break;
    case "2":
    Console.WriteLine("Standy Laptop Register");
    break;
    case "3":
    Console.WriteLine("Scrap Register");
    break;
    case "4":
    Console.WriteLine("Purchase Register");
    break;
    case "5":
    Console.WriteLine("Service call Report");
    break;
    case "6":
    Console.WriteLine("IT Helpdesk");
    break;
    case "7":
    return false;
    default:
    break;
    return true;
    private static void CompanyAsset()
    Console.WriteLine("------Company Asset------------------------");
    Console.WriteLine("Type the Department Name");
    string departmentName = Console.ReadLine();
    Console.WriteLine("Type the First Name");
    string firstName = Console.ReadLine();
    Console.WriteLine("Type the Last Name");
    string lastName = Console.ReadLine();
    Console.WriteLine("Type the User Name");
    string userName = Console.ReadLine();
    Console.WriteLine("Type the Model Number");
    string modelNumber = Console.ReadLine();
    Console.WriteLine("Type the AssetTypeID");
    string assetTypeID = Console.ReadLine();
    Console.WriteLine("Type the SerialNumber");
    string serialNumber = Console.ReadLine();
    Console.WriteLine("Type the WarrantyStartDate");
    DateTime warrantyStartDate = Convert.ToDateTime(Console.ReadLine());
    Console.WriteLine("Type the WarrantyEndDate");
    DateTime warrantyEndDate = Convert.ToDateTime(Console.ReadLine());
    Console.WriteLine("Company");
    string company = Console.ReadLine();
    Console.WriteLine("EngineerID");
    string engineerID = Console.ReadLine();
    Console.WriteLine("ITHelpdeskID");
    string itHelpdeskID = Console.ReadLine();
    Console.WriteLine("EmpID");
    string empID = Console.ReadLine();
    //Handshake
    SqlConnection myNewConnection = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\AssetApp.mdf;Integrated Security=True");
    //open the database
    myNewConnection.Open();
    //create command
    SqlCommand myCommand = myNewConnection.CreateCommand();
    //using the stored procedue to update the database using parameters add
    myCommand.CommandText = "InsertAsset";
    myCommand.CommandType = CommandType.StoredProcedure;
    myCommand.Parameters.Add(new SqlParameter("@DepartmentName", departmentName));
    myCommand.Parameters.Add(new SqlParameter("@FirstName", firstName));
    myCommand.Parameters.Add(new SqlParameter("@LastName", lastName));
    myCommand.Parameters.Add(new SqlParameter("@UserName", userName));
    myCommand.Parameters.Add(new SqlParameter("@ModelNumber", modelNumber));
    myCommand.Parameters.Add(new SqlParameter("@AssetTypeID", int.Parse(assetTypeID)));
    myCommand.Parameters.Add(new SqlParameter("@SerialNumber", serialNumber));
    myCommand.Parameters.Add(new SqlParameter("@WarrantyStartDate", warrantyStartDate));
    myCommand.Parameters.Add(new SqlParameter("@WarrantyEndDate", warrantyEndDate));
    myCommand.Parameters.Add(new SqlParameter("@Company", company));
    myCommand.Parameters.Add(new SqlParameter("@EngineerID", int.Parse(engineerID)));
    myCommand.Parameters.Add(new SqlParameter("@ITHelpdeskID", int.Parse(itHelpdeskID)));
    myCommand.Parameters.Add(new SqlParameter("@EmpID", int.Parse(empID)));
    int recordsAffected = myCommand.ExecuteNonQuery();
    if (recordsAffected == 1)
    Console.WriteLine("Successful your entry");
    else
    Console.WriteLine("Your entry is not successful");
    myNewConnection.Close();
    Console.WriteLine("");
    Console.WriteLine("Press Enter to continue");
    Console.ReadLine();
    public static void StandbyLaptopRegister()
    Console.WriteLine("-------------------------------");
    Console.WriteLine("Select the Date & Time");
    string DateTime = Console.ReadLine();
    Console.WriteLine("");
    ALTER PROCEDURE dbo.InsertAsset
    @DepartmentName NVARCHAR(50),
    @FirstName NVARCHAR(50),
    @LastName NVARCHAR(50),
    @UserName NVARCHAR(50),
    @ModelNumber NVARCHAR(50),
    @AssetTypeID INT,
    @SerialNumber NVARCHAR(50),
    @WarrantyStartDate SMALLDATETIME,
    @WarrantyEndDate SMALLDATETIME,
    @Company NVARCHAR(50),
    @EngineerID INT,
    @ITHelpdeskID INT,
    @EmpID INT
    @parameter1 int = 5,
    @parameter2 datatype OUTPUT
    AS
    /* SET NOCOUNT ON */
    BEGIN
    INSERT CompanyAsset(DepartmentName,
    FirstName,
    LastName,
    UserName,
    ModelNumber,
    AssetTypeID,
    SerialNumber,
    WarrantyStartDate,
    WarrantyEndDate,
    Company,
    EngineerID,
    ITHelpdeskID,
    EmpID)
    VALUES(@DepartmentName,
    @FirstName,
    @LastName,
    @UserName,
    @ModelNumber,
    @AssetTypeID,
    @SerialNumber,
    @WarrantyStartDate,
    @WarrantyEndDate,
    @Company,
    @EngineerID,
    @ITHelpdeskID,
    @EmpID)
    /*RETURN @@IDENTITY*/
    END
    Cheers
    Sathya

    Hello,
    Usually when I see
    AttachDbFilename=|DataDirectory| ...
    The database was added into the project via the IDE add new data source and if so make sure under the property window for the database that "Copy to Output Directory" is set to either the first or last option as the default "Copy always"
    copies the database each time you build the project thus overwrites the last time you ran the project.
    I would recommend the "Copy if Newer" which means the database is only copied if you make changes to the database. Set "Copy if newer", build run check results.
    Of course this may not be the issue but may very well be too.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Performing database operations using EJB 3.0

    I need to create a session bean that will perform operations on backend database. I am new to EJB 3.0 and need a gentle guidance to the solution
    This is what I believe is suppose to be done
    1. Create stateless bean interface marking operations.
    2. Create bean implementation for above
    3. Init stage will require me to connect to the Oracle database. Now am confused how will it get the connection details? Is there a way to extract the url username and password using resource bendle which can be accessed from within bean implementation?
    4. Bean method will perform update, read oprations
    5. Predestroy will close the connection
    6. A client will simply call this ejb with some input parameter(s)
    Please let me know if am doing anything wrong here

    If you use EJB technology for which it is designed, the container (server) will manage the transaction (and also the connections to the database) for you, so no creation or cleanup of connections on your part. I advise you to read into JPA which is designed to be used in conjunction with EJB tech. The books Enterprise Javabeans 3.0 and Pro EJB 3: the Java Persistence API may help you a lot.

  • Unable to update database using a remote bean call

    We have a system, in which one of the EJBs (say, local EJB) in one
    system remotely call an ejb (say, remote EJB) on another system. The
    problem is the that the remote EJB is unable to database with any
    changes when its method was invoked by the local EJB.
    We first call a set method which is supposed to update the DB. Then we
    call the get method which returns the recently updated value. However
    the data is not stored in the DB. The get method seems to retrieve the
    data from the cache. There is no exception thrown.
    However there is no issue with the remote EJB. If we call the method
    locally, it DOES update the database. I dont know if it has to do
    anything with the java security policy defined. We use Weblogic 6.1
    SP3.
    We have a release in another 2 days and any help on this will be
    appreciated.

    We have a system, in which one of the EJBs (say, local EJB) in one
    system remotely call an ejb (say, remote EJB) on another system. The
    problem is the that the remote EJB is unable to database with any
    changes when its method was invoked by the local EJB.
    We first call a set method which is supposed to update the DB. Then we
    call the get method which returns the recently updated value. However
    the data is not stored in the DB. The get method seems to retrieve the
    data from the cache. There is no exception thrown.
    However there is no issue with the remote EJB. If we call the method
    locally, it DOES update the database. I dont know if it has to do
    anything with the java security policy defined. We use Weblogic 6.1
    SP3.
    We have a release in another 2 days and any help on this will be
    appreciated.

  • Updating standby database from primary using rman

    I have created a standby database using rman on my oracle linux server, now i want to update the standby from my primary database, but i didn't remember the scn which i used for creating the standby. How can i find out the scn from where i should perform the incremental backup on the primary, so that i can update my standby database with the latest information.

    You simply need to find out which logs on the Primary have yet to be applied to your Standby. Have a look at this (or any Oracle Data Guard docs.): http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10823/manage_ps.htm#1024046
    As long as the logs are available on the Primary server, then they should be sent across to the Standby server. Use the views described in the above link to check for any gaps, etc.

  • How to load data in plain-text file into database by using EJB?

    Hi,
    We need to develop an on-line application which requires us to load input data
    from a selected plain-text file on the Web server (iplanet server) into the backend
    oracle database. How could I use EJB to make it happen? it seems like using Entity
    EJB is not feasible.
    Really appreciate your help!
    Corona

    Hi Corona,
    "Corona Fang" <[email protected]> wrote in message
    news:3f3b0ea3$[email protected]..
    We need to develop an on-line application which requires us to load inputdata
    from a selected plain-text file on the Web server (iplanet server) intothe backend
    oracle database. How could I use EJB to make it happen? it seems likeusing Entity
    EJB is not feasible.If you are talking about loading thousands of records,
    the preferable way is using plain JDBC calls utilizing
    batch methods.
    Regards,
    Slava Imeshev

  • How to update transaction data automatically into MySQL database using PI

    Dear All,
    With reference to subject matter I want a sincere advice regarding how to update transaction data automatically into MySQL database using PI. Is there any link available where I can get step-by-step process.
    Ex: I have a MYSQL database in my organization. Whenever a delivery created in SAP some fields like DO Number, DO quantity, SO/STO number should get updated in MYSQL database automatically.
    This scenario is related to updation of transactional data into MYSQL DB and I want your suggestions pertaining to same issue.
    Thanks and Regards,
    Chandra Sekhar

    Hi .
    Develop a sceanrio between SAP to Database system,When the data updates in SAP Tables read the data and update it in DATA Base using JDBC adapter,but there will be some delay in updating data in MySQL.
    serach in sdn for IDOC-TOJDBC sceannario,many documents available for the same.
    Regards,
    Raja Sekhar

Maybe you are looking for

  • How do you save "game state" so the user can continue next time?

    I'm not sure what the correct game terminology is for this, but how do you save "game state" so the user can continue next time? This seems like a pretty important feature for building some games, we don't want users to have to start over everytime.

  • Where is address book on IPAD 2

    Where is address book in IPAD 2. 

  • Error creating mobile service.

    I am unable to Create mobile service on my Azure portal. Every time i try to create an app i get following Error: RDFE: The upstream server reported that the resource was not found. If you contact a support representative please include this correlat

  • Auto refresh with apple script- help please

    can any one help me please i use multiple windows in safari at one time and can any one help me to refresh these pages (two windows) automatically using apple script. also if I click manually to refresh these pages i get the following note" "To open

  • Why won't Norton Insight allow me to install Thunderbird?

    I want to install Mozilla Thunderbird but my Norton Insight won't allow it. It says it's unsafe. What can I do to install Thunderbird?