How to break down a huge resultset from a store proc

Hello All:
First of all, I posted this question on Spring forum: http://forum.springsource.org/showthread.php?115721-how-to-catch-SQL-exception-when-using-JDBCTemplate in hope to see if there is a Spring solution since my project is based on Spring framework.
I hope this is not a cross post, since I want to know how I can achive the same by using generic JDBC.
My issue is that I need to run a stored proc, with certain parameters in place the resultset is huge. I can't send this back directly to the client. With Spring APIs it seems solution is not simply, someone suggested Spring batch. That require a steep learning curve and might turn out to be a overkill. I am thinking maybe generic JDBC can help, and this is what I want to do
while(rs.next()){   //count 100 records and send to a queue } // a consume stay put to consume the records and discard resource to avoid OutOfMemory
Will the above design work? since I didn't use too many delicated JDBC in the past, you might be able to help me catch some pitfall there.
Thanks, John

thanks EJP. I figured out that I was barking at the wrong tree. I don't really need Rowset or the likes. I only need to wrap a bunch records each time, put it into a blocking queue so that the pace is well coordinated during the iteration. A consumer reads from the queue and shoot them to a message broker.
Nevertheless, its good to read some javax.sql stuff. Thanks.

Similar Messages

  • How to break down single file imported from quicktime into clips?

    Can anyone help? I am trying to import video footage from a sony handycam, and have managed to import using USB via DvDxDV and then quicktime. However, it imports the movie as one big clip, is there anyway to instruct iMovie to break the clips down? Thanks

    is there anyway to instruct iMovie to break the clips down?
    You have to do that manually by Command-T or by "Split Clip at Playhead" -menu command.

  • Whit the new iTunes how i can down load my pictures from the iPhone to the computer  to make more spaces

    whit the new iTunes how i can down load my pictures from the iPhone to the computer  to make more spaces

    Hi shadibader,
    I understand that you wish to import your photos onto your computer from your iOS device. Here is an article for you that will explain how to accomplish this:
    Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support
    http://support.apple.com/en-us/HT201302
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • How can i re download a movie from itunes store that i bought but it crashed while downloading?

    from the "download recent purchases" on itunes i can seem to be able to access movies, only music, apps and tv series… how can i re download a movie from itunes store that i bought but it crashed while downloading?

    If it never finished downloading then, Store>Check for Available Downloads

  • How can I delete credit card information from app store in IPAD2

    how can I delete credit card information from app store in IPAD2

    Im vert tirés about thé contrôle of Apple.
    I just buy a iPad 3 and use Gift credit card at beginning.
    I'm from Canada and usevps so my ip can be from other country.
    So now I can't use this gift credit card even if they have $27 on it.
    I try too buyin iTunes gift card. At beginning its work but now it's stop to work.
    And I have $100 there.
    I never use my real credit card on the Internet and never I will do that.
    I use just PayPal or gift credit card.
    Ok I talk for nothing since Apple is too much miserly to buy employee for support.

  • How can i remove my credit card from app store, the none option its not there and i don't Owen  nothing to apple, my last in app purchase was in clash of clans, please help!!! Because of that problem i cant update my apps! Plz help!!!!!

    How can i remove my credit card from app store, the none option its not there and i don't Owen  nothing to apple, my last in app purchase was in clash of clans, please help!!! Because of that problem i cant update my apps! Plz help!!!!!

    You've logged into your account and viewed your purchase history and there aren't any error messages shown (e.g. 'problem with a previous purchase'), and you haven't got any purchases due (e.g. pre-orders and/or subscriptions) : Why can’t I select None when I edit my Apple ID payment information ?

  • HT204053 How can I switch my iTunes account from US store to Nigeria store?

    How can I switch my iTunes account from US store to Nigeria store?

    If you are asking because you are getting an 'account not in this country' error message then on an iPad, iPhone or iPod Touch try going to the bottom of the Featured tab in the App Store app on the device and tap on your account id, tap on 'View Apple ID' on the popup and log into your account, and then select the Country/Region section on that screen and select Nigeria.
    If you need to update your address on your account from the US to Nigeria then on your computer's iTunes you should be able to do so by signing into your account via the Store > View Account menu option and updating your address, or on an iOS device you can do it by tapping on your id at the bottom of the Featured tab in the App Store similar to above.

  • How can i buy my favourite game from ovi store by ...

    how can i buy my favourite game from ovi store by master card?
    when i am trying to buy, after fill details in last steps it shows error
    my phone is nokia-c5

    Not clear whether this via device or you have gone to "My account" on Nokia Store upon PC and added credit card there, in which case only Nokia account password would then be needed to authorise payment.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • How could i cancel a purshed app from itune store and stop payment from my crediet card

    How could i cancell a purshed app from itune store and stop payment from my vredit card

    Contact iTunes Store support staff through the report a problem links in your account history or,
    iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html - Apple states all sales are final, but you can ask.

  • How can I change my Apple ID from Canadian store to Austria Store?

    How Can I Change My Apple ID From Canadian Store To Austrian Store?

    Hey there df_1314,
    It sounds like you would like to change the Apple ID region of your account. You can use this article to change that info:
    Change the country of your iTunes Store, App Store, iBooks Store, and Mac App Store account
    http://support.apple.com/kb/ht6119
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • How can I change my Apple ID from Canadian store to Saudi store?

    How can I change my Apple ID from Canadian store to Saudi store? Cuse I wanna change the method payment

    Go to:Settings> itunes & App Store> tap you Apple ID > View apple ID> country/ region

  • Hi I have iPhone 4 crack screen how much to replacement with anther one from apple store ?

    Hi I have iPhone 4 crack screen how much to replacement with anther one from apple store ?

    If your iPod Touch, iPhone, or iPad is Broken
    Apple does not fix iDevices. Instead, they exchange yours for a refurbished or new replacement depending upon the age of your device and refurbished inventories. On rare occasions when there are no longer refurbished units for your older model, they may replace it with the next newer model.
    ATTN: Beginning July 2013 Apple Stores are now equipped to do screen repairs/replacements in-house. In some cases while you wait. According to Apple this is the beginning of equipping Apple Stores with the resources needed to do most repairs for iPhones, iPads, and iPod Touches that would not require major replacements. Later in the year the services may be extended as Apple Stores become equipped and staffed with the proper repair expertise. So, if you need a screen repaired or a broken screen replaced or have your stuck Home button fixed, call your local Apple Store to see if they are now doing these in-house.
    You may take your device to an Apple retailer for help or you may call Customer Service and arrange to send your device to Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes international calling numbers.
    iPod Service Support and Costs
    iPhone Service Support and Costs
    iPad Service Support and Costs
    There are third-party firms that do repairs on iDevices, and there are places where you can order parts to DIY if you feel up to the task. Start with Google to search for these.

  • Hi, i redeemed an itune gift card, how to i use it to purchase from itune store, my balance is 15e

    hi, i redeemed an itune gift card, how to i use it to purchase from itune store, my balance is 15e

    Find the item that you want to buy and click on its price to buy it - as long as you are buying for yourself (you can't use your balance for gifting) then your balance should be automatically used.

  • [JS] How to break link to paragraph style from script?

    I don't found the command break link to paragraph style from script.
    I want "unapply" the style from the text, but leave the formatting intact.
    Can help me?

    In the interface it's a separate command ("Break link to style"), but it seems in a script you have to use
    Paragraph.applyParagraphStyle (using:ParagraphStyle[, clearingOverrides:bool=true])
    You cannot use "null" or something similar for "ParagraphStyle", so I guess the idea is to use paragraph style #0 in your document (which is always "[No Paragraph Style]"). Be sure to set "clearing Overrides" to false, as it defaults to true.
    The following single line works on your current paragraph:
    app.activeDocument.selection[0].paragraphs[0].applyParagraphStyle (app.activeDocument.paragraphStyles[0], false);

  • How to break down the total stock level in multiple items ECC6.0 ERP

    Have a requirement for being able to break down the total stock of material into multiple items.
    E.g.
    Total stock: 1000 mtr. Unr.
    Consists of lenghts of:
    500 mtr.
    200 mtr.
    200 mtr.
    100 mtr.
    The different stocks should be displayed to sales persons and also 3rd party web applications towards customers
    Using 3rd party WMS system for all LE processes and currently handling this requirement using batch management, but using batch management also has some really strict rules which is why I would like to find other solutions
    Searching for any methods to solve this problem.
    Regards.
    Robin

    If tracking each "size " is important, then you can go for a seperate material code itself for each size.
    eg: 1000mtr = A
    500 mtr= B etc .
    you can show conversion of 1000 Mtr -> 500 MTR by subcontracting/ production /material t material transfer.
    -We had used split valuation in one clients system, where they wanted to track the Uncut Iron rods and iron rods cut into different sizes seperately .
    -Some  people use batch management with characteristics as well .
    Cnsidering your system is in live stage,  you have to consider the impact of each type of change.

Maybe you are looking for

  • Website looks different on different computers (even on ipod touch)

    I created a website using iweb and I understand that different browsers show things differently but on my computer (MAC) when I open it in Firefox and Safari I see the same thing, but when friends who are also using Firefox, Safari, and Macs check it

  • Adobe Acrobat 8 Professional cannot be launched at this time.

    Hi So i've trying to deploy CS3 Design Standard in our enterprise environment. And one of the deployments, requires that i have to deploy ONLY the Adobe Acrobat Professional component of the CS3 package. I run the install, and untick Photoshop, Illus

  • Why the 3 little icons on the upright corner are not in color, just wondering

    Does anyone knows why the 3 little icons on the upleft corner in the aperture window are not in color ? i'm just wondering.

  • How to diagnose large swap usage

    Hi, We have a java application that is connecting to our oracle 10g database. When the application is not connected the swap file usage on the solaris box is about 1GB. But soon as we startup the java application and connect it to oracle the swap usa

  • How to view .avi files?

    i have some .avi files that i would like to convert to a format that can be viewed on the iphone. there were several applications from the windows world that i used to use, and i know there must be for some for osx too. any recommendations? regards,