Hibernate/IBatis/JPA for batch applications

We are planning on developing a batch application. Performace is a very critical part in this. Wanted to get some feed back upon which is the best framework for batch applications.
This application would not have too many inserts/updates. It will have selects mainly.
Can somebody suggest which framework is good Hibernate/Ibatis/JPA ?
Thanks in advance
Gautam

Uppalapati wrote:
duffymo wrote:
"batch" usually means "transactional" to me. Why would a batch be mainly SELECTs? Makes no sense.
Most people wouldn't use Java/JDBC for batch. Better to use the tools that are optimized for your relational database in most cases.
sorry by stating that a little unclear. It is basically a stand-alone application. It reads messages as they comeby and process the messages. The processing of the messages require a lot of validations to be done (which are dependent upon a lot of parameters in the database and these would require selects). and finally based upon a few criteria's we write the data to the database. Are the validations static, read-only reference data? If so, you can read it once and cache it. Unless the SELECTs are truly dynamic and need to be made every time, perhaps you can save yourself some network traffic that way.
Caching with Hibernate might make a difference, depending on how dynamic the validations are.
and my reason for stating that it would have lots of selects is for the validation purpose and some inserts for updating the status.
duffymo wrote:
JPA and Hibernate will both require that you have an object model to map to your schema. Do you have that? If not, don't use either of those.
I have an object model to map with and which is the reason why we are considering Hibernate/Jpa.OK, that's better.
Either one will do, then. The advantage of JPA is that you don't have to commit to Hibernate, since TopLink and JDO will do as well. You can also use Glassfish or any other Java EE app server that supports EJB3 as well.
How well do you know Hibernate and/or JPA? The other consideration is your level of skill. Choose the one you know best. Assess the risk if you're just learning and this is a critical project.
Do you know that JDBC itself can't do the job?
What other reasons do you have for going this way?
%

Similar Messages

  • GUI for batch application

    hi all,
    I have a batch application that, when running, receive command and send response from DOS console.
    I would like to create a GUI that interface my batch application,send command, receive response...
    Anyone have suggestion or semples?
    Thanks!

    I am not sure what is your exact concern.
    Separation into Model-View-Controller (MVC) is what you want.
    Start with the console application. You can simply make 3 packages (model, view, controller), and start with a System.out, System.in app.
    Then create new packages guiview and guicontroller and implement your Swing app there.
    The model should be unchanged.
    The controller should be readable and easily migrated.
    Runtime.exec(...) might provide your access to DOS.

  • Hibernate Vs JPA for Java Database connecity selection for ORM ?

    There is a spring annotation based web application,that needs to load/store/update data to Oracle 10g XE Database. I have two options i.e either Hibernate or OpenJPA. So which one should i choose for this and why ?

    Are you talking about this, <provider>org.hibernate.ejb.HibernatePersistence</provider>? Is this the correct provider name for JPA with HIbernate 3?
    or
    You are talking about other configuration in the persistence.xml.
    I appreciate you helps, but can you point out what exact is wrong in my configuration or provide examples? I have not found the correct name for Hibernate provider.

  • How to create a Batch file for java application  ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    [http://static.springsource.org/spring-batch/]
    Assuming you want to develop a batch application rather than actually just create a .bat file ..

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • Is there any tool like hibernate/ibatis for abap

    hi all,
    is there any tool like hibernate/ibatis for abap.  I want to exactly know whthr there is any object relational mapping tool for abap development.
    is object based services a object relational mapping tool ?
    thanks in advance
    bye
    babu

    No. Many people use Jasper Reports (http://jasperreports.sourceforge.net/) for their reporting. It's free and opensource. You define your reports in xml and you can create text, html and pdf reports.
    You can also try to use html for reporting. I've used it on a project with pretty good results. The benefit is that you probably don't need to learn a new tool/language.
    We generated the html using velocity, layout was done using css. You can remove the default headers, footer and page margins added by internet explorer by setting some registry keys:
    [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup]
    "header"=""
    "footer"=""
    "margin_bottom"="0.1"
    "margin_left"="0.10"
    "margin_right"="0.10"
    "margin_top"="0.1"

  • What data binding framework to use for EJB(JPA) - Swing desktop application

    Hi!
    I am developing EJB server application which mostly uses the same entities and session EJB's both for web and for desktop user interface. While JSF is working nicely, I am stuck with necessity to make decision with data binding framework to use for desktop application - I investigated:
    - JSR295 reference impementation at java.net (beans binding)
    - Eclipse JFace
    - JSR295 implementation at kenai.com (better beans binding)
    - JGoodies binding
    At present I like JGoodies, but I am not sure whether I am not missing something - I guess - large enterprises should develop a lot of desktop applications as well and what binding framework they are using?

    user454720 wrote:
    At present I like JGoodies, but I am not sure whether I am not missing something - I guess - large enterprises should develop a lot of desktop applications as well and what binding framework they are using?No, not really. I create them sometimes but they are service tools, not part of the main application framework. Generally you keep everything on the server, web based - this keeps it secure, accessible and contained. With all the web 2.0 javascript toolkits available nowadays you can go quite far creating a desktop experience in a browser, with limitations.

  • Help needed in writing installers for swing application

    Hi ,
    I want to write an installer for one of our home grown profiler tool. I need to write the installer for different platforms such as windows,linux,solaris,HP-UX.
    Does anybody have any idea of how to go ahead in writing installations. Share if there is any good links such as tutorials as well is thr any opensource tool (similar to installsheild) to write installers . As well following is the tentative algorithm for my install sheild
    1. Create a home dir for the tool and put all the application files in tht.
    2. Installing a 3rd party jar and make a home for it.
    3. Option for user to select the features(i hv 2 features. user can either select both or select individual feature) to be installed.
    4. Select the appserver home if any. On selection i hv to update the classpath in the startup batch file for the application(This is the toughest step i beleive bcoz each appserver have different folder structures and different startup batch files).

    Tried obtaining the output using SQL and the result is as follows:
    SQL> WITH T AS
      2  (
      3  SELECT 1 COL1 FROM DUAL
      4  UNION
      5  SELECT 2 COL1 FROM DUAL
      6  UNION
      7  SELECT 3 COL1 FROM DUAL
      8  UNION
      9  SELECT 4 COL1 FROM DUAL
    10  UNION
    11  SELECT 5 COL1 FROM DUAL
    12  UNION
    13  SELECT 8 COL1 FROM DUAL
    14  UNION
    15  SELECT 9 COL1 FROM DUAL
    16  UNION
    17  SELECT 10 COL1 FROM DUAL
    18  UNION
    19  SELECT 13 COL1 FROM DUAL
    20  UNION
    21  SELECT 14 COL1 FROM DUAL
    22  UNION
    23  SELECT 15 COL1 FROM DUAL
    24  UNION
    25  SELECT 16 COL1 FROM DUAL
    26  UNION
    27  SELECT 23 COL1 FROM DUAL
    28  UNION
    29  SELECT 24 COL1 FROM DUAL
    30  )
    31  SELECT OUTPUT FROM
    32  (
    33  SELECT DECODE(COL3,NULL,COL1, COL2)  || '-' || LEAD(DECODE(COL3,NULL,COL3, COL1)) OVER (ORDER BY DECODE(COL3,NULL,COL1, COL2)) OUTPUT  FROM
    34  (
    35  SELECT COL1, LEAD(COL1) OVER (ORDER BY COL1) COL2, LAG(COL1) OVER (ORDER BY COL1) COL3 FROM T
    36  )
    37  WHERE
    38  (COL2 - COL1 > 1 OR COL2 IS NULL OR COL3 IS NULL)
    39  )
    40  WHERE OUTPUT != '-';
    OUTPUT                                                                         
    1-5                                                                            
    8-10                                                                           
    13-16                                                                          
    23-24

  • Batch Applications in Java

    I have to write programs in Java which will run as a nightly process (same as COBOL in mainframe) without any user inputs. First question is: Is it a good idea to do this. Eg: I will give an example of a real life situation. Let us take a banking application. Every night after the bank is closed the system has to spin through every checking accounts (millions) and do some transactions, cleanups maintenenace so that next day when the bank is up and running the accounts are ready. Normally these kind of processes will be in COBOL. Please give me input and will appreciate your ideas. Is it better to do this in C++ ??? :)
    Thanks

    * Java as many libs useful for batch (like XML APi, JMail, log4j etc ...)
    * you can do a "big" program that execute some tasks depending on args. A part of your code is common. With several batch you have to duplicate it.
    * if your batch are very different and don't use same code, no need to do a program.
    * the use of Java is platform independent, so if your server change, no need to recompil the code !
    * java is an Oriented Object Language, so if you don't have an Object Model ...
    * if all your other program of your Information System is in Java why not keep it heterogen ?
    * shell script is faster than java if you know use it !
    it depend on project, I use a java program to do my batch because all my architecture is in java and because i need send/receive mail, acces ftp/http and i use an object model to generate report etc ... but if you just want to write a csv file from your database you don't need to use other thing than shell script .
    think about global architecture, future of your application ... good luck !

  • OO Batch Model and optimised Java for batch???

    Hi All,
    I'm looking to see if there is any literature of OO models for batch processing and optimising of batch java.
    Thoughts & comments welcome.........
    I have an existing batch process running on a mainframe which is very successful. We would like to leverage this by building a similar batch process to run 'anywhere' so likely options are Java/Unix.
    There are many patterns/models etc for OO based GUI / interactive processes but very few for (that I have found) for batch.
    I have worked mainly with mainframe batch and online applications and come with the baggage that activity that can be processed in batch should be to avoid overloading the online container (CICS region, web server etc).
    I believe that this continues to be true, as well as the particular data we are processing benefits from efficiencies of batching the data together to store eventually on tape.
    In view of not finding any literature (which I doubt is the case) it seems that the problem is the same, so probably the solution is also similar.
    In the procedural solution, a Jackson (or similar), would have been designed which would then reflect the procedures build into the code.
    I expect that if instead of procedures classes where defined, certainly at a higher level then the design would still be ok.
    (So a the higher level you have a 'main' class, which instansiates a 'read' io object, a processing object which handles the actual processing activity and a write io object).
    The level to which would would combine procedures together, or further split them out, would then be the main point of discussion.
    ( However am open to the above suggestion being completly wrong).
    Then there is efficient configuration when processing........
    When running on the mainframe the code is loaded once, the memory for all the working storage strucures created. When actually processing there is no instantiating classes, or running the garbage collector etc. I re-use the same memory for each new record red in / processed / written out and all the code is normally loaded once when first called and the same code is re-used until all records processed.
    Is there any way that I can replicate this within Java either in it's own JVM or running in a container such as websphere? When processing the volume of data that we do (20 million db entries + 40GB of document data avg) then anything not optimised is costing money and available processing time.

    I suspect that batching is underused thoughrather
    than overused.Can you elaborate on that? What kind ofconditions
    would you advocate batching for? Running daily, monthly, etc reports. Or something
    that feeds those.I don't disagree, I just don't even see this as 'batching'. Batching to me is when you take something that could be done incrementally and purposely doing it in large groups at set times or time-periods. If you have a daily report and you do it daily, you're just doing the most obvious approach. It might not even be the most efficient.
    >>
    I have some experience working with batch java
    applications running in Unix. And I can tell you
    that they did not improve anything. I suspect I would agree with that. I am not
    advocating that the batching be done in java. Just
    that idea that an 'incremental' process that requires
    moving data versus a 'batch' process that doesn't
    isn't something that I would normally consider a good
    idea.I think we are thinking about different things. I'm really just talking about incremental or real-time vs. batching.
    They were
    actually the source of many of our issues. That
    added abitrary time lags during times of lowvolumes,
    sometimes adding 30 minutes or more to theprocessing
    of a transaction as it waited for the nextscheduled
    batch. They also made our backlogs worse in timesof
    high volumes because the incoming data flow was
    uneven, we would often get big batches of datafrom
    partner systems (more batching, gotta love it)that
    hit us when our batch process was sleeping. 5,10,
    15 minutes would pass where the server ran at 10%
    capacity while huge backlogs were piling up. It
    didn't make anything better. It was just causing
    idling.
    What was the timeliness requirements for the
    processing? Did it need to be completed by 2am in
    the morning? Or could it have really just been
    completed on demand?It was B2B transactions ASAP was the time requirement. I guess the upper limit was 6 hours or so. But batching didn't really decrease the processing time per transaction anyway and the server was never dedicated to the batch or anything so there were still context switches.
    It just seems to me that in Java with all the nice
    threading we have access to, the server shouldnever
    be idle and if you cannot handle your volume youare
    better off adding more servers, not attempting to
    batch things.I have created applications that were intended to run
    'batch' jobs which could be spread across servers.
    Those particular processes had to finish within a
    very narrow time span as well - about two hours as I
    recall. There was an incremental as well as batch
    functionality that needed to be run for this. The
    batch functionality ran on the database. The
    incremental took the batched results and handle the
    incremental part.
    Although management was never willing to dedicate
    more than one server to the processing so I guess it
    wasn't that important to them.
    I have seen apps that claimed they were 'fast'
    because they did all of the incremental processing
    outside of the database. The design required moving,
    literally, the entire database over the network to
    other servers which would then process it.
    Processing it in the database would have taken
    orders of less time. And that was time sensitive
    data. I can't remember if that app allowed for
    multiple boxes to do the processing. I do know that
    the people working on it could never figure out the
    bottleneck (it was scaling to something like 12
    hours a day which was not acceptable.)I guess I don't see doing it on the DB as implying batching. We use triggers to drive processes in Java, COBOL, whatever.

  • Different results on consecutive runs of OFT for Web Applications

    I am using Oracle Functional Testing for Web Applications to test share point site [using: OS = WinXP SP3, default browser = IE8.0.6]
    I’ve recorded simple scenario - browsing through two pages (home page > menu link > page 1)
    there is no user input involved – just browsing)
    problem:
    I am running the same test multiple times and I get different results – sometimes (less often) I get clear ‘Passed’ results but more often I get warnings about missing items, Severe content differences)
    upon comparing Master and Tested HTML I see that test fails because no content is being logged under Tested:HTML node (the content displays properly in right browser pane)
    any hints?

    You probably need a close no save step at the end of your action.
    In the save for web dialog, when you record the action, save to the folder you
    want the batch dialog to put the images. Then set the batch dialog as below.
    MTSTUNER

  • Can we hav call transaction and session method for an application

    can we hav call transaction and session method for an application ?if yes how?

    Hi ,
    You can.  If Call Transaction fails, a batch input session can be created.
    Check this example-
    Call the transaction. Messages from Call Transaction are stored in the
    internal table messtab 
      CALL TRANSACTION 'LT01' USING bdc_tab MODE 'N' UPDATE 'S'
          MESSAGES INTO messtab.
      IF sy-subrc = 0.                                                 
    Call transaction successfull,  get the number of the Transfer Order that
    was created                                                        
        LOOP AT messtab.                                               
          IF messtab-dynumb = '0104' AND messtab-msgnr = '016'.        
            w_transportorderno = messtab-msgv1.                        
          ENDIF.                                                       
        ENDLOOP.
      ELSE.
    Call transaction failed, create a batch input session instead.
        PERFORM open_group.                        
        PERFORM bdc_insert USING 'LT01'.           
        PERFORM close_group.                       
    ENDIF.
    Regards,
    Sookshma

  • Labview for batch processing

    dear sir,
     i am using labview7.0 for scada application  using dsc module. In this application we are aquiring data from instrument. Now i want to develope scada software using labview dsc module for batch processing. But i donot have any idea about batch processing. Please help me to know more about batch processing. And how can i develope the scada software for that
    thanking you
    falgandha

    Hello,
    Batch processing typically involves raw materials that are
    combined to mix or react in a certain sequence over a period of time to
    produce the completed output. Often, different recipes are used to
    combine the materials in different ways and with different sequences to
    change the outcome. Automation is used in batch processing to precisely
    control quantities, times and sequences (description found with a Google search of 'batch processing'), and you can use LabVIEW DSC to control your system.  This is accomplished by using data items called tags bound to your hardware.  To send a command to your hardware, you would write a new value to a tag bound to that hardware.  Hardware could include PLC's, Fieldpoint controllers, RTU's, Modbus devices, etc.  Most commonly, you will connect the tags to your hardware via an OPC server.  OPC servers are available from NI, the PLC manufacturer, and several 3rd-party vendors such as Kepware.
    Providing you with more detailed information will be difficult without a more specific question I can help you with  The DSC Module help and shipping examples will get you started with creating your application, so I'd recommend giving those a look.  If you have a more specifc question about how to do something in LabVIEW, let us know and we'll be glad to help!
    Cheers,
    Matt Pollock
    National Instruments

  • RE: Test automation tools for Forte applications

    Mark,
    There is a basic automated testing program already
    supplied by Forte in the examples. It is called
    AutoTest.Pex. It records events and can replay them.
    It can be a bit tricky and is a bit basic, but
    may have some of the functionality that you want.
    This is specifically for window / widget testing.
    Hope this helps,
    Kerrie Vickers
    Forte Consultant
    PricewaterhouseCoopers
    Mark Wick Wrote :
    Hi,
    We are evaluating test automation tools for a Forte client server
    application.
    Does anybody have experience with testtools for Forte applications or
    can even recommend a testtool particulary suitable for Forte
    applications.
    We want to test GUIs on NT-clients as well as a batch process running
    on
    a Unix solaris server and accessing an oracle database.
    any help appreciated
    thanks
    Marc WickMazda Australia takes every precaution to ensure email messages are virus free. For complete protection, you should virus test this message.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Mark,
    There is a basic automated testing program already
    supplied by Forte in the examples. It is called
    AutoTest.Pex. It records events and can replay them.
    It can be a bit tricky and is a bit basic, but
    may have some of the functionality that you want.
    This is specifically for window / widget testing.
    Hope this helps,
    Kerrie Vickers
    Forte Consultant
    PricewaterhouseCoopers
    Mark Wick Wrote :
    Hi,
    We are evaluating test automation tools for a Forte client server
    application.
    Does anybody have experience with testtools for Forte applications or
    can even recommend a testtool particulary suitable for Forte
    applications.
    We want to test GUIs on NT-clients as well as a batch process running
    on
    a Unix solaris server and accessing an oracle database.
    any help appreciated
    thanks
    Marc WickMazda Australia takes every precaution to ensure email messages are virus free. For complete protection, you should virus test this message.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Test automation tools for Forte applications

    Hi,
    We are evaluating test automation tools for a Forte client server
    application.
    Does anybody have experience with testtools for Forte applications or
    can even recommend a testtool particulary suitable for Forte
    applications.
    We want to test GUIs on NT-clients as well as a batch process running on
    a Unix solaris server and accessing an oracle database.
    any help appreciated
    thanks
    Marc Wick
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    There is also TestComplete by AutomatedQA but it is of
    limited usage because it is not mx.automation aware and in many
    difficult cases reverts to dumb mouse X,Y recording.
    And there is the upcoming RIATest that will be specifically
    designed for Flex using mx.automation. Here is the site:
    http://riatest.com
    Disclosure: I am a RIATest developer.

Maybe you are looking for

  • Updating of delivery dates failed using BAPI_SALESORDER_CREATEFROMDAT2

    Hi, I am trying to create a new sales order using <i>BAPI_SALESORDER_CREATEFROMDAT2</i>. However, when i enter the following fields (<i>GI_DATE, LOAD_DATE, MS_DATE, TP_DATE</i>) into table structure <i>ORDER_SCHEDULES_IN</i>, the input values are not

  • MacBook Pro premature power off

    2.2 GHz Intel Core Duo 2 GB 667 MHz DDR2 SDRAM Version 10.4.11 As of last week, I've noticed that my MacBook Pro seems to power off out of the blue. If I'm doing anything at all, such listening to iTunes, watching a DVD, or just about anything else,

  • How to determine program name in static main

    What code can I execute in static main to get the name of the class provided as an argument to the java interpreter on the command line (since args doesn't include it)? Or is this simply not possible in Java? Why do I need this? I'm subclassing the c

  • How can Oracle Portal 11g improve ROI for a utility company

    I want to prepare a presentation regarding Oracle Portal 11g for a group of senior management in my company which sells electricity for commercial building. So i need to know from where i can find related papers that gives some practical examples for

  • What are DDIC objects ?

    What are DDIC objects ? Please help on this . Thanks & Regards Sameer Khan