× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I had not seen this. I'll try to figure out what its about. Thanks for
the tip.




From: Dan Kimmel <dkimmel@xxxxxxxxxxxxxxx>
To: Java Programming on and around the IBM i
<java400-l@xxxxxxxxxxxx>,
Date: 10/02/2012 09:53 AM
Subject: RE: Dynamic java for Excel spreadsheet
Sent by: java400-l-bounces@xxxxxxxxxxxx



Have you experimented with beanShell? Might get you around some barriers.
Generate the method for one cell, evaluate it in beanShell, repeat. Keep
reusing the same object so you don't let RPG run up memory as it doesn't
release objects to the garbage collector.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx
] On Behalf Of darren@xxxxxxxxx
Sent: Tuesday, October 02, 2012 7:19 AM
To: Java Programming on and around the IBM i
Subject: Re: Dynamic java for Excel spreadsheet

Things were looking good until I expanded my test and found that there is a
64KB bytecode limit on methods. Rats.




From: darren@xxxxxxxxx
To: java400-l@xxxxxxxxxxxx,
Date: 09/28/2012 10:38 AM
Subject: Dynamic java for Excel spreadsheet
Sent by: java400-l-bounces@xxxxxxxxxxxx




We have run into various memory and performance issues using the JNI
interface from RPG to Java to generate spreadsheets using the POI HSSF
API's. Sometimes to get around this, we generate the spreadsheet in a .CSV
format, but this obviously generates a pretty ugly output when imported
into Excel. I'm currently researching generating the java code dynamically
in an RPG program, compiling it, and running that, meaning that the there
would be at least one java code source record for every cell on the
spreadsheet. I believe that the resulting program would perform much
better than the JNI interface does. Does anyone see any show stoppers with
this approach? Anyone tried something like this before?

--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/java400-l.



--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/java400-l.



--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.