File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Threads and Synchronization and the fly likes Export multiple files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Export multiple files" Watch "Export multiple files" New topic
Author

Export multiple files

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1268

Please see comment below




In the above code I try to generate two report simultenously ..... like this (or better then this) I have to create multiple files which I have to export in a single shot....but I am not get suceess with this code...Now I am confuse what to do...When I think for the solution options like thread and synchoronization came into my mind because when process run other not getting the resorce free and the file is not generating .....but also confused to use this technics(thread and synchoronization) in my code...please help me out .....I hope my problem is clear to you guys...


No Kaustubh No Fun, Know Kaustubh Know Fun..
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1268


code throwing below exception=>

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1268

my made some changed in my code result things are working now but I am little afraid that if the number of files increase in future is my code going to handle it....
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
What does an OOME due to PermGenSpace have to do with files or threads/synchronization? See the TomcatFaq for a discussion of the PermGenSpace issue.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1268

What does an OOME due to PermGenSpace have to do with files or threads/synchronization?


I am asking of threads/synchronization for the issue not for above exception...
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9343
    
111

Kaustubh G Sharma wrote:
What does an OOME due to PermGenSpace have to do with files or threads/synchronization?


I am asking of threads/synchronization for the issue not for above exception...


And what exactly is the question? After reading your post, I'm not sure what you are asking about. And posting an unrelated (to the question) exception is going to make it more confusing.

[My Blog] [JavaRanch Journal]
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1268

And what exactly is the question? After reading your post, I'm not sure what you are asking about. And posting an unrelated (to the question) exception is going to make it more confusing.




Hi Jai actually the first code creating the below exception my point is to find solution from the below exception and for that I am asking for solutions ...thread and synchronization is one of my thought to put the code above so that I can get the solution for the problem I am getting plus the above exception can also be handled by it...

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Export multiple files
 
Similar Threads
jasper report help
jasper report need help
Need Help:Code running file with IDE but Gives Exception while running from build
POI: Writing Workbook twice doesn't work
why the files are not deleted and not renamed?